Skip to content

Commit

Permalink
To fix build issues, change static analyser config
Browse files Browse the repository at this point in the history
  • Loading branch information
sam-bee committed Jan 15, 2025
1 parent c72b705 commit 06581a6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
},
"require-dev": {
"orchestra/testbench": "^6|^7|^8|^9",
"squizlabs/php_codesniffer": "^3.5"
"squizlabs/php_codesniffer": "^3.5",
"phpstan/phpstan": "^2.1"

},
"autoload": {
Expand Down Expand Up @@ -51,7 +52,7 @@
"test": "phpunit",
"check-style": "phpcs -p --standard=psr12 src/",
"fix-style": "phpcbf -p --standard=psr12 src/",
"phpstan": "phpstan analyze --memory-limit=-1"
"phpstan": "./vendor/bin/phpstan analyze --memory-limit=-1"
},
"minimum-stability": "dev",
"prefer-stable": true,
Expand Down
5 changes: 4 additions & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
includes:
- vendor/larastan/larastan/extension.neon

parameters:
reportUnmatchedIgnoredErrors: false
Expand All @@ -11,3 +10,7 @@ parameters:
# This is a global alias that cannot be detected by Larastan.
- '#Call to static method loadHTML\(\) on an unknown class PDF\.#'
- '#Call to static method loadHTML\(\) on an unknown class Pdf\.#'
- '#Class Barryvdh\\DomPDF\\PDF has PHPDoc tag @method for method \S+\(\) parameter \#\d \$\S+ with no value type specified in iterable type array\.#'
- '#Class Barryvdh\\DomPDF\\PDF has PHPDoc tag @method for method \S+\(\) return type with no value type specified in iterable type array\.#'
- '#Class Barryvdh\\DomPDF\\Facade\\Pdf has PHPDoc tag @method for method \S+\(\) parameter \#\d \$\S+ with no value type specified in iterable type array\.#'
- '#Call to an undefined static method Illuminate\\Support\\Facades\\View::addLocation\(\)\.#'

0 comments on commit 06581a6

Please sign in to comment.