1
0
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:
wnbsmart 2020-06-10 23:28:04 +02:00 committed by GitHub
parent c6611cfcd1
commit 07c7c30ad6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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