瀏覽代碼

fix for php 7.0

Zolotov Alexander 6 年之前
父節點
當前提交
2d771fb46a
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      src/Tools/Utils.php

+ 5 - 1
src/Tools/Utils.php

@@ -14,7 +14,11 @@ class Utils
         return self::replaceUrlParameterBindings($uri, $bindings);
     }
 
-    public static function getRouteActionUses(array $action): ?array
+    /**
+     * @param array $action
+     * @return array|null
+     */
+    public static function getRouteActionUses(array $action)
     {
         if ($action['uses'] !== null) {
             if (is_array($action['uses'])) {