mirror of
https://github.com/danog/psalm.git
synced 2024-12-02 09:37:59 +01:00
Pass unused created variable (#3560)
This commit is contained in:
parent
c6611cfcd1
commit
07c7c30ad6
@ -86,7 +86,7 @@ function mirror($t) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$a = 5;
|
$a = 5;
|
||||||
$b = mirror(5); // Psalm knows the result is an int
|
$b = mirror($a); // Psalm knows the result is an int
|
||||||
|
|
||||||
$c = "foo";
|
$c = "foo";
|
||||||
$d = mirror($c); // Psalm knows the result is string
|
$d = mirror($c); // Psalm knows the result is string
|
||||||
|
Loading…
Reference in New Issue
Block a user