Skip to content

Commit c8a5181

Browse files
authored
ci: fix phpstan lint (#9223)
1 parent cc0d5a2 commit c8a5181

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

Spanner/src/Operation.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1005,8 +1005,12 @@ private function formatPartitionQueryOptions(array $args): array
10051005
$parameters = $args['parameters'] ?? [];
10061006
$types = $args['types'] ?? [];
10071007

1008-
$paramsAndParamTypes = $this->mapper->formatParamsForExecuteSql($parameters, $types);
1009-
return $this->formatSqlParams($paramsAndParamTypes);
1008+
/** @var array{params: array, paramTypes: array} $paramsAndParamTypes */
1009+
$paramsAndParamTypes = $this->formatSqlParams(
1010+
$this->mapper->formatParamsForExecuteSql($parameters, $types)
1011+
);
1012+
1013+
return $paramsAndParamTypes;
10101014
}
10111015

10121016
/**

Spanner/src/ValueMapper.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ public function __construct(bool $returnInt64AsObject)
137137
*
138138
* @param array $parameters The key/value parameters.
139139
* @param array $types The types of values.
140-
* @return array An associative array containing params and paramTypes.
140+
* @return array{params: array, paramTypes: array}
141141
*/
142142
public function formatParamsForExecuteSql(array $parameters, array $types = []): array
143143
{
@@ -836,8 +836,7 @@ private function objectParam(mixed $value): array
836836
* @param int $typeAnnotation The type annotation code
837837
* @param array $nestedDefinition [optional] A nested definition, to define
838838
* the structure of an array or struct type.
839-
* @param string $nestedDefinitionType [optional] Either `arrayElementType`
840-
* or `structType`.
839+
* @param 'arrayElementType'|'structType'|null $nestedDefinitionType
841840
* @return array{
842841
* code?: int,
843842
* arrayElementType?: array,

0 commit comments

Comments
 (0)