File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/Instrumentation/PDO/src Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,8 @@ public function trackedAttributesForStatement(PDOStatement $statement): array
5757 return [];
5858 }
5959
60- return $ this ->pdoToAttributesMap [$ pdo ] ?: [];
60+ /** @psalm-var array<non-empty-string, bool|int|float|string|array|null> */
61+ return $ this ->pdoToAttributesMap [$ pdo ] ?? [];
6162 }
6263
6364 /**
@@ -91,7 +92,8 @@ public function trackPdoAttributes(PDO $pdo, string $dsn): array
9192 */
9293 public function trackedAttributesForPdo (PDO $ pdo ): array
9394 {
94- return $ this ->pdoToAttributesMap [$ pdo ] ?: [];
95+ /** @psalm-var array<non-empty-string, bool|int|float|string|array|null> */
96+ return $ this ->pdoToAttributesMap [$ pdo ] ?? [];
9597 }
9698
9799 public function getSpanForPreparedStatement (PDOStatement $ statement ): ?SpanContextInterface
You can’t perform that action at this time.
0 commit comments