-
Notifications
You must be signed in to change notification settings - Fork 345
/
phpstan.neon
32 lines (25 loc) · 1.08 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
31
32
parameters:
level: 8
paths:
- src/
- tests/
- cliupdate.php
- index.php
- run.php
bootstrapFiles:
- src/constants.php
- vendor/bin/.phpunit/phpunit/vendor/autoload.php
stubFiles:
- utils/PHPStan/Stubs/Container.stub
- utils/PHPStan/Stubs/ContainerInterface.stub
- utils/PHPStan/Stubs/IcoFileLoader.stub
ignoreErrors:
# The arguments are provided by SimplePie and we want the value of a later one.
- '(Constructor of class helpers\\SimplePieFileGuzzle has an unused parameter \$force_fsockopen\.)'
# Bad PHPStan typing rules.
- '(Parameter #3 \$namespace of method XMLWriter::writeAttributeNs\(\) expects string, null given\.)'
typeAliases:
SpoutParameterInfo: 'array{title: string, type: spouts\Parameter::TYPE_*, default: string, required: bool, validation: array<spouts\Parameter::VALIDATION_*>, values?: array<string, string>}'
SpoutParameters: 'array<string, SpoutParameterInfo>'
includes:
- vendor/phpstan/phpstan-deprecation-rules/rules.neon