We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3958048 commit c6cd924Copy full SHA for c6cd924
Tests/Caster/SplCasterTest.php
@@ -148,7 +148,7 @@ public static function provideCastSplDoublyLinkedList()
148
public function testCastObjectStorageIsntModified()
149
{
150
$var = new \SplObjectStorage();
151
- $var->attach(new \stdClass());
+ $var[new \stdClass()] = null;
152
$var->rewind();
153
$current = $var->current();
154
@@ -159,7 +159,7 @@ public function testCastObjectStorageIsntModified()
159
public function testCastObjectStorageDumpsInfo()
160
161
162
- $var->attach(new \stdClass(), new \DateTimeImmutable());
+ $var[new \stdClass()] = new \DateTimeImmutable();
163
164
$this->assertDumpMatchesFormat('%ADateTimeImmutable%A', $var);
165
}
0 commit comments