1
0
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:
Maximilian Bösing 2022-10-17 20:38:34 +02:00
parent 7f35bff0d9
commit eb6bbfb3b5
No known key found for this signature in database
GPG Key ID: 9A8988C93CEC81A3

View File

@ -259,7 +259,6 @@ class EmptyTest extends TestCase
while (!empty($needle)) {
$key = key($needle);
if ($key === null) continue;
$val = $needle[$key];
unset($needle[$key]);