8000 [VarExporter] Fix test on PHP 8.1 · symfony/symfony@56359cb · GitHub
[go: up one dir, main page]

Skip to content

Commit 56359cb

Browse files
committed
[VarExporter] Fix test on PHP 8.1
Signed-off-by: Alexander M. Turek <me@derrabus.de>
1 parent 7957b48 commit 56359cb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Symfony/Component/VarExporter/Tests/InstantiatorTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@ public function testInstantiate()
5555
"\0".__NAMESPACE__."\Foo\0priv" => 234,
5656
];
5757< 6877 div class="diff-text-inner">
58-
$this->assertSame($expected, (array) Instantiator::instantiate(Bar::class, ['priv' => 123], [Foo::class => ['priv' => 234]]));
58+
$actual = (array) Instantiator::instantiate(Bar::class, ['priv' => 123], [Foo::class => ['priv' => 234]]);
59+
ksort($actual);
60+
61+
$this->assertSame($expected, $actual);
5962

6063
$e = Instantiator::instantiate('Exception', ['foo' => 123, 'trace' => [234]]);
6164

0 commit comments

Comments
 (0)
0