Skip to content

Commit

Permalink
fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
tito10047 committed Aug 27, 2024
1 parent 9cb7bed commit 84379f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/ShortcutTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@ public function testHelper(): void

private function testDefer(int &$foo): void
{
defer(function () use (&$foo) {
$_ = defer(function () use (&$foo) {
$foo++;
});
$this->assertSame(0, $foo);
}
}

Expand Down

0 comments on commit 84379f6

Please sign in to comment.