Skip to content

Commit

Permalink
Fix creation of dynamic property SplObjectStorage::$foo is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
nanasess committed Sep 29, 2022
1 parent 232b91c commit 20afc63
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/_files/DataProviderDebugTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ public static function provider()

$storage = new \SplObjectStorage();
$storage->attach($obj2);
$storage->foo = $obj2;
if (PHP_VERSION_ID < 80200) {
$storage->foo = $obj2;
}

return array(
array(null, true, 1, 1.0),
Expand Down

0 comments on commit 20afc63

Please sign in to comment.