Skip to content

Commit f36c466

Browse files
Cover hooks cases for ArgumentTypeDeclaration
1 parent 063d49a commit f36c466

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/fixtures/argument-type-declaration.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ function i(string $foo, ArrayObject ...$bar)
9191

9292
}
9393

94+
add_action('foo', fn ($foo) => 'x');
95+
9496
add_action(
9597
'foo',
9698
function ($foo) {
@@ -117,6 +119,8 @@ static function ($foo) {
117119
}
118120
);
119121

122+
add_filter('foo', fn ($foo) => 'x');
123+
120124
array_map(
121125
function ($foo) { // @phpcsWarningOnThisLine
122126

0 commit comments

Comments
 (0)