Skip to content

Commit

Permalink
Fix PHP 7.2/7.3 compatibilit in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gmazzap committed Apr 30, 2024
1 parent a37ec01 commit 3c1f021
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/unit/Container/ReadOnlyContainerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,9 @@ public function count(): int
*/
public function testServiceExtensionsBackwardCompatibility(): void
{
$service = static fn (): object => (object) ['count' => 0];
$service = static function (): object {
return (object) ['count' => 0];
};

$extension = static function (object $thing): object {
$thing->count++;
Expand Down

0 comments on commit 3c1f021

Please sign in to comment.