Skip to content

Commit 20afc63

Browse files
committed
Fix creation of dynamic property SplObjectStorage::$foo is deprecated
1 parent 232b91c commit 20afc63

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/_files/DataProviderDebugTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ public static function provider()
3232

3333
$storage = new \SplObjectStorage();
3434
$storage->attach($obj2);
35-
$storage->foo = $obj2;
35+
if (PHP_VERSION_ID < 80200) {
36+
$storage->foo = $obj2;
37+
}
3638

3739
return array(
3840
array(null, true, 1, 1.0),

0 commit comments

Comments
 (0)