浏览代码

Reworked to support old PHP versions

Array short syntax excluded.
Alexander Volochnev 10 年之前
父节点
当前提交
6a204cbce3
共有 1 个文件被更改,包括 1 次插入1 次删除
  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));
         }