Skip to content

Commit 8f158b1

Browse files
phpstan-botclaude
andcommitted
Use @param mixed instead of native mixed type for PHP 7.4 compat, remove comments
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 96cbec6 commit 8f158b1

2 files changed

Lines changed: 2 additions & 7 deletions

File tree

tests/PHPStan/Analyser/nsrt/bug-14469.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,7 @@ function t(array $R, bool $var1, object $user): void {
1818
}
1919
}
2020

21-
/**
22-
* Variable equivalent: pre-defined variable stays mixed inside if ($aa)
23-
* @param mixed $input
24-
*/
21+
/** @param mixed $input */
2522
function variableEquivalent($input, bool $var1, object $user): void {
2623
$aa = null;
2724
$bb = $input;

tests/PHPStan/Rules/Comparison/data/bug-14469.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,7 @@ function multipleElseif(array $R, bool $var1, bool $var2, object $user): void {
7272
}
7373
}
7474

75-
/**
76-
* @param mixed $input
77-
*/
75+
/** @param mixed $input */
7876
function variableEquivalent(bool $var1, object $user, $input): void {
7977
$aa = null;
8078
$bb = $input;

0 commit comments

Comments
 (0)