Skip to content

Commit 7bbca98

Browse files
authored
fix(Spanner): php 8.5 deprecations (#9135)
1 parent ff0103b commit 7bbca98

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Spanner/src/ValueMapper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ private function paramType(
427427

428428
// Convert library specific wrapper type to type code and type
429429
// code annotation, if applicable.
430-
if (isset(self::$typeCodes[$givenType])) {
430+
if (null !== $givenType && isset(self::$typeCodes[$givenType])) {
431431
$typeAnnotation = self::$typeAnnotations[$givenType];
432432
$givenType = self::$typeCodes[$givenType];
433433
}
@@ -889,7 +889,7 @@ private function getColumnName(array $columns, int $index): string|int
889889
*/
890890
private static function isCustomType(string|null $type): bool
891891
{
892-
return array_key_exists($type, self::$typeToClassMap);
892+
return null !== $type && array_key_exists($type, self::$typeToClassMap);
893893
}
894894

895895
/**

0 commit comments

Comments
 (0)