Skip to content

Commit 54c2f53

Browse files
committed
fix static analysis and http client monitoring
1 parent d36d640 commit 54c2f53

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

phpstan.neon

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ parameters:
3131
- identifier: booleanAnd.alwaysFalse
3232
# Fallback for KernelTestCase::$container removed in Symfony 5.3+
3333
- identifier: staticProperty.notFound
34+
# DBAL v2 SQLLogger interface lacks type on $sql — cannot add one in PHP 8.5+ implementations
35+
- identifier: typeCoverage.paramTypeCoverage
36+
path: src/Doctrine/V2/InspectorSQLLogger.php
3437

3538
excludePaths:
3639

src/Doctrine/V2/InspectorSQLLogger.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,13 @@ public function __construct(Inspector $inspector, array $configuration, string $
3232
/**
3333
* Logs a SQL statement.
3434
*
35+
* @phpstan-param string $sql SQL statement
3536
* @param string $sql SQL statement
3637
* @param array<int, mixed>|array<string, mixed>|null $params Statement parameters
3738
* @param array<int, Type|int|string|null>|array<string, Type|int|string|null>|null $types Parameter types
3839
*/
39-
public function startQuery(string $sql, ?array $params = null, ?array $types = null): void
40+
#[\Override]
41+
public function startQuery($sql, ?array $params = null, ?array $types = null): void
4042
{
4143
$this->inspectorSQLSegmentTracer->startQuery($sql, $params, $types);
4244
}

0 commit comments

Comments
 (0)