You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Rules/Deprecations/ConditionManagerCreateInstanceContextConfigurationRule.php
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -51,6 +51,7 @@ public function processNode(Node $node, Scope $scope): array
51
51
return [
52
52
RuleErrorBuilder::message('Passing context values to plugins via configuration is deprecated in drupal:9.1.0 and will be removed before drupal:10.0.0. Instead, call ::setContextValue() on the plugin itself. See https://www.drupal.org/node/3120980')
Copy file name to clipboardExpand all lines: src/Rules/Deprecations/PluginAnnotationContextDefinitionsRule.php
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,7 @@
5
5
usePhpParser\Node;
6
6
usePHPStan\Analyser\Scope;
7
7
usePHPStan\Reflection\ClassReflection;
8
+
usePHPStan\Rules\RuleErrorBuilder;
8
9
usePHPStan\ShouldNotHappenException;
9
10
usefunctionpreg_match;
10
11
@@ -30,7 +31,9 @@ protected function doProcessNode(ClassReflection $reflection, Node\Stmt\Class_ $
30
31
}
31
32
if ($hasMatch === 1) {
32
33
return [
33
-
'Providing context definitions via the "context" key is deprecated in Drupal 8.7.x and will be removed before Drupal 9.0.0. Use the "context_definitions" key instead.',
34
+
RuleErrorBuilder::message('Providing context definitions via the "context" key is deprecated in Drupal 8.7.x and will be removed before Drupal 9.0.0. Use the "context_definitions" key instead.')
0 commit comments