Upgrade to PHPStan 2.0

This commit is contained in:
Art4 2024-11-12 21:02:21 +00:00
parent 9a04f90bbd
commit ca51b45f04
3 changed files with 12 additions and 9 deletions

View file

@ -1899,7 +1899,10 @@ class Receiver
if (in_array(-1, $object_data['receiver'])) {
$object_data['unlisted'] = true;
unset($object_data['receiver'][-1]);
unset($object_data['reception_type'][-1]);
if (array_key_exists(-1, $object_data['reception_type'])) {
unset($object_data['reception_type'][-1]);
}
}
return $object_data;