diff --git a/src/Schema.php b/src/Schema.php index 651defa2..beecabc4 100644 --- a/src/Schema.php +++ b/src/Schema.php @@ -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(); @@ -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(); @@ -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)]); } /**