diff --git a/composer.json b/composer.json index f87b7f7..a503490 100644 --- a/composer.json +++ b/composer.json @@ -27,11 +27,10 @@ "require-dev": { "laravel/scout": "^10.10", "nunomaduro/collision": "^8.1", - "nunomaduro/larastan": "^2.0", + "nunomaduro/larastan": "^3.0", "orchestra/testbench": "^9.0", - "phpstan/phpstan": "^1.10", + "phpstan/phpstan": "^2.0", "phpunit/phpunit": "^10.1", - "spatie/laravel-ray": "^1.30", "squizlabs/php_codesniffer": "^3.7", "vimeo/psalm": "^5.0" }, diff --git a/phpstan.neon b/phpstan.neon index 4db9f1d..8061fae 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -2,20 +2,11 @@ includes: - ./vendor/nunomaduro/larastan/extension.neon parameters: - - paths: - - src/ - - # Level 9 is the highest level - level: 6 - -# ignoreErrors: -# - '#PHPDoc tag @var#' -# -# excludePaths: -# - ./*/*/FileToBeExcluded.php -# -# checkMissingIterableValueType: false - checkMissingIterableValueType: false - - checkGenericClassInNonGenericObjectType: false + level: 6 + paths: + - src + ignoreErrors: + - '#Class [a-zA-Z0-9\\_]+ implements generic interface [a-zA-Z0-9\\_]+ but does not specify its types: [a-zA-Z0-9\\_]+#' + - '#Method [a-zA-Z0-9\\_]+::[a-zA-Z0-9\\_]+\(\) return type with generic class [a-zA-Z0-9\\_]+ does not specify its types: .+#' + - '#Trait [a-zA-Z0-9\\_]+ is used zero times and is not analysed.#' + - '#Unable to resolve the template type TRelatedModel in call to method [a-zA-Z0-9\\_]+::[a-zA-Z0-9\\_]+\(\)#' diff --git a/resources/views/pages/import.blade.php b/resources/views/pages/import.blade.php index 2f1a419..c73d818 100644 --- a/resources/views/pages/import.blade.php +++ b/resources/views/pages/import.blade.php @@ -28,7 +28,7 @@