From a7c4e3642a90c665d770b954e89e94580faf1ceb Mon Sep 17 00:00:00 2001 From: Sebastian Bergmann Date: Fri, 29 Mar 2024 07:24:50 +0100 Subject: [PATCH] Do not use dynamic property --- tests/ExporterTest.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tests/ExporterTest.php b/tests/ExporterTest.php index baccfbd..bbb4f77 100644 --- a/tests/ExporterTest.php +++ b/tests/ExporterTest.php @@ -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, ], )