Skip to content

Commit

Permalink
refactor: Add ArrowFunction return type #1183
Browse files Browse the repository at this point in the history
  • Loading branch information
spiralbot committed Jan 1, 2025
1 parent 1baa3dd commit dbfac48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/RuleManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function testFlow(): void
// other rule types
$manager->set('RuleInterface', $this->rule);
$this->assertEquals($this->rule, $manager->get('RuleInterface'));
$manager->set('Closure', fn() => true);
$manager->set('Closure', static fn(): bool => true);
$this->assertTrue($manager->get('Closure') instanceof CallableRule);
$manager->set('Array', $this->testFlow(...));
$this->assertTrue($manager->get('Array') instanceof CallableRule);
Expand Down

0 comments on commit dbfac48

Please sign in to comment.