From a701bab5597fe39248fce505f99848bc4c13809c Mon Sep 17 00:00:00 2001 From: Dave Long <dave@longwaveconsulting.com> Date: Wed, 12 Apr 2023 14:14:41 +0100 Subject: [PATCH] Issue #3352932 by Spokje: Fix PHPStan L1 error "Class Foo\Bar\Baz referenced with incorrect case: Foo\bar\Baz." --- core/modules/settings_tray/settings_tray.module | 2 +- core/phpstan-baseline.neon | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/core/modules/settings_tray/settings_tray.module b/core/modules/settings_tray/settings_tray.module index 0f3c3a262d97..ec276f3b38b6 100644 --- a/core/modules/settings_tray/settings_tray.module +++ b/core/modules/settings_tray/settings_tray.module @@ -9,7 +9,7 @@ use Drupal\Core\Asset\AttachedAssetsInterface; use Drupal\Core\Routing\RouteMatchInterface; use Drupal\Core\Language\LanguageInterface; -use Drupal\block\entity\Block; +use Drupal\block\Entity\Block; use Drupal\block\BlockInterface; use Drupal\settings_tray\Block\BlockEntitySettingTrayForm; diff --git a/core/phpstan-baseline.neon b/core/phpstan-baseline.neon index daa99e8c091f..3f80f62634e3 100644 --- a/core/phpstan-baseline.neon +++ b/core/phpstan-baseline.neon @@ -2305,11 +2305,6 @@ parameters: count: 1 path: modules/serialization/tests/src/Unit/Normalizer/TypedDataNormalizerTest.php - - - message: "#^Class Drupal\\\\block\\\\Entity\\\\Block referenced with incorrect case\\: Drupal\\\\block\\\\entity\\\\Block\\.$#" - count: 2 - path: modules/settings_tray/settings_tray.module - - message: "#^Method Drupal\\\\shortcut\\\\Form\\\\SetCustomize\\:\\:save\\(\\) should return int but return statement is missing\\.$#" count: 1 -- GitLab