diff options
Diffstat (limited to 'libraries')
-rw-r--r-- | libraries/classes/Index.php | 17 | ||||
-rw-r--r-- | libraries/classes/IndexColumn.php | 11 |
2 files changed, 23 insertions, 5 deletions
diff --git a/libraries/classes/Index.php b/libraries/classes/Index.php index b664ee0d8c..94cb50b641 100644 --- a/libraries/classes/Index.php +++ b/libraries/classes/Index.php @@ -548,9 +548,20 @@ class Index /** * Gets the properties in an array for comparison purposes * - * @return array an array containing the properties of the index - */ - public function getCompareData() + * @return array<string, array<int, array<string, int|string|null>>|string|null> + * @psalm-return array{ + * Packed: string|null, + * Index_choice: string, + * columns?: list<array{ + * Column_name: string, + * Seq_in_index: int, + * Collation: string|null, + * Sub_part: int|null, + * Null: string + * }> + * } + */ + public function getCompareData(): array { $data = [ 'Packed' => $this->packed, diff --git a/libraries/classes/IndexColumn.php b/libraries/classes/IndexColumn.php index 4921002f32..adfca050c8 100644 --- a/libraries/classes/IndexColumn.php +++ b/libraries/classes/IndexColumn.php @@ -191,9 +191,16 @@ class IndexColumn /** * Gets the properties in an array for comparison purposes * - * @return array an array containing the properties of the index column + * @return array<string, int|string|null> + * @psalm-return array{ + * Column_name: string, + * Seq_in_index: int, + * Collation: string|null, + * Sub_part: int|null, + * Null: string + * } */ - public function getCompareData() + public function getCompareData(): array { return [ 'Column_name' => $this->name, |