Skip to content

Instantly share code, notes, and snippets.

@alexanderkatkov
Last active March 19, 2022 19:16
Show Gist options
  • Save alexanderkatkov/b66e22b0011876b7b0fa8441a0a02f8b to your computer and use it in GitHub Desktop.
Save alexanderkatkov/b66e22b0011876b7b0fa8441a0a02f8b to your computer and use it in GitHub Desktop.
Personal PHPStan settings for Symfony projects
includes:
- vendor/phpstan/phpstan-symfony/extension.neon
- vendor/phpstan/phpstan-doctrine/extension.neon
- vendor/phpstan/phpstan-phpunit/extension.neon
- vendor/phpstan/phpstan-phpunit/rules.neon
parameters:
checkGenericClassInNonGenericObjectType: false
checkMissingIterableValueType: false
reportUnmatchedIgnoredErrors: false
universalObjectCratesClasses:
- PHPUnit\Framework\MockObject\MockObject
excludes_analyse:
- %rootDir%/../../../src/Migrations/*
- %rootDir%/../../../src/DataFixtures/*
bootstrapFiles:
- vendor/autoload.php
ignoreErrors:
# List of erros that we ignore
tmpDir: var/phpstan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment