3.4.0
This commit is contained in:
@@ -51,11 +51,11 @@ class Controller
|
||||
|
||||
public static function load(string $file)
|
||||
{
|
||||
if (file_exists($file) === false) {
|
||||
if (is_file($file) === false) {
|
||||
return null;
|
||||
}
|
||||
|
||||
$function = require $file;
|
||||
$function = F::load($file);
|
||||
|
||||
if (is_a($function, 'Closure') === false) {
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user