Skip to content

Commit

Permalink
Merge pull request #3459 from insiders/fixture
Browse files Browse the repository at this point in the history
[AllBundles] Fix fixture deprecations
  • Loading branch information
acrobat authored Nov 8, 2024
2 parents 7c5b27e + 6a47e41 commit 3752364
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/Kunstmaan/FixturesBundle/Loader/FixtureLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ abstract class FixtureLoader implements FixtureInterface, ContainerAwareInterfac
/**
* Load data fixtures with the passed EntityManager
*/
public function load(ObjectManager $manager)
public function load(ObjectManager $manager): void
{
$this->manager = $manager;
$options = $this->getOptions();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class GroupFixtures extends AbstractFixture implements OrderedFixtureInterface
/**
* Load data fixtures with the passed EntityManager
*/
public function load(ObjectManager $manager)
public function load(ObjectManager $manager): void
{
$group1 = $this->createGroup($manager, 'Administrators', [
$this->getReference(RoleFixtures::REFERENCE_PERMISSIONMANAGER_ROLE),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class RoleFixtures extends AbstractFixture implements OrderedFixtureInterface
/**
* Load data fixtures with the passed EntityManager
*/
public function load(ObjectManager $manager)
public function load(ObjectManager $manager): void
{
$role1 = $this->createRole($manager, 'ROLE_PERMISSIONMANAGER');
$role2 = $this->createRole($manager, 'ROLE_ADMIN');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function __construct(UserManager $userManager, string $defaultAdminLocale
/**
* Load data fixtures with the passed EntityManager
*/
public function load(ObjectManager $manager)
public function load(ObjectManager $manager): void
{
$password = substr(rtrim(strtr(base64_encode(random_bytes(32)), '+/', '-_'), '='), 0, 8);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function __construct(
*
* @param ObjectManager $manager
*/
public function load(ObjectManager $manager)
public function load(ObjectManager $manager): void
{
if ($this->isMultiLanguage) {
$languages = explode('|', $this->requiredLocales);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function __construct(
*
* @param ObjectManager $manager
*/
public function load(ObjectManager $manager)
public function load(ObjectManager $manager): void
{
$this->manager = $manager;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function __construct(
*
* @param ObjectManager $manager
*/
public function load(ObjectManager $manager)
public function load(ObjectManager $manager): void
{
if ($this->isMultiLanguage) {
$languages = explode('|', $this->requiredLocales);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class FolderFixtures extends AbstractFixture implements OrderedFixtureInterface
/**
* Load data fixtures with the passed EntityManager
*/
public function load(ObjectManager $manager)
public function load(ObjectManager $manager): void
{
$gal = new Folder();
$gal->setRel(Folder::TYPE_MEDIA);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3752364

Please sign in to comment.