From 11ba2cf889a2363764de388268dbb304cadab4e3 Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Thu, 28 Nov 2024 12:02:48 +0100 Subject: [PATCH] [phpstan fix] Add array return type on all dependency fixture getDependencies methods --- .../DataFixtures/ORM/LoadActivityNotifications.php | 2 +- .../DataFixtures/ORM/LoadAccompanyingPeriodNotifications.php | 2 +- .../DataFixtures/ORM/LoadAccompanyingPeriodWork.php | 2 +- src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadHousehold.php | 2 +- .../ChillThirdPartyBundle/DataFixtures/ORM/LoadThirdParty.php | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Bundle/ChillActivityBundle/DataFixtures/ORM/LoadActivityNotifications.php b/src/Bundle/ChillActivityBundle/DataFixtures/ORM/LoadActivityNotifications.php index ee999d7f1..2718ce9e1 100644 --- a/src/Bundle/ChillActivityBundle/DataFixtures/ORM/LoadActivityNotifications.php +++ b/src/Bundle/ChillActivityBundle/DataFixtures/ORM/LoadActivityNotifications.php @@ -38,7 +38,7 @@ class LoadActivityNotifications extends AbstractFixture implements DependentFixt ], ]; - public function getDependencies() + public function getDependencies(): array { return [ LoadActivity::class, diff --git a/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadAccompanyingPeriodNotifications.php b/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadAccompanyingPeriodNotifications.php index e298c2cc3..ee5a6f6f9 100644 --- a/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadAccompanyingPeriodNotifications.php +++ b/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadAccompanyingPeriodNotifications.php @@ -38,7 +38,7 @@ class LoadAccompanyingPeriodNotifications extends AbstractFixture implements Dep ], ]; - public function getDependencies() + public function getDependencies(): array { return [ LoadPeople::class, diff --git a/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadAccompanyingPeriodWork.php b/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadAccompanyingPeriodWork.php index bf75ddec9..e24cca688 100644 --- a/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadAccompanyingPeriodWork.php +++ b/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadAccompanyingPeriodWork.php @@ -28,7 +28,7 @@ class LoadAccompanyingPeriodWork extends \Doctrine\Bundle\FixturesBundle\Fixture public function __construct(private readonly AccompanyingPeriodRepository $periodRepository, private readonly EvaluationRepository $evaluationRepository) {} - public function getDependencies() + public function getDependencies(): array { return [ LoadPeople::class, diff --git a/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadHousehold.php b/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadHousehold.php index b8963f84c..cf9a2b1e0 100644 --- a/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadHousehold.php +++ b/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadHousehold.php @@ -38,7 +38,7 @@ class LoadHousehold extends Fixture implements DependentFixtureInterface $this->loader = new NativeLoader(); } - public function getDependencies() + public function getDependencies(): array { return [ LoadPeople::class, diff --git a/src/Bundle/ChillThirdPartyBundle/DataFixtures/ORM/LoadThirdParty.php b/src/Bundle/ChillThirdPartyBundle/DataFixtures/ORM/LoadThirdParty.php index 043b002fd..8eb5dd48c 100644 --- a/src/Bundle/ChillThirdPartyBundle/DataFixtures/ORM/LoadThirdParty.php +++ b/src/Bundle/ChillThirdPartyBundle/DataFixtures/ORM/LoadThirdParty.php @@ -32,7 +32,7 @@ class LoadThirdParty extends Fixture implements DependentFixtureInterface $this->phoneNumberUtil = PhoneNumberUtil::getInstance(); } - public function getDependencies() + public function getDependencies(): array { return [ LoadCenters::class,