mirror of
https://github.com/danog/psalm.git
synced 2025-01-21 21:31:13 +01:00
Remove unnecessary test
This commit is contained in:
parent
105fe012c4
commit
0644f5ab3a
@ -1416,24 +1416,6 @@ class UnusedVariableTest extends TestCase
|
||||
echo implode(",", $p);
|
||||
}'
|
||||
],
|
||||
'ternaryUse' => [
|
||||
'<?php
|
||||
class C {
|
||||
function b(string $p): string {
|
||||
return $p;
|
||||
}
|
||||
}
|
||||
|
||||
/** @return mixed */
|
||||
function func() {
|
||||
return new C();
|
||||
}
|
||||
|
||||
function main(): void {
|
||||
$a = true;
|
||||
func()->b($a ? "5" : "6");
|
||||
}'
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user