Skip to content

Commit ad6c5da

Browse files
committed
Add a better return type for Query::getAll()
Signed-off-by: William Desportes <[email protected]>
1 parent 8fddb4b commit ad6c5da

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

‎src/Utils/Query.php‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,11 @@ public static function getFlags($statement, $all = false)
464464
* expressions, the table names are fetched from the
465465
* `FROM` expressions
466466
* - select_expr - selected expressions
467-
* @psalm-return QueryFlagsType
467+
* @psalm-return QueryFlagsType&array{
468+
* select_expr?: (string|null)[],
469+
* select_tables?: array{string, string|null}[],
470+
* statement?: Statement|null, parser?: Parser
471+
* }
468472
*/
469473
public static function getAll($query)
470474
{

0 commit comments

Comments
 (0)