diff --git a/core/phpstan-baseline.neon b/core/phpstan-baseline.neon index 852cfd2c908b9210eb8e4fe82d48b8f66f61017f..6ab1be0735f0e65bb06d2889d8b173b0dbbfcec4 100644 --- a/core/phpstan-baseline.neon +++ b/core/phpstan-baseline.neon @@ -901,6 +901,11 @@ parameters: count: 1 path: lib/Drupal/Core/Menu/MenuLinkManager.php + - + message: "#^Missing cache backend declaration for performance\\.$#" + count: 1 + path: lib/Drupal/Core/Menu/MenuLinkManager.php + - message: """ #^Fetching deprecated class constant RETURN_INSERT_ID of class Drupal\\\\Core\\\\Database\\\\Database\\: @@ -915,6 +920,11 @@ parameters: count: 1 path: lib/Drupal/Core/Menu/MenuTreeStorage.php + - + message: "#^Missing cache backend declaration for performance\\.$#" + count: 1 + path: lib/Drupal/Core/Plugin/DefaultPluginManager.php + - message: "#^Constructor of class Drupal\\\\Core\\\\Queue\\\\Memory has an unused parameter \\$name\\.$#" count: 1 @@ -1830,6 +1840,16 @@ parameters: count: 1 path: modules/migrate/src/Plugin/Discovery/AnnotatedClassDiscoveryAutomatedProviders.php + - + message: "#^Missing cache backend declaration for performance\\.$#" + count: 1 + path: modules/migrate/src/Plugin/MigrateDestinationPluginManager.php + + - + message: "#^Missing cache backend declaration for performance\\.$#" + count: 1 + path: modules/migrate/src/Plugin/MigrateSourcePluginManager.php + - message: "#^Constructor of class Drupal\\\\migrate\\\\Plugin\\\\MigrationPluginManager has an unused parameter \\$language_manager\\.$#" count: 1 @@ -1875,6 +1895,11 @@ parameters: count: 2 path: modules/migrate/tests/src/Unit/process/SubProcessTest.php + - + message: "#^Missing cache backend declaration for performance\\.$#" + count: 1 + path: modules/migrate_drupal/src/MigrationPluginManager.php + - message: "#^Variable \\$patterns might not be defined\\.$#" count: 1 @@ -1905,6 +1930,11 @@ parameters: count: 1 path: modules/migrate_drupal/tests/src/Kernel/d7/ValidateMigrationStateTest.php + - + message: "#^Missing cache backend declaration for performance\\.$#" + count: 1 + path: modules/migrate_drupal/tests/src/Unit/MigrateFieldPluginManagerTest.php + - message: "#^Variable \\$patterns might not be defined\\.$#" count: 1 @@ -2349,6 +2379,31 @@ parameters: count: 1 path: modules/system/tests/modules/service_provider_test/src/TestClass.php + - + message: "#^Missing cache backend declaration for performance\\.$#" + count: 1 + path: modules/system/tests/modules/lazy_route_provider_install_test/src/PluginManager.php + + - + message: "#^Missing cache backend declaration for performance\\.$#" + count: 1 + path: modules/system/tests/modules/module_test/src/PluginManagerCacheClearer.php + + - + message: "#^Missing cache backend declaration for performance\\.$#" + count: 1 + path: modules/system/tests/modules/plugin_test/src/Plugin/DefaultsTestPluginManager.php + + - + message: "#^Missing cache backend declaration for performance\\.$#" + count: 1 + path: modules/system/tests/modules/plugin_test/src/Plugin/MockBlockManager.php + + - + message: "#^Missing cache backend declaration for performance\\.$#" + count: 1 + path: modules/system/tests/modules/plugin_test/src/Plugin/TestPluginManager.php + - message: """ #^Usage of deprecated trait Symfony\\\\Component\\\\DependencyInjection\\\\ContainerAwareTrait in class Drupal\\\\service_provider_test\\\\TestClass\\: @@ -3330,6 +3385,11 @@ parameters: count: 1 path: tests/Drupal/Tests/Component/Plugin/Factory/ReflectionFactoryTest.php + - + message: "#^Missing cache backend declaration for performance\\.$#" + count: 1 + path: tests/Drupal/Tests/Component/Plugin/StubPluginManagerBaseWithMapper.php + - message: "#^Result of static method Drupal\\\\Composer\\\\Composer\\:\\:ensureComposerVersion\\(\\) \\(void\\) is used\\.$#" count: 1 @@ -3505,6 +3565,11 @@ parameters: count: 1 path: tests/Drupal/Tests/Core/Plugin/CategorizingPluginManagerTraitTest.php + - + message: "#^Missing cache backend declaration for performance\\.$#" + count: 1 + path: tests/Drupal/Tests/Core/Plugin/CategorizingPluginManagerTraitTest.php + - message: "#^Call to deprecated method withConsecutive\\(\\) of class PHPUnit\\\\Framework\\\\MockObject\\\\Builder\\\\InvocationMocker\\.$#" count: 1 @@ -3515,11 +3580,21 @@ parameters: count: 1 path: tests/Drupal/Tests/Core/Plugin/Discovery/TestContainerDerivativeDiscovery.php + - + message: "#^Missing cache backend declaration for performance\\.$#" + count: 1 + path: tests/Drupal/Tests/Core/Plugin/FilteredPluginManagerTraitTest.php + - message: "#^Constructor of class Drupal\\\\Tests\\\\Core\\\\Plugin\\\\TestPluginManager has an unused parameter \\$namespaces\\.$#" count: 1 path: tests/Drupal/Tests/Core/Plugin/TestPluginManager.php + - + message: "#^Missing cache backend declaration for performance\\.$#" + count: 1 + path: tests/Drupal/Tests/Core/Plugin/TestPluginManager.php + - message: """ #^Call to deprecated method expectError\\(\\) of class PHPUnit\\\\Framework\\\\TestCase\\: diff --git a/core/phpstan.neon.dist b/core/phpstan.neon.dist index ca2787a16bdad683aafa341d0415a3e5399009da..9fd9de130cd77f94cc4d4067dd66feca97ed33eb 100644 --- a/core/phpstan.neon.dist +++ b/core/phpstan.neon.dist @@ -37,5 +37,4 @@ parameters: # Ignore common errors for now. - "#Drupal calls should be avoided in classes, use dependency injection instead#" - "#^Plugin definitions cannot be altered.#" - - "#^Missing cache backend declaration for performance.#" - "#^Class .* extends @internal class#"