Skip to content

Commit c3c86dd

Browse files
Adjust pretty name of closures on PHP 8.4
1 parent 3c1fed4 commit c3c86dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/ErrorHandlerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ public function testCallErrorExceptionInfo()
171171
}
172172
$this->assertSame(__FILE__, $e->getFile());
173173
$this->assertSame(0, $e->getCode());
174-
$this->assertSame('Symfony\Component\ErrorHandler\{closure}', $trace[0]['function']);
174+
$this->assertStringMatchesFormat('%A{closure%A}', $trace[0]['function']);
175175
$this->assertSame(ErrorHandler::class, $trace[0]['class']);
176176
$this->assertSame('triggerNotice', $trace[1]['function']);
177177
$this->assertSame(__CLASS__, $trace[1]['class']);

0 commit comments

Comments
 (0)