瀏覽代碼

Phpstan fix

Shalvah 2 月之前
父節點
當前提交
8424ff53bb
共有 2 個文件被更改,包括 3 次插入1 次删除
  1. 1 1
      composer.json
  2. 2 0
      phpstan.neon

+ 1 - 1
composer.json

@@ -42,7 +42,7 @@
         "nikic/fast-route": "^1.3",
         "orchestra/testbench": "^6.0|^7.0|^8.0|^v9.10.0",
         "pestphp/pest": "^1.21",
-        "phpstan/phpstan": "^2.1.1",
+        "phpstan/phpstan": "^2.1.5",
         "phpunit/phpunit": "^9.0|^10.0",
         "symfony/css-selector": "^5.4|^6.0",
         "symfony/dom-crawler": "^5.4|^6.0",

+ 2 - 0
phpstan.neon

@@ -9,6 +9,8 @@ parameters:
         - identifier: missingType.generics
         - identifier: missingType.property
           path: src\Tools\Globals.php
+        - identifier: return.type
+          path: camel\BaseDTOCollection.php
         - identifier: argument.templateType
         - '#Call to an undefined method ReflectionType::getName\(\).#'
         - '#Call to an undefined method Illuminate\\Contracts\\Filesystem\\Filesystem::path\(\)#'