Skip to content

Commit 24f94ad

Browse files
authored
Merge pull request #1768 from greg0ire/analyze-middleware
Analyze Middleware directory
2 parents 7150c1d + d05c094 commit 24f94ad

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed

Middleware/BacktraceDebugDataHolder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class BacktraceDebugDataHolder extends DebugDataHolder
1717
/** @var string[] */
1818
private array $connWithBacktraces;
1919

20-
/** @var array<string, array<string, mixed>[]> */
20+
/** @var array<string, array<int|string, mixed>[]> */
2121
private array $backtraces = [];
2222

2323
/** @param string[] $connWithBacktraces */

Middleware/DebugMiddleware.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ public function setConnectionName(string $name): void
2727

2828
public function wrap(DriverInterface $driver): DriverInterface
2929
{
30+
/** @psalm-suppress InternalClass,InternalMethod */
3031
return new Driver($driver, $this->debugDataHolder, $this->stopwatch, $this->connectionName);
3132
}
3233
}

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
"symfony/property-info": "^5.4 || ^6.0 || ^7.0",
5959
"symfony/proxy-manager-bridge": "^5.4 || ^6.0 || ^7.0",
6060
"symfony/security-bundle": "^5.4 || ^6.0 || ^7.0",
61+
"symfony/stopwatch": "^5.4 || ^6.0 || ^7.0",
6162
"symfony/string": "^5.4 || ^6.0 || ^7.0",
6263
"symfony/twig-bridge": "^5.4 || ^6.0 || ^7.0",
6364
"symfony/validator": "^5.4 || ^6.0 || ^7.0",

psalm.xml.dist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
<directory name="DependencyInjection"/>
2929
<directory name="EventSubscriber"/>
3030
<directory name="Mapping"/>
31+
<directory name="Middleware"/>
3132
<directory name="Repository"/>
3233
<directory name="Tests"/>
3334
<directory name="Twig"/>

0 commit comments

Comments
 (0)