Skip to content

Commit 1ba4beb

Browse files
committed
fix test for php 7.4
1 parent dd4df25 commit 1ba4beb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/PHPStan/Rules/Methods/data/bug-4801.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ interface I {
1313
* @param (callable(T): TResult)|null $a
1414
* @return I<TResult>
1515
*/
16-
public function work(callable|null $a): I;
16+
public function work(?callable $a): I;
1717
}
1818

1919
/**

0 commit comments

Comments
 (0)