Verified Commit 09fcd9e9 authored by godotislate's avatar godotislate
Browse files

task: #3050199 Fix PHPStan errors after revert.

(cherry picked from commit 70118461)
parent 8cd4b02a
Loading
Loading
Loading
Loading
Loading
+1 −1
Changes for core/.phpstan-baseline.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -33134,7 +33134,7 @@
$ignoreErrors[] = [
	'message' => '#^Call to an undefined method Drupal\\\\Core\\\\Form\\\\FormInterface\\:\\:getEntity\\(\\)\\.$#',
	'identifier' => 'method.notFound',
	'count' => 4,
	'count' => 3,
	'path' => __DIR__ . '/modules/menu_ui/src/Hook/MenuUiHooks.php',
];
$ignoreErrors[] = [
+1
Changes for core/modules/menu_ui/src/Plugin/Validation/Constraint/MenuSettingsConstraintValidator.php: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -45,6 +45,7 @@ public function validate($entity, Constraint $constraint): void {
        $values['parent'] = $parent;
      }

      /** @var \Drupal\menu_ui\Plugin\Validation\Constraint\MenuSettingsConstraint $constraint */
      // Handle the case when the menu link is deleted in a pending revision.
      if (empty($values['enabled']) && $defaults['entity_id']) {
        $this->context->buildViolation($constraint->messageRemove)