Browse Source

Merge pull request #11177 from cakephp/update-schema-cache-typehint

Update the typehint to Connection instead of ConnectionInterface
Mark Story 8 years ago
parent
commit
0c597ce0d5
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/Database/SchemaCache.php

+ 3 - 3
src/Database/SchemaCache.php

@@ -15,7 +15,7 @@
 namespace Cake\Database;
 
 use Cake\Cache\Cache;
-use Cake\Datasource\ConnectionInterface;
+use Cake\Database\Connection;
 use Cake\Datasource\ConnectionManager;
 use InvalidArgumentException;
 use RuntimeException;
@@ -93,10 +93,10 @@ class SchemaCache
     /**
      * Helper method to get the schema collection.
      *
-     * @param \Cake\Datasource\ConnectionInterface $connection Connection object
+     * @param \Cake\Database\Connection $connection Connection object
      * @return \Cake\Database\Schema\Collection|\Cake\Database\Schema\CachedCollection
      */
-    public function getSchema(ConnectionInterface $connection)
+    public function getSchema(Connection $connection)
     {
         if (!method_exists($connection, 'schemaCollection')) {
             throw new RuntimeException('The given connection object is not compatible with schema caching, as it does not implement a "schemaCollection()" method.');