-
-
Notifications
You must be signed in to change notification settings - Fork 76
/
phpstan-baseline.neon
90 lines (75 loc) · 4.04 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
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
parameters:
ignoreErrors:
-
message: """
#^Call to deprecated method locateRoot\\(\\) of class DrupalFinder\\\\DrupalFinder\\:
Will be removed in v2\\. Future usage should instantiate
a new DrupalFinder object by passing the starting path to its
constructor\\.$#
"""
count: 1
path: src/Drupal/DrupalAutoloader.php
-
message: """
#^Instantiation of deprecated class DrupalFinder\\\\DrupalFinder\\:
in drupal\\-finder\\:1\\.3\\.0 and is removed from drupal\\-finder\\:2\\.0\\.0\\.
Use \\\\DrupalFinder\\\\DrupalFinderComposerRuntime instead\\.$#
"""
count: 1
path: src/Drupal/DrupalAutoloader.php
-
message: "#^Parameter \\#1 \\$root of class mglaman\\\\PHPStanDrupal\\\\Drupal\\\\ExtensionDiscovery constructor expects string, bool\\|string given\\.$#"
count: 1
path: src/Drupal/DrupalAutoloader.php
-
message: "#^Parameter \\#1 \\$start_path of method DrupalFinder\\\\DrupalFinder\\:\\:locateRoot\\(\\) expects string, string\\|false given\\.$#"
count: 1
path: src/Drupal/DrupalAutoloader.php
-
message: "#^Property mglaman\\\\PHPStanDrupal\\\\Drupal\\\\DrupalAutoloader\\:\\:\\$drupalRoot \\(string\\) does not accept bool\\|string\\.$#"
count: 1
path: src/Drupal/DrupalAutoloader.php
-
message: "#^Doing instanceof PHPStan\\\\Type\\\\Constant\\\\ConstantArrayType is error\\-prone and deprecated\\. Use Type\\:\\:getConstantArrays\\(\\) instead\\.$#"
count: 1
path: src/Rules/Deprecations/ConditionManagerCreateInstanceContextConfigurationRule.php
-
message: "#^Doing instanceof PHPStan\\\\Type\\\\Constant\\\\ConstantStringType is error\\-prone and deprecated\\. Use Type\\:\\:getConstantStrings\\(\\) instead\\.$#"
count: 1
path: src/Rules/Deprecations/ConditionManagerCreateInstanceContextConfigurationRule.php
-
message: "#^Doing instanceof PHPStan\\\\Type\\\\Constant\\\\ConstantStringType is error\\-prone and deprecated\\. Use Type\\:\\:getConstantStrings\\(\\) instead\\.$#"
count: 2
path: src/Rules/Drupal/RenderCallbackRule.php
-
message: "#^Doing instanceof PHPStan\\\\Type\\\\Generic\\\\GenericClassStringType is error\\-prone and deprecated\\. Use Type\\:\\:isClassStringType\\(\\) and Type\\:\\:getClassStringObjectType\\(\\) instead\\.$#"
count: 1
path: src/Rules/Drupal/RenderCallbackRule.php
-
message: "#^Doing instanceof PHPStan\\\\Type\\\\IntersectionType is error\\-prone and deprecated\\.$#"
count: 1
path: src/Rules/Drupal/RenderCallbackRule.php
-
message: "#^Doing instanceof PHPStan\\\\Type\\\\ObjectType is error\\-prone and deprecated\\. Use Type\\:\\:isObject\\(\\) or Type\\:\\:getObjectClassNames\\(\\) instead\\.$#"
count: 1
path: src/Rules/Drupal/Tests/BrowserTestBaseDefaultThemeRule.php
-
message: "#^Doing instanceof PHPStan\\\\Type\\\\ObjectType is error\\-prone and deprecated\\. Use Type\\:\\:isObject\\(\\) or Type\\:\\:getObjectClassNames\\(\\) instead\\.$#"
count: 1
path: src/Type/DrupalStaticEntityQueryDynamicReturnTypeExtension.php
-
message: "#^Doing instanceof PHPStan\\\\Type\\\\ObjectType is error\\-prone and deprecated\\. Use Type\\:\\:isObject\\(\\) or Type\\:\\:getObjectClassNames\\(\\) instead\\.$#"
count: 1
path: src/Type/EntityQuery/EntityQueryDynamicReturnTypeExtension.php
-
message: "#^Doing instanceof PHPStan\\\\Type\\\\ObjectType is error\\-prone and deprecated\\. Use Type\\:\\:isObject\\(\\) or Type\\:\\:getObjectClassNames\\(\\) instead\\.$#"
count: 1
path: src/Type/EntityStorage/EntityStorageDynamicReturnTypeExtension.php
-
message: "#^Doing instanceof PHPStan\\\\Type\\\\ObjectType is error\\-prone and deprecated\\. Use Type\\:\\:isObject\\(\\) or Type\\:\\:getObjectClassNames\\(\\) instead\\.$#"
count: 1
path: src/Type/EntityStorage/GetQueryReturnTypeExtension.php
-
message: "#^Doing instanceof PHPStan\\\\Type\\\\ObjectType is error\\-prone and deprecated\\. Use Type\\:\\:isObject\\(\\) or Type\\:\\:getObjectClassNames\\(\\) instead\\.$#"
count: 1
path: src/Type/EntityTypeManagerGetStorageDynamicReturnTypeExtension.php