The expression return self::instance could return the type null which is incompatible with the type-hinted return PHPMV\GlobalVueJS. Consider adding an additional type-check to rule them out.
Loading history...
22
}
23
24
public static function deleteInstance():void {
25
self::$instance = null;
26
}
27
28
public function addGlobalDirective(string $name,array $hookFunction):void {