mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
Apply nullable and void typehints to events namespace
This commit is contained in:
@ -59,7 +59,7 @@ abstract class Event{
|
||||
*
|
||||
* @throws \BadMethodCallException
|
||||
*/
|
||||
public function setCancelled(bool $value = true){
|
||||
public function setCancelled(bool $value = true) : void{
|
||||
if(!($this instanceof Cancellable)){
|
||||
throw new \BadMethodCallException("Event is not Cancellable");
|
||||
}
|
||||
|
Reference in New Issue
Block a user