HandlerList: remove useless isset

This commit is contained in:
Dylan K. Taylor 2023-04-05 21:37:08 +01:00
parent 61b0ad3e7f
commit f32a853bd4
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -76,11 +76,9 @@ class HandlerList{
}
}
}elseif($object instanceof RegisteredListener){
if(isset($this->handlerSlots[$object->getPriority()][spl_object_id($object)])){
unset($this->handlerSlots[$object->getPriority()][spl_object_id($object)]);
}
}
}
public function clear() : void{
$this->handlerSlots = array_fill_keys(EventPriority::ALL, []);