diff --git a/Tests/Debug/WrappedListenerTest.php b/Tests/Debug/WrappedListenerTest.php index f4885ec..1a5fe11 100644 --- a/Tests/Debug/WrappedListenerTest.php +++ b/Tests/Debug/WrappedListenerTest.php @@ -56,7 +56,7 @@ public function testStopwatchEventIsStoppedWhenListenerThrows() $dispatcher = $this->createStub(EventDispatcherInterface::class); - $wrappedListener = new WrappedListener(function () { throw new \Exception(); }, null, $stopwatch, $dispatcher); + $wrappedListener = new WrappedListener(static fn () => throw new \Exception(), null, $stopwatch, $dispatcher); try { $wrappedListener(new \stdClass(), 'foo', $dispatcher);