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.
2 parents c4d80a3 + d76d263 commit 1953391Copy full SHA for 1953391
Tests/Debug/WrappedListenerTest.php
@@ -56,7 +56,7 @@ public function testStopwatchEventIsStoppedWhenListenerThrows()
56
57
$dispatcher = $this->createStub(EventDispatcherInterface::class);
58
59
- $wrappedListener = new WrappedListener(function () { throw new \Exception(); }, null, $stopwatch, $dispatcher);
+ $wrappedListener = new WrappedListener(static fn () => throw new \Exception(), null, $stopwatch, $dispatcher);
60
61
try {
62
$wrappedListener(new \stdClass(), 'foo', $dispatcher);
0 commit comments