Skip to content

Commit 83dd3a5

Browse files
committed
Fix PHPStan issues
1 parent 634886f commit 83dd3a5

File tree

2 files changed

+3
-35
lines changed

2 files changed

+3
-35
lines changed

phpstan-baseline.neon

+1-35
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,2 @@
11
parameters:
2-
ignoreErrors:
3-
-
4-
message: "#^Cannot unset offset string on array\\<int, EasyCorp\\\\Bundle\\\\EasyAdminBundle\\\\Dto\\\\ActionDto\\>\\.$#"
5-
count: 1
6-
path: src/Dto/ActionConfigDto.php
7-
8-
-
9-
message: "#^Offset string on array\\<int, EasyCorp\\\\Bundle\\\\EasyAdminBundle\\\\Dto\\\\ActionDto\\> on left side of \\?\\? does not exist\\.$#"
10-
count: 1
11-
path: src/Dto/ActionConfigDto.php
12-
13-
-
14-
message: "#^Parameter \\#1 \\$message of class EasyCorp\\\\Bundle\\\\EasyAdminBundle\\\\Translation\\\\TranslatableChoiceMessage constructor expects Symfony\\\\Component\\\\Translation\\\\TranslatableMessage, Symfony\\\\Contracts\\\\Translation\\\\TranslatableInterface given\\.$#"
15-
count: 1
16-
path: src/Field/Configurator/ChoiceConfigurator.php
17-
18-
-
19-
message: "#^Call to an undefined method Symfony\\\\Contracts\\\\Translation\\\\TranslatableInterface\\:\\:getDomain\\(\\)\\.$#"
20-
count: 1
21-
path: src/Translation/TranslatableMessageBuilder.php
22-
23-
-
24-
message: "#^Call to an undefined method Symfony\\\\Contracts\\\\Translation\\\\TranslatableInterface\\:\\:getMessage\\(\\)\\.$#"
25-
count: 1
26-
path: src/Translation/TranslatableMessageBuilder.php
27-
28-
-
29-
message: "#^Call to an undefined method Symfony\\\\Contracts\\\\Translation\\\\TranslatableInterface\\:\\:getParameters\\(\\)\\.$#"
30-
count: 1
31-
path: src/Translation/TranslatableMessageBuilder.php
32-
33-
-
34-
message: "#^Variable method call on Twig\\\\Extension\\\\RuntimeExtensionInterface\\.$#"
35-
count: 1
36-
path: src/Twig/EasyAdminTwigExtension.php
2+
ignoreErrors: []

phpstan.neon.dist

+2
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ parameters:
99
- vendor/bin/.phpunit/phpunit/vendor/autoload.php
1010
ignoreErrors:
1111
- '#Cannot use array destructuring on callable.#'
12+
treatPhpDocTypesAsCertain: false
13+
reportUnmatchedIgnoredErrors: false

0 commit comments

Comments
 (0)