Skip to content

Commit 6451093

Browse files
Merge branch '7.3' into 7.4
* 7.3: Fix remaining SplObjectStorage deprecation Remove calls to no-op functions, deprecated in PHP 8.5 Remove deprecated calls to deprecated methods of SplObjectStorage [Messenger] Show package installation hint also for amqps [TypeInfo] Fix converting list to string
2 parents ff7a966 + 34d8d4c commit 6451093

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/Caster/SplCasterTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public static function provideCastSplDoublyLinkedList()
147147
public function testCastObjectStorageIsntModified()
148148
{
149149
$var = new \SplObjectStorage();
150-
$var->attach(new \stdClass());
150+
$var[new \stdClass()] = null;
151151
$var->rewind();
152152
$current = $var->current();
153153

@@ -158,7 +158,7 @@ public function testCastObjectStorageIsntModified()
158158
public function testCastObjectStorageDumpsInfo()
159159
{
160160
$var = new \SplObjectStorage();
161-
$var->attach(new \stdClass(), new \DateTimeImmutable());
161+
$var[new \stdClass()] = new \DateTimeImmutable();
162162

163163
$this->assertDumpMatchesFormat('%ADateTimeImmutable%A', $var);
164164
}

0 commit comments

Comments
 (0)