Skip to content

Commit

Permalink
Merge branch '6.4' into 7.0
Browse files Browse the repository at this point in the history
* 6.4:
  More short closures + isset instead of null checks + etc.
  • Loading branch information
nicolas-grekas committed Jul 27, 2023
2 parents c4d80a3 + d76d263 commit 1953391
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 1953391

Please sign in to comment.