mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 05:41:20 +01:00
qa: remove redundant check as !empty
already ensures that key
does not return null
Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
This commit is contained in:
parent
7f35bff0d9
commit
eb6bbfb3b5
@ -259,7 +259,6 @@ class EmptyTest extends TestCase
|
||||
|
||||
while (!empty($needle)) {
|
||||
$key = key($needle);
|
||||
if ($key === null) continue;
|
||||
$val = $needle[$key];
|
||||
unset($needle[$key]);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user