Skip to content

Commit

Permalink
Fix psalm issues. (#182)
Browse files Browse the repository at this point in the history
* Fix psalm issues.

* Fix minor correction.

* Remove unnecessary phpdoc.
  • Loading branch information
terabytesoftw committed Oct 9, 2020
1 parent ce17330 commit 3c11998
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/Schema/Schema.php
Expand Up @@ -100,6 +100,8 @@ public function __construct(ConnectionInterface $db)
$this->cache = $this->db->getSchemaCache();
}

abstract public function createQueryBuilder(): QueryBuilder;

/**
* Resolves the table name and schema name (if any).
*
Expand All @@ -122,11 +124,11 @@ protected function resolveTableName(string $name): TableSchema
* This method should be overridden by child classes in order to support this feature because the default
* implementation simply throws an exception.
*
* @return void all schema names in the database, except system schemas.
* @return array all schema names in the database, except system schemas.
*
* @throws NotSupportedException if this method is not supported by the DBMS.
*/
protected function findSchemaNames()
protected function findSchemaNames(): array
{
throw new NotSupportedException(get_class($this) . ' does not support fetching all schema names.');
}
Expand All @@ -139,7 +141,7 @@ protected function findSchemaNames()
*
* @param string $schema the schema of the tables. Defaults to empty string, meaning the current or default schema.
*
* @return void all table names in the database. The names have NO schema name prefix.
* @return array all table names in the database. The names have NO schema name prefix.
*
* @throws NotSupportedException if this method is not supported by the DBMS.
*/
Expand Down

0 comments on commit 3c11998

Please sign in to comment.