diff --git a/tests/_files/DataProviderDebugTest.php b/tests/_files/DataProviderDebugTest.php index 22317cf5b74..8de1366ccd7 100644 --- a/tests/_files/DataProviderDebugTest.php +++ b/tests/_files/DataProviderDebugTest.php @@ -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),