Skip to content

Commit

Permalink
Fix NullRangeNameDenormalizer on PHP8.0 (#1057)
Browse files Browse the repository at this point in the history
  • Loading branch information
dotdevio authored Nov 1, 2020
1 parent 822bf9d commit 62ef4fc
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -77,7 +77,7 @@ public function buildIds(string $id): array
$ids[
str_replace(
$this->token,
$currentIndex,
(string) $currentIndex,
$range->getName()
)
] = $currentIndex;
Expand Down

0 comments on commit 62ef4fc

Please sign in to comment.