From dce3d44771afbd611d02c73d86c1cd826a38ae80 Mon Sep 17 00:00:00 2001 From: Jeroen Thora Date: Mon, 11 Nov 2024 14:18:24 +0100 Subject: [PATCH] [TranslatorBundle] Backport fixtures load deprecation fix --- .../TranslatorBundle/DataFixtures/ORM/TranslationFixtures.php | 2 +- .../TranslatorBundle/Tests/Fixtures/TranslationDataFixture.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Kunstmaan/TranslatorBundle/DataFixtures/ORM/TranslationFixtures.php b/src/Kunstmaan/TranslatorBundle/DataFixtures/ORM/TranslationFixtures.php index 216b5f9059..a3177cb662 100644 --- a/src/Kunstmaan/TranslatorBundle/DataFixtures/ORM/TranslationFixtures.php +++ b/src/Kunstmaan/TranslatorBundle/DataFixtures/ORM/TranslationFixtures.php @@ -22,7 +22,7 @@ class TranslationFixtures extends AbstractFixture implements OrderedFixtureInter /** * Load data fixtures with the passed EntityManager */ - public function load(ObjectManager $manager) + public function load(ObjectManager $manager): void { $this->repo = $manager->getRepository(Entity::class); diff --git a/src/Kunstmaan/TranslatorBundle/Tests/Fixtures/TranslationDataFixture.php b/src/Kunstmaan/TranslatorBundle/Tests/Fixtures/TranslationDataFixture.php index 8e06215ffb..2b301b5ac3 100644 --- a/src/Kunstmaan/TranslatorBundle/Tests/Fixtures/TranslationDataFixture.php +++ b/src/Kunstmaan/TranslatorBundle/Tests/Fixtures/TranslationDataFixture.php @@ -23,7 +23,7 @@ public function __construct() $this->faker = FakerFactory::create(); } - public function load(ObjectManager $manager) + public function load(ObjectManager $manager): void { $this->errorKeys($manager); $this->exceptionKeys($manager);