Skip to content

Commit f2851b8

Browse files
mglamanclaude
andcommitted
Make SymfonyYamlParseRule opt-in via drupal.rules.symfonyYamlParseRule
Follows the same pattern as all other rules in this package: disabled by default, enabled in bleedingEdge.neon. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 8234d98 commit f2851b8

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

bleedingEdge.neon

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ parameters:
1212
hookRules: true
1313
loggerFromFactoryPropertyAssignmentRule: true
1414
entityStorageDirectInjectionRule: true
15+
symfonyYamlParseRule: true

extension.neon

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ parameters:
3737
hookRules: false
3838
loggerFromFactoryPropertyAssignmentRule: false
3939
entityStorageDirectInjectionRule: false
40+
symfonyYamlParseRule: false
4041
entityMapping:
4142
aggregator_feed:
4243
class: Drupal\aggregator\Entity\Feed
@@ -275,6 +276,7 @@ parametersSchema:
275276
hookRules: boolean()
276277
loggerFromFactoryPropertyAssignmentRule: boolean()
277278
entityStorageDirectInjectionRule: boolean()
279+
symfonyYamlParseRule: boolean()
278280
])
279281
entityMapping: arrayOf(anyOf(
280282
structure([

rules.neon

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
rules:
22
- mglaman\PHPStanDrupal\Rules\Drupal\Coder\DiscouragedFunctionsRule
33
- mglaman\PHPStanDrupal\Rules\Drupal\GlobalDrupalDependencyInjectionRule
4-
- mglaman\PHPStanDrupal\Rules\Drupal\SymfonyYamlParseRule
54
- mglaman\PHPStanDrupal\Rules\Drupal\PluginManager\PluginManagerSetsCacheBackendRule
65
- mglaman\PHPStanDrupal\Rules\Drupal\RenderCallbackRule
76
- mglaman\PHPStanDrupal\Rules\Deprecations\StaticServiceDeprecatedServiceRule
@@ -35,6 +34,8 @@ conditionalTags:
3534
phpstan.rules.rule: %drupal.rules.entityStorageDirectInjectionRule%
3635
mglaman\PHPStanDrupal\Rules\Drupal\EntityStoragePropertyAssignmentRule:
3736
phpstan.rules.rule: %drupal.rules.entityStorageDirectInjectionRule%
37+
mglaman\PHPStanDrupal\Rules\Drupal\SymfonyYamlParseRule:
38+
phpstan.rules.rule: %drupal.rules.symfonyYamlParseRule%
3839

3940
services:
4041
-
@@ -59,3 +60,5 @@ services:
5960
class: mglaman\PHPStanDrupal\Rules\Drupal\EntityStorageDirectInjectionRule
6061
-
6162
class: mglaman\PHPStanDrupal\Rules\Drupal\EntityStoragePropertyAssignmentRule
63+
-
64+
class: mglaman\PHPStanDrupal\Rules\Drupal\SymfonyYamlParseRule

0 commit comments

Comments
 (0)