Browse Source

Phpstan fix

Shalvah 2 months ago
parent
commit
8424ff53bb
2 changed files with 3 additions and 1 deletions
  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\(\)#'