From 0bccd2c27d8d6f6ce2e54e2e507bfda475beeae6 Mon Sep 17 00:00:00 2001 From: Tigrov Date: Sun, 7 Jul 2024 17:45:25 +0700 Subject: [PATCH] Fix psalm issue --- src/ActiveRecordInterface.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/ActiveRecordInterface.php b/src/ActiveRecordInterface.php index a54f65ef8..6ae6d0bfc 100644 --- a/src/ActiveRecordInterface.php +++ b/src/ActiveRecordInterface.php @@ -11,6 +11,7 @@ use Yiisoft\Db\Exception\InvalidConfigException; use Yiisoft\Db\Exception\NotSupportedException; use Yiisoft\Db\Exception\StaleObjectException; +use Yiisoft\Db\Schema\SchemaInterface; interface ActiveRecordInterface { @@ -25,6 +26,12 @@ interface ActiveRecordInterface */ public function attributes(): array; + /** + * Returns the abstract type of the column. See {@see SchemaInterface} constants started with prefix `TYPE_` for + * possible abstract types. + */ + public function columnType(string $columnName): string; + /** * Returns the database connection used by the Active Record instance. */