diff --git a/src/Shell/SchemaCacheShell.php b/src/Shell/SchemaCacheShell.php
index <HASH>..<HASH> 100644
--- a/src/Shell/SchemaCacheShell.php
+++ b/src/Shell/SchemaCacheShell.php
@@ -80,6 +80,7 @@ class SchemaCacheShell extends Shell
     {
         try {
             $connection = ConnectionManager::get($this->params['connection']);
+
             return new SchemaCache($connection);
         } catch (RuntimeException $e) {
             $this->abort($e->getMessage());
diff --git a/tests/TestCase/Database/SchemaCacheTest.php b/tests/TestCase/Database/SchemaCacheTest.php
index <HASH>..<HASH> 100644
--- a/tests/TestCase/Database/SchemaCacheTest.php
+++ b/tests/TestCase/Database/SchemaCacheTest.php
@@ -222,6 +222,6 @@ class SchemaCacheTest extends TestCase
      */
     public function testPassingInvalidObject()
     {
-        new SchemaCache(new \stdClass());
+        new SchemaCache(new \SimpleXMLElement(''));
     }
 }
phpcs fix and attempt to make php <I> happy