diff --git a/core/lib/Drupal/Core/Database/Install/Tasks.php b/core/lib/Drupal/Core/Database/Install/Tasks.php
index fed2c5e..9879998 100644
--- a/core/lib/Drupal/Core/Database/Install/Tasks.php
+++ b/core/lib/Drupal/Core/Database/Install/Tasks.php
@@ -79,7 +79,10 @@
    *
    * @var array
    */
-  protected $results = array();
+  protected $results = array(
+    'fail' => array(),
+    'pass' => array(),
+  );
 
   /**
    * Ensure the PDO driver is supported by the version of PHP in use.
@@ -92,14 +95,14 @@ protected function hasPdoDriver() {
    * Assert test as failed.
    */
   protected function fail($message) {
-    $this->results[$message] = FALSE;
+    $this->results['fail'][] = $message;
   }
 
   /**
    * Assert test as a pass.
    */
   protected function pass($message) {
-    $this->results[$message] = TRUE;
+    $this->results['pass'][] = $message;
   }
 
   /**
@@ -149,11 +152,7 @@ public function runTasks() {
         }
       }
     }
-    // Filter out the success messages from results.
-    $errors = array_filter($this->results, function ($value) {
-      return !$value;
-    });
-    return array_keys($errors);
+    return $this->results['fail'];
   }
 
   /**
