Apply nullable and void typehints to events namespace

This commit is contained in:
Dylan K. Taylor
2018-06-11 13:49:16 +01:00
parent cfb10360ff
commit eb0276d459
34 changed files with 58 additions and 58 deletions

View File

@ -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");
}