Repository navigation
Expand file tree
/
Copy pathphpstan.neon.dist
More file actions
51 lines (47 loc) · 3.34 KB
/
Copy pathphpstan.neon.dist
File metadata and controls
51 lines (47 loc) · 3.34 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
includes:
# TEMPORARY: PHPStan 2 (required once Symfony 8 is really installed, 1.12 cannot parse its PHP 8.4 syntax) reports
# errors that PHPStan 1 did not. They are parked here to keep this pull request about Symfony 8 and Behat 4;
# the baseline is meant to be shrunk and removed in follow-up work, not to grow.
- phpstan-baseline.neon
parameters:
reportUnmatchedIgnoredErrors: false
level: max
paths:
- src
- tests/
excludePaths:
- tests/Functional/Api/JsonApiTestCase.php
ignoreErrors:
# spaze/phpstan-stripe stubs (v3.x targeting stripe-php ^17) declare strict array{...} shapes for Stripe\Service\* methods.
# The plugin builds params via tagged InnerParamsProviderInterface composites returning array<int|string, mixed>,
# so feeding them into typed service params trips the stubs. Until the stubs accept generic arrays again, ignore here.
- message: '/Parameter \#(1|2) \$params of method Stripe\\Service\\.+::(all|create|retrieve|capture|cancel|expire)\(\) expects array\{.+\}\|null, array<int\|string, mixed>\|null given\./'
paths:
- src/Manager/AllManagerTrait.php
- src/Manager/CreateManagerTrait.php
- src/Manager/RetrieveManagerTrait.php
- src/Manager/Checkout/ExpireManager.php
- src/Manager/WebElements/CancelManager.php
- src/Manager/WebElements/CaptureManager.php
- message: '/Method FluxSE\\SyliusStripePlugin\\Stripe\\HttpClient\\PsrClient::[^\(]+\(\) has parameter \$[^ ]+ with no value type specified in iterable type array\./'
path: src/Stripe/HttpClient/PsrClient.php
- message: '/Method FluxSE\\SyliusStripePlugin\\Stripe\\HttpClient\\PsrClient::[^\(]+\(\) return type has no value type specified in iterable type array\./'
path: src/Stripe/HttpClient/PsrClient.php
- message: '/Parameter #1 \$params of static method Stripe\\Util\\Util::encodeParameters\(\) expects array, mixed given\./'
path: src/Stripe/HttpClient/PsrClient.php
- message: '/Parameter #1 \$name of method Psr\\Http\\Message\\MessageInterface::withHeader\(\) expects string, string\|null given\./'
path: src/Stripe/HttpClient/PsrClient.php
- message: '/Parameter #2 \$value of method Psr\\Http\\Message\\MessageInterface::withHeader\(\) expects array<string>\|string, string\|null given\./'
path: src/Stripe/HttpClient/PsrClient.php
- message: '/Property [^\s]+ \([^\)]+\) does not accept object\|null\./'
paths:
- tests/Functional/Api/Shop/PaymentRequestsTest.php
- tests/Functional/Provider/Checkout/Create/DetailsProviderTest.php
- tests/Functional/Provider/WebElements/Create/DetailsProviderTest.php
- message: '/Cannot call method getProjectDir\(\) on Symfony\\Component\\HttpKernel\\KernelInterface\|null\./'
paths:
- tests/Functional/Provider/Checkout/Create/DetailsProviderTest.php
- tests/Functional/Provider/WebElements/Create/DetailsProviderTest.php
- message: '/Call to method arrayNode\(\) on an unknown class Symfony\\Component\\Config\\Definition\\Builder\\NodeBuilder<Symfony\\Component\\Config\\Definition\\Builder\\ArrayNodeDefinition>\./'
paths:
- src/DependencyInjection/Configuration.php