forked from sonata-project/SonataTranslationBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpstan-baseline.neon
44 lines (36 loc) · 2.52 KB
/
phpstan-baseline.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
33
34
35
36
37
38
39
40
41
42
43
44
parameters:
ignoreErrors:
-
# sonata-project/doctrine-phpcr-admin-bundle cannot be currently installed because it is not compatible with sonata-project/block-bundle 4
message: "#^Call to an undefined method Sonata\\\\AdminBundle\\\\Model\\\\ModelManagerInterface\\<T of object\\>\\:\\:getDocumentManager\\(\\)\\.$#"
count: 1
path: src/Admin/Extension/Phpcr/TranslatableAdminExtension.php
# src/Block/LocaleSwitcherBlockService.php issues will be solved in next major version
-
message: "#^Call to function is_object\\(\\) with string\\|null will always evaluate to false\\.$#"
count: 1
path: src/Block/LocaleSwitcherBlockService.php
-
message: "#^Result of \\|\\| is always true\\.$#"
count: 1
path: src/Block/LocaleSwitcherBlockService.php
-
message: "#^Method Sonata\\\\BlockBundle\\\\Block\\\\Service\\\\AbstractBlockService\\:\\:__construct\\(\\) invoked with 2 parameters, 1 required\\.$#"
count: 1
path: src/Block/LocaleSwitcherBlockService.php
-
message: "#^Parameter \\$resolver of method Sonata\\\\TranslationBundle\\\\Block\\\\LocaleSwitcherBlockService\\:\\:setDefaultSettings\\(\\) has invalid typehint type Symfony\\\\Component\\\\OptionsResolver\\\\OptionsResolverInterface\\.$#"
count: 1
path: src/Block/LocaleSwitcherBlockService.php
-
message: "#^Parameter \\#1 \\$resolver of method Sonata\\\\TranslationBundle\\\\Block\\\\LocaleSwitcherBlockService\\:\\:configureSettings\\(\\) expects Symfony\\\\Component\\\\OptionsResolver\\\\OptionsResolver, Symfony\\\\Component\\\\OptionsResolver\\\\OptionsResolverInterface given\\.$#"
count: 1
path: src/Block/LocaleSwitcherBlockService.php
-
message: "#^Parameter \\#2 \\$showCountryFlagsOrTemplating of class Sonata\\\\TranslationBundle\\\\Block\\\\LocaleSwitcherBlockService constructor expects bool\\|Symfony\\\\Bundle\\\\FrameworkBundle\\\\Templating\\\\EngineInterface\\|null, stdClass given\\.$#"
count: 1
path: tests/Block/LocaleSwitcherBlockServiceTest.php
-
message: "#^Parameter \\#1 \\$twig of method Sonata\\\\BlockBundle\\\\Block\\\\Service\\\\AbstractBlockService\\:\\:__construct\\(\\) expects Twig\\\\Environment, string\\|Twig\\\\Environment\\|null given\\.$#"
count: 1
path: src/Block/LocaleSwitcherBlockService.php