Verified Commit 104a2559 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3317652 by mondrake, longwave: Fix Updater PHPStan L0 issues

(cherry picked from commit d96c99b4)
parent 7e73ad25
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@
/**
 * Defines the base class for Updaters used in Drupal.
 */
class Updater {
abstract class Updater {

  /**
   * Directory to install from.
@@ -194,6 +194,14 @@ public static function getProjectTitle($directory) {
    return $info['name'];
  }

  /**
   * Returns the path to the default install location for the current project.
   *
   * @return string
   *   The absolute path of the directory.
   */
  abstract public function getInstallDirectory();

  /**
   * Stores the default parameters for the Updater.
   *
+0 −5
Original line number Diff line number Diff line
@@ -395,11 +395,6 @@ parameters:
			count: 1
			path: lib/Drupal/Core/Updater/Module.php

		-
			message: "#^Call to an undefined method Drupal\\\\Core\\\\Updater\\\\Updater\\:\\:getInstallDirectory\\(\\)\\.$#"
			count: 1
			path: lib/Drupal/Core/Updater/Updater.php

		-
			message: "#^Method Drupal\\\\action\\\\Form\\\\ActionFormBase\\:\\:save\\(\\) should return int but return statement is missing\\.$#"
			count: 1