Skip to content

Commit 1f5e709

Browse files
Update phpstan config
1 parent b830966 commit 1f5e709

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

phpstan.neon

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ parameters:
22
level: 7
33
paths:
44
- src
5+
# Can remove reportUnmatchedIgnoredErrors option after php 7.2 is no longer supported
6+
reportUnmatchedIgnoredErrors: false
57
ignoreErrors:
68
# This part of PHP is not very well documented, resulting PHPStan's definitions not being accurate
79
- "#Access to an undefined property object::\\$data\\.#"
@@ -14,6 +16,8 @@ parameters:
1416
# The EventDispatcherInterface::dispatch signature is different (!) between Symfony <4.3 and >=4.3
1517
- '/Parameter #1 \$event of method Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface::dispatch\(\) expects object, string\|null given./'
1618
- '/Parameter #2 \$eventName of method Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface::dispatch\(\) expects string\|null, VCR\\Event\\Event given./'
19+
# PHPStan cannot deal with manually defined constants - can be removed once php 7.2 no longer supported
20+
- '#Constant CURLPROXY_HTTPS not found.#'
1721
includes:
1822
- vendor/thecodingmachine/phpstan-strict-rules/phpstan-strict-rules.neon
1923
- vendor/phpstan/phpstan-beberlei-assert/extension.neon

0 commit comments

Comments
 (0)