From 9e7e86260de48e405ec3086bcb62e677ef192e7f Mon Sep 17 00:00:00 2001 From: Sebastian Bergmann Date: Mon, 22 Sep 2025 07:25:48 +0200 Subject: [PATCH] Use SplObjectStorage::offsetSet() instead of deprecated SplObjectStorage::attach() --- tests/ExporterTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ExporterTest.php b/tests/ExporterTest.php index 3a93f1f..fa16835 100644 --- a/tests/ExporterTest.php +++ b/tests/ExporterTest.php @@ -58,7 +58,7 @@ final class ExporterTest extends TestCase $obj->self = $obj; $storage = new SplObjectStorage; - $storage->attach($obj2); + $storage->offsetSet($obj2); $resource = fopen('php://memory', 'r'); fclose($resource);