Skip to content

Commit 1922437

Browse files
authored
Accept deprecations from webflo/drupal-finder 1.3 (#758)
test webflo/drupal-finder 1.3
1 parent ca3570a commit 1922437

File tree

1 file changed

+33
-9
lines changed

1 file changed

+33
-9
lines changed

phpstan-baseline.neon

Lines changed: 33 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,52 @@
11
parameters:
22
ignoreErrors:
33
-
4-
message: "#^Doing instanceof PHPStan\\\\Type\\\\Constant\\\\ConstantArrayType is error\\-prone and deprecated\\. Use Type\\:\\:getConstantArrays\\(\\) instead\\.$#"
4+
message: """
5+
#^Call to deprecated method locateRoot\\(\\) of class DrupalFinder\\\\DrupalFinder\\:
6+
Will be removed in v2\\. Future usage should instantiate
7+
a new DrupalFinder object by passing the starting path to its
8+
constructor\\.$#
9+
"""
510
count: 1
6-
path: src/Rules/Deprecations/ConditionManagerCreateInstanceContextConfigurationRule.php
11+
path: src/Drupal/DrupalAutoloader.php
712

813
-
9-
message: "#^Doing instanceof PHPStan\\\\Type\\\\Constant\\\\ConstantStringType is error\\-prone and deprecated\\. Use Type\\:\\:getConstantStrings\\(\\) instead\\.$#"
14+
message: """
15+
#^Instantiation of deprecated class DrupalFinder\\\\DrupalFinder\\:
16+
in drupal\\-finder\\:1\\.3\\.0 and is removed from drupal\\-finder\\:2\\.0\\.0\\.
17+
Use \\\\DrupalFinder\\\\DrupalFinderComposerRuntime instead\\.$#
18+
"""
1019
count: 1
11-
path: src/Rules/Deprecations/ConditionManagerCreateInstanceContextConfigurationRule.php
20+
path: src/Drupal/DrupalAutoloader.php
1221

1322
-
14-
message: "#^Doing instanceof PHPStan\\\\Type\\\\Constant\\\\ConstantStringType is error\\-prone and deprecated\\. Use Type\\:\\:getConstantStrings\\(\\) instead\\.$#"
23+
message: "#^Parameter \\#1 \\$root of class mglaman\\\\PHPStanDrupal\\\\Drupal\\\\ExtensionDiscovery constructor expects string, bool\\|string given\\.$#"
24+
count: 1
25+
path: src/Drupal/DrupalAutoloader.php
26+
27+
-
28+
message: "#^Parameter \\#1 \\$start_path of method DrupalFinder\\\\DrupalFinder\\:\\:locateRoot\\(\\) expects string, string\\|false given\\.$#"
29+
count: 1
30+
path: src/Drupal/DrupalAutoloader.php
31+
32+
-
33+
message: "#^Property mglaman\\\\PHPStanDrupal\\\\Drupal\\\\DrupalAutoloader\\:\\:\\$drupalRoot \\(string\\) does not accept bool\\|string\\.$#"
1534
count: 1
16-
path: src/Rules/Drupal/LoadIncludeBase.php
35+
path: src/Drupal/DrupalAutoloader.php
1736

1837
-
1938
message: "#^Doing instanceof PHPStan\\\\Type\\\\Constant\\\\ConstantArrayType is error\\-prone and deprecated\\. Use Type\\:\\:getConstantArrays\\(\\) instead\\.$#"
2039
count: 1
21-
path: src/Rules/Drupal/RenderCallbackRule.php
40+
path: src/Rules/Deprecations/ConditionManagerCreateInstanceContextConfigurationRule.php
41+
42+
-
43+
message: "#^Doing instanceof PHPStan\\\\Type\\\\Constant\\\\ConstantStringType is error\\-prone and deprecated\\. Use Type\\:\\:getConstantStrings\\(\\) instead\\.$#"
44+
count: 1
45+
path: src/Rules/Deprecations/ConditionManagerCreateInstanceContextConfigurationRule.php
2246

2347
-
2448
message: "#^Doing instanceof PHPStan\\\\Type\\\\Constant\\\\ConstantStringType is error\\-prone and deprecated\\. Use Type\\:\\:getConstantStrings\\(\\) instead\\.$#"
25-
count: 3
49+
count: 2
2650
path: src/Rules/Drupal/RenderCallbackRule.php
2751

2852
-
@@ -57,7 +81,7 @@ parameters:
5781

5882
-
5983
message: "#^Doing instanceof PHPStan\\\\Type\\\\ObjectType is error\\-prone and deprecated\\. Use Type\\:\\:isObject\\(\\) or Type\\:\\:getObjectClassNames\\(\\) instead\\.$#"
60-
count: 2
84+
count: 1
6185
path: src/Type/EntityStorage/GetQueryReturnTypeExtension.php
6286

6387
-

0 commit comments

Comments
 (0)