Explorar o código

Reworked to support old PHP versions

Array short syntax excluded.
Alexander Volochnev %!s(int64=10) %!d(string=hai) anos
pai
achega
6a204cbce3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Controller/CRUDController.php

+ 1 - 1
Controller/CRUDController.php

@@ -559,7 +559,7 @@ class CRUDController extends Controller
 
         // execute the action, batchActionXxxxx
         $finalAction = sprintf('batchAction%s', ucfirst($camelizedAction));
-        if (!is_callable([$this, $finalAction])) {
+        if (!is_callable(array($this, $finalAction))) {
             throw new \RuntimeException(sprintf('A `%s::%s` method must be callable', get_class($this), $finalAction));
         }