Skip to content

Commit

Permalink
More short closures + isset instead of null checks + etc.
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Jul 27, 2023
1 parent 5fc47d6 commit d76d263
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/Debug/WrappedListenerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d76d263

Please sign in to comment.