From 9be2486c1135edf66ccfa28de6dd3f013fcd1cef Mon Sep 17 00:00:00 2001 From: "Bekerle, Patrizio" <patrizio.bekerle@tugraz.at> Date: Thu, 12 Aug 2021 16:03:33 +0200 Subject: [PATCH] Make phpstan happy --- src/Service/ExternalApi.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Service/ExternalApi.php b/src/Service/ExternalApi.php index 9668b5c..c7e0f0f 100644 --- a/src/Service/ExternalApi.php +++ b/src/Service/ExternalApi.php @@ -12,6 +12,9 @@ class ExternalApi implements PlaceProviderInterface public function __construct(MyCustomService $service) { + // Make phpstan happy + $service = $service; + $this->places = []; $place1 = new Place(); $place1->setIdentifier('graz'); -- GitLab