Skip to content

Commit 479217b

Browse files
authored
Merge pull request #375 from mglaman/cleanup-extension-neon
Move Rules to `rules` out of `services`
2 parents b3a4ee4 + c494c30 commit 479217b

File tree

1 file changed

+11
-47
lines changed

1 file changed

+11
-47
lines changed

extension.neon

Lines changed: 11 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,17 @@ rules:
248248
- mglaman\PHPStanDrupal\Rules\Drupal\GlobalDrupalDependencyInjectionRule
249249
- mglaman\PHPStanDrupal\Rules\Drupal\PluginManager\PluginManagerSetsCacheBackendRule
250250
- mglaman\PHPStanDrupal\Rules\Deprecations\AccessDeprecatedConstant
251+
- mglaman\PHPStanDrupal\Rules\Classes\ClassExtendsInternalClassRule
252+
- mglaman\PHPStanDrupal\Rules\Classes\PluginManagerInspectionRule
253+
- mglaman\PHPStanDrupal\Rules\Deprecations\ConditionManagerCreateInstanceContextConfigurationRule
254+
- mglaman\PHPStanDrupal\Rules\Drupal\RenderCallbackRule
255+
- mglaman\PHPStanDrupal\Rules\Deprecations\StaticServiceDeprecatedServiceRule
256+
- mglaman\PHPStanDrupal\Rules\Deprecations\GetDeprecatedServiceRule
257+
- mglaman\PHPStanDrupal\Rules\Drupal\Tests\BrowserTestBaseDefaultThemeRule
258+
- mglaman\PHPStanDrupal\Rules\Deprecations\ConfigEntityConfigExportRule
259+
- mglaman\PHPStanDrupal\Rules\Deprecations\PluginAnnotationContextDefinitionsRule
260+
- mglaman\PHPStanDrupal\Rules\Drupal\ModuleLoadInclude
261+
- mglaman\PHPStanDrupal\Rules\Drupal\LoadIncludes
251262
services:
252263
-
253264
class: mglaman\PHPStanDrupal\Drupal\ServiceMap
@@ -257,7 +268,6 @@ services:
257268
class: mglaman\PHPStanDrupal\Drupal\EntityDataRepository
258269
arguments:
259270
entityMapping: %drupal.entityMapping%
260-
261271
-
262272
class: mglaman\PHPStanDrupal\Type\EntityTypeManagerGetStorageDynamicReturnTypeExtension
263273
tags: [phpstan.broker.dynamicMethodReturnTypeExtension]
@@ -300,52 +310,6 @@ services:
300310
-
301311
class: mglaman\PHPStanDrupal\Reflection\EntityFieldMethodsViaMagicReflectionExtension
302312
tags: [phpstan.broker.methodsClassReflectionExtension]
303-
-
304-
class: mglaman\PHPStanDrupal\Rules\Classes\ClassExtendsInternalClassRule
305-
tags: [phpstan.rules.rule]
306-
arguments:
307-
reflectionProvider: @reflectionProvider
308-
-
309-
class: mglaman\PHPStanDrupal\Rules\Classes\PluginManagerInspectionRule
310-
tags: [phpstan.rules.rule]
311-
arguments:
312-
reflectionProvider: @reflectionProvider
313-
-
314-
class: mglaman\PHPStanDrupal\Rules\Drupal\LoadIncludes
315-
tags: [phpstan.rules.rule]
316-
arguments:
317-
extensionMap: @mglaman\PHPStanDrupal\Drupal\ExtensionMap
318-
-
319-
class: mglaman\PHPStanDrupal\Rules\Drupal\ModuleLoadInclude
320-
tags: [phpstan.rules.rule]
321-
arguments:
322-
extensionMap: @mglaman\PHPStanDrupal\Drupal\ExtensionMap
323-
324-
-
325-
class: mglaman\PHPStanDrupal\Rules\Deprecations\PluginAnnotationContextDefinitionsRule
326-
tags: [phpstan.rules.rule]
327-
328-
-
329-
class: mglaman\PHPStanDrupal\Rules\Deprecations\ConfigEntityConfigExportRule
330-
tags: [phpstan.rules.rule]
331-
332-
-
333-
class: mglaman\PHPStanDrupal\Rules\Drupal\Tests\BrowserTestBaseDefaultThemeRule
334-
tags: [phpstan.rules.rule]
335-
336-
-
337-
class: mglaman\PHPStanDrupal\Rules\Deprecations\GetDeprecatedServiceRule
338-
tags: [phpstan.rules.rule]
339-
-
340-
class: mglaman\PHPStanDrupal\Rules\Deprecations\StaticServiceDeprecatedServiceRule
341-
tags: [phpstan.rules.rule]
342-
343-
-
344-
class: mglaman\PHPStanDrupal\Rules\Drupal\RenderCallbackRule
345-
tags: [phpstan.rules.rule]
346-
-
347-
class: mglaman\PHPStanDrupal\Rules\Deprecations\ConditionManagerCreateInstanceContextConfigurationRule
348-
tags: [phpstan.rules.rule]
349313
-
350314
class: mglaman\PHPStanDrupal\Drupal\DrupalStubFilesExtension
351315
tags: [phpstan.stubFilesExtension]

0 commit comments

Comments
 (0)