forked from netgen-layouts/layouts-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpstan.neon
73 lines (55 loc) · 3.76 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
includes:
- vendor/phpstan/phpstan-strict-rules/rules.neon
- vendor/phpstan/phpstan-symfony/extension.neon
- vendor/phpstan/phpstan-symfony/rules.neon
parameters:
treatPhpDocTypesAsCertain: false
dynamicConstantNames:
- Symfony\Component\HttpKernel\Kernel::VERSION_ID
ignoreErrors:
# Doctrine DBAL
- '#Cannot call method fetchAllAssociative\(\) on Doctrine\\DBAL\\Result\|int#'
- '#expects string\|null, Doctrine\\DBAL\\Query\\Expression\\CompositeExpression given#'
# Disable errors for various "only read/written" properties
- '#\$\w+ is never (written|read), only (read|written).#'
# Compatibility with older versions of Symfony
-
message: '#Method Symfony\\Component\\HttpFoundation\\Request::isMethodSafe\(\) invoked with 1 parameter, 0 required.#'
path: bundles/LayoutsAdminBundle/Security/CsrfTokenValidator.php
-
message: '#Call to an undefined method Netgen\\Layouts\\Utils\\BackwardsCompatibility\\TreeBuilder::root\(\).#'
path: lib/Utils/BackwardsCompatibility/TreeBuilder.php
-
message: '/Parameter #1 \$event of method Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface::dispatch\(\) expects object, string given/'
path: lib/Utils/BackwardsCompatibility/EventDispatcherProxy.php
-
message: '/Parameter #2 \$eventName of method Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface::dispatch\(\) expects string\|null, object given/'
path: lib/Utils/BackwardsCompatibility/EventDispatcherProxy.php
-
message: '/Unable to resolve the template type TEvent/'
path: lib/Utils/BackwardsCompatibility/EventDispatcherProxy.php
-
message: '#Call to an undefined static method Symfony\\Component\\Intl\\Intl::getLocaleBundle\(\).#'
path: lib/Utils/BackwardsCompatibility/Locales.php
- "#Call to an undefined method Symfony\\\\Component\\\\HttpKernel\\\\Event\\\\KernelEvent::isMasterRequest\\(\\).#"
- "#Call to an undefined method Symfony\\\\Component\\\\HttpFoundation\\\\RequestStack::getMasterRequest\\(\\).#"
- "#Call to function method_exists\\(\\) with Symfony\\\\Component\\\\Console\\\\Application and 'renderThrowable'#"
- "#Call to function method_exists\\(\\) with Symfony\\\\Component\\\\HttpFoundation\\\\RequestStack and 'getMainRequest' will always evaluate to true.#"
- "#Call to function method_exists\\(\\) with Symfony\\\\Component\\\\HttpKernel\\\\Event\\\\KernelEvent and 'isMainRequest' will always evaluate to true.#"
- "#Call to function method_exists\\(\\) with Symfony\\\\Component\\\\HttpFoundation\\\\Request and 'getContentTypeFormat' will always evaluate to true.#"
- "#Call to function method_exists\\(\\) with Symfony\\\\Component\\\\DependencyInjection\\\\ContainerBuilder and 'registerAttributeFo…' will always evaluate to true.#"
-
message: '#twig_date_converter not found.#'
path: bundles/LayoutsBundle/Templating/Twig/Runtime/HelpersRuntime.php
# Netgen Layouts specifics
- "#Call to function method_exists\\(\\) with Netgen\\\\Layouts\\\\Layout\\\\Resolver\\\\(Condition|Target)TypeInterface and '(export|import)' will always evaluate to true.#"
-
message: '#Variable property access on object.#'
path: lib/Utils/Hydrator.php
-
message: '#Unsafe usage of new static\(\).#'
path: lib/Utils/HydratorTrait.php
- "#Static call to instance method stdClass::getExtendedIdentifiers#"
# Bugs in PHPStan?
- "#Cannot assign new offset to array#"
- "#string\\|Symfony\\\\Component\\\\VarDumper\\\\Cloner\\\\Data#"