Skip to content

Commit

Permalink
Fix psalm issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigrov committed Feb 4, 2024
1 parent 98b3bdc commit 5c49385
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/Schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -643,9 +643,12 @@ private function createColumnSchema(string $name): ColumnSchemaInterface
* @throws Exception
* @throws InvalidConfigException
* @throws Throwable
*
* @psalm-return ForeignKeyInfo[]
*/
private function getPragmaForeignKeyList(string $tableName): array
{
/** @psalm-var ForeignKeyInfo[] */
return $this->db->createCommand(
'PRAGMA FOREIGN_KEY_LIST(' . $this->db->getQuoter()->quoteSimpleTableName($tableName) . ')'
)->queryAll();
Expand Down Expand Up @@ -674,9 +677,12 @@ private function getPragmaIndexInfo(string $name): array
* @throws Exception
* @throws InvalidConfigException
* @throws Throwable
*
* @psalm-return IndexListInfo[]
*/
private function getPragmaIndexList(string $tableName): array
{
/** @psalm-var IndexListInfo[] */
return $this->db
->createCommand('PRAGMA INDEX_LIST(' . (string) $this->db->getQuoter()->quoteValue($tableName) . ')')
->queryAll();
Expand Down Expand Up @@ -724,10 +730,12 @@ protected function findViewNames(string $schema = ''): array
* @param string $name the table name.
*
* @return array The cache key.
*
* @psalm-suppress DeprecatedMethod
*/
protected function getCacheKey(string $name): array
{
return array_merge([self::class], $this->generateCacheKey(), [$this->db->getQuoter()->getRawTableName($name)]);
return array_merge([self::class], $this->generateCacheKey(), [$this->getRawTableName($name)]);
}

/**
Expand Down

0 comments on commit 5c49385

Please sign in to comment.