Do not use dynamic property

This commit is contained in:
Sebastian Bergmann 2024-03-29 07:24:50 +01:00
parent 6c99bfc0f2
commit a7c4e3642a
No known key found for this signature in database
GPG Key ID: 4AA394086372C20A
1 changed files with 3 additions and 5 deletions

View File

@ -58,7 +58,6 @@ final class ExporterTest extends TestCase
$storage = new SplObjectStorage;
$storage->attach($obj2);
$storage->foo = $obj2;
$resource = fopen('php://memory', 'r');
fclose($resource);
@ -147,11 +146,10 @@ EOF
'export splObjectStorage' => [$storage,
<<<'EOF'
SplObjectStorage Object #%d (
'foo' => stdClass Object #%d (
'foo' => 'bar',
),
'Object #%d' => Array &0 [
'obj' => stdClass Object #%d,
'obj' => stdClass Object #%d (
'foo' => 'bar',
),
'inf' => null,
],
)