-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
phpstan.neon.dist
33 lines (29 loc) · 1.39 KB
/
phpstan.neon.dist
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
31
32
33
includes:
- tools/phpstan/vendor/phpstan/phpstan-phpunit/extension.neon
- tools/phpstan/vendor/phpstan/phpstan-phpunit/rules.neon
- tools/phpstan/vendor/phpstan/phpstan-symfony/extension.neon
- tools/phpstan/vendor/phpstan/phpstan-symfony/rules.neon
- tools/phpstan/vendor/slam/phpstan-extensions/conf/symfony-rules.neon
rules:
- TheCodingMachine\PHPStan\Rules\Exceptions\DoNotThrowExceptionBaseClassRule
- TheCodingMachine\PHPStan\Rules\Exceptions\ThrowMustBundlePreviousExceptionRule
parameters:
level: 5
paths:
- %currentWorkingDirectory%/src
- %currentWorkingDirectory%/tests
ignoreErrors:
-
# Ignore the forward compatible phpDoc comment
message: '#PHPDoc tag @param references unknown parameter:#'
path: %currentWorkingDirectory%/src/Resizer.php
-
# Ignore the forward compatible phpDoc comment
message: '#PHPDoc tag @param references unknown parameter:#'
path: %currentWorkingDirectory%/src/DeferredResizer.php
-
message: '#class Imagine\\Image\\(Box|Point) constructor expects int, float given#'
path: %currentWorkingDirectory%/tests/ResizeCoordinatesTest.php
-
message: '#ResizeCoordinates::isEqualTo\(\) expects .*, stdClass given#'
path: %currentWorkingDirectory%/tests/ResizeCoordinatesTest.php