Commit c107f0a1 authored by catch's avatar catch
Browse files

Issue #3173958 by alexpott, andypost: PHP 8 error: method_exists(): Argument...

Issue #3173958 by alexpott, andypost: PHP 8 error: method_exists(): Argument #1 ($object_or_class) must be of type object|string, null given
parent e9969b0f
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -74,6 +74,10 @@ protected function getControllerClass(array $defaults) {
      }
    }

    if ($controller === NULL) {
      return NULL;
    }

    if (strpos($controller, ':') === FALSE) {
      if (method_exists($controller, '__invoke')) {
        return [$controller, '__invoke'];