Skip to content

Commit 27351e8

Browse files
committed
Try to make unit test OK with PHP 7.4.
1 parent 331e01f commit 27351e8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎tests/PHPStan/Analyser/nsrt/filter-var-returns-non-empty-string.php‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ class Foo
1919
public function run(
2020
string $str,
2121
string $maybe_empty_string,
22-
null|string $nullable_string,
23-
null|string $nullable_non_empty_string,
22+
?string $nullable_string,
23+
?string $nullable_non_empty_string,
2424
int $int,
2525
int $positive_int,
2626
int $negative_int,
@@ -211,7 +211,7 @@ public function run(
211211
* @param U $b
212212
* @return T|U
213213
*/
214-
private function anyOf(mixed $a, mixed $b): mixed
214+
private function anyOf($a, $b): mixed
215215
{
216216
return random_int(0, 1) ? $a : $b;
217217
}

0 commit comments

Comments
 (0)