Skip to content

Commit

Permalink
fix(phpstan): Fix deprecated config and lower the level from max to 8
Browse files Browse the repository at this point in the history
  • Loading branch information
welcoMattic committed Sep 24, 2024
1 parent f631187 commit 4ba6fe5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ You will need :

Then you can :

- Use this template project as a new project in Github.
- Use this template project as a new project in GitHub.
- Clone your project and run `castor local:setup` inside it.
- Clean the castor files if you don't want them in your project with `castor local:clean-up`.
- Remove the `composer.lock` line in `apps/sylius/.gitignore` if you want to commit it.
Expand Down
10 changes: 5 additions & 5 deletions dist/sylius/phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
parameters:
level: max
level: 8
paths:
- %rootDir%/src/

checkMissingIterableValueType: false
checkGenericClassInNonGenericObjectType: false
- src/
- plugins/

ignoreErrors:
- '/Generator expects value type Symfony\\Component\\HttpKernel\\Bundle\\BundleInterface\, object given\./'
# - identifier: missingType.iterableValue
# - identifier: missingType.generics
2 changes: 1 addition & 1 deletion resources/makefiles/testing.mk
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ test.composer: ## Validate composer.json
$(call symfony.composer,validate --strict)

test.phpstan: ## Run PHPStan
${PHPSTAN} analyse -c phpstan.neon src/ plugins/
${PHPSTAN} analyse -c phpstan.neon

test.phpunit: ## Run PHPUnit
${PHPUNIT}
Expand Down

0 comments on commit 4ba6fe5

Please sign in to comment.