From d76d2632cfc2206eecb5ad2b26cd5934082941b6 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Wed, 26 Jul 2023 17:12:55 +0200 Subject: [PATCH] More short closures + isset instead of null checks + etc. --- Tests/Debug/WrappedListenerTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);