Skip to content

Commit

Permalink
Fix phpstan config
Browse files Browse the repository at this point in the history
  • Loading branch information
tuanpt-0634 committed Oct 8, 2024
1 parent 3eddd8a commit 04b7669
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
includes:
- vendor/larastan/larastan/extension.neon
- vendor/phpstan/phpstan-strict-rules/rules.neon
- ../../larastan/larastan/extension.neon
- ../../phpstan/phpstan-strict-rules/rules.neon

parameters:
paths:
- app/

## Exclude files or folder from analysis ##
# excludePaths:
# - app/Modules/*/Tests/*

level: 5
checkOctaneCompatibility: true

parameters:
strictRules:
allRules: false
PHPStan\Rules\DisallowedConstructs\DisallowedImplicitArrayCreationRule: true
strictRules:
allRules: false
# TODO: upgrade to v2 to use disallowedImplicitArrayCreation and remove ignoreErrors
disallowedConstructs: true

ignoreErrors:
-
identifier: ternary.shortNotAllowed
reportUnmatched: false
-
identifier: empty.notAllowed
reportUnmatched: false

# https://phpstan.org/config-reference#parallel-processing
parallel:
Expand Down

0 comments on commit 04b7669

Please sign in to comment.