mirror of
https://github.com/danog/psalm.git
synced 2024-11-30 04:39:00 +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;
|
||||
$b = mirror(5); // Psalm knows the result is an int
|
||||
$b = mirror($a); // Psalm knows the result is an int
|
||||
|
||||
$c = "foo";
|
||||
$d = mirror($c); // Psalm knows the result is string
|
||||
|
Loading…
Reference in New Issue
Block a user