diff --git a/core/lib/Drupal/Core/Updater/Updater.php b/core/lib/Drupal/Core/Updater/Updater.php
index 402047fc9845c4ef25cae687d0f8ecd5b089dc85..f20dd67e8c2eeba4936433d5da8dc77a47923b2b 100644
--- a/core/lib/Drupal/Core/Updater/Updater.php
+++ b/core/lib/Drupal/Core/Updater/Updater.php
@@ -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.
    *
diff --git a/core/phpstan-baseline.neon b/core/phpstan-baseline.neon
index 89c13f6a8d8361e2d261b8782e200f749b395ea9..7ae594d851055fd9f2682419c262ba635a375215 100644
--- a/core/phpstan-baseline.neon
+++ b/core/phpstan-baseline.neon
@@ -385,11 +385,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