Browse Source

Reworked to support old PHP versions

Array short syntax excluded.
Alexander Volochnev 10 years ago
parent
commit
6a204cbce3
1 changed files with 1 additions and 1 deletions
  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));
         }