Skip to content

Commit

Permalink
phpcs fix and attempt to make php 5.6 happy
Browse files Browse the repository at this point in the history
  • Loading branch information
burzum committed Aug 13, 2017
1 parent aede954 commit 24c85fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Shell/SchemaCacheShell.php
Expand Up @@ -80,6 +80,7 @@ protected function _getSchemaCache()
{
try {
$connection = ConnectionManager::get($this->params['connection']);

return new SchemaCache($connection);
} catch (RuntimeException $e) {
$this->abort($e->getMessage());
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase/Database/SchemaCacheTest.php
Expand Up @@ -222,6 +222,6 @@ public function testGetSchemaWithConnectionInstance()
*/
public function testPassingInvalidObject()
{
new SchemaCache(new \stdClass());
new SchemaCache(new \SimpleXMLElement(''));
}
}

0 comments on commit 24c85fb

Please sign in to comment.