forked from zenstruck/foundry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpstan.neon
30 lines (26 loc) · 1.43 KB
/
phpstan.neon
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
parameters:
level: 8
treatPhpDocTypesAsCertain: false
paths:
- src
- tests
- stubs/phpstan
ignoreErrors:
# suppress strange behavior of PHPStan where it considers proxy() return type as *NEVER*
- message: '#Return type of call to function Zenstruck\\Foundry\\Persistence\\proxy contains unresolvable type#'
path: src/Persistence/ProxyRepositoryDecorator.php
# prevent PHPStan to force to type data providers
- identifier: missingType.iterableValue
path: tests/
# We support both PHPUnit versions (this method changed in PHPUnit 10)
- message: '#Call to function method_exists\(\) with .* will always evaluate to false#'
path: src/Test/Factories.php
excludePaths:
- tests/Fixture/Maker/expected/can_create_factory_with_auto_activated_not_persisted_option.php
- tests/Fixture/Maker/expected/can_create_factory_interactively.php
- tests/Fixture/Maker/expected/can_create_factory_with_embeddable_with_data_set_odm.php
- tests/Fixture/Maker/expected/can_create_factory_with_embeddable_with_data_set_orm.php
# phpstan runs with orm 3 - there are too many failures in these files which are compatible with orm 2
- ./src/Maker/Factory/LegacyORMDefaultPropertiesGuesser.php
- ./src/Maker/Factory/DoctrineScalarFieldsDefaultPropertiesGuesser.php
- ./src/ORM/OrmV2PersistenceStrategy.php