From 62ef4fcc3646423fdb91043c3bf455461d33b718 Mon Sep 17 00:00:00 2001 From: Iv Po Date: Sun, 1 Nov 2020 16:10:08 +0200 Subject: [PATCH] Fix NullRangeNameDenormalizer on PHP8.0 (#1057) --- .../Fixture/Chainable/NullRangeNameDenormalizer.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/FixtureBuilder/Denormalizer/Fixture/Chainable/NullRangeNameDenormalizer.php b/src/FixtureBuilder/Denormalizer/Fixture/Chainable/NullRangeNameDenormalizer.php index c4c75847c..d562dc686 100644 --- a/src/FixtureBuilder/Denormalizer/Fixture/Chainable/NullRangeNameDenormalizer.php +++ b/src/FixtureBuilder/Denormalizer/Fixture/Chainable/NullRangeNameDenormalizer.php @@ -35,12 +35,12 @@ public function __construct() { $this->token = uniqid(__CLASS__, true); } - + public function canDenormalize(string $name, array &$matches = []): bool { return 1 === preg_match(self::REGEX, $name, $matches); } - + public function denormalize( FixtureBag $builtFixtures, string $className, @@ -77,7 +77,7 @@ public function buildIds(string $id): array $ids[ str_replace( $this->token, - $currentIndex, + (string) $currentIndex, $range->getName() ) ] = $currentIndex;