Skip to content

Commit 6718225

Browse files
committed
inherit parent doc
1 parent cac19df commit 6718225

File tree

1 file changed

+5
-21
lines changed

1 file changed

+5
-21
lines changed

src/Query/Processor.php

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -100,41 +100,27 @@ protected function processColumn(mixed $value): mixed
100100
}
101101

102102
/**
103-
* Process the results of a columns query.
104-
*
105103
* {@inheritDoc}
106-
* @param array<array-key, array<array-key, mixed>> $results
107-
* @return array<array-key, array{
108-
* name: string,
109-
* type_name: string,
110-
* type: string,
111-
* collation: null,
112-
* nullable: bool,
113-
* default: scalar,
114-
* auto_increment: false,
115-
* comment: null
116-
* }>
104+
* @param list<array{COLUMN_NAME: string, SPANNER_TYPE: string, IS_NULLABLE: string, COLUMN_DEFAULT: mixed}> $results
117105
*/
118106
public function processColumns($results)
119107
{
120108
return array_map(static function (array $result) {
121109
return [
122110
'name' => $result['COLUMN_NAME'],
123-
'type_name' => preg_replace("/\([^)]+\)/", "", $result['SPANNER_TYPE']),
124111
'type' => $result['SPANNER_TYPE'],
125-
'collation' => null,
112+
'type_name' => (string) preg_replace("/\([^)]+\)/", "", $result['SPANNER_TYPE']),
126113
'nullable' => $result['IS_NULLABLE'] !== 'NO',
127114
'default' => $result['COLUMN_DEFAULT'],
128115
'auto_increment' => false,
116+
'generation' => null,
129117
'comment' => null,
130118
];
131119
}, $results);
132120
}
133121

134122
/**
135-
* {@inheritDoc}
136-
* @param array{ index_name: string }&array<string, mixed> $results
137-
* @return array<array-key, string>
123+
* @inheritDoc
138124
*/
139125
public function processIndexes($results)
140126
{
@@ -144,9 +130,7 @@ public function processIndexes($results)
144130
}
145131

146132
/**
147-
* {@inheritDoc}
148-
* @param array{key_name: string}&array<string, mixed> $results
149-
* @return array<array-key, string>
133+
* @inheritDoc
150134
*/
151135
public function processForeignKeys($results)
152136
{

0 commit comments

Comments
 (0)