1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +01:00
This commit is contained in:
orklah 2021-10-11 17:33:02 +02:00
parent c4ebc34695
commit 88dd4eace3

View File

@ -1481,6 +1481,16 @@ class UnusedCodeTest extends TestCase
f(new Worker());',
'error_message' => 'PossiblyUnusedMethod',
],
'UnusedFunctionInDoubleConditional' => [
'<?php
$list = [];
if (rand(0,1) && rand(0,1)) {
array_merge($list, []);
};
',
'error_message' => 'UnusedFunctionCall',
],
];
}
}