Type the configured transport registry for psalm

This commit is contained in:
dualfroz committed 2026-09-14 17:08:13 +02:00
1 parent 86d47b17ae
commit 4bb906a5d6
1 file changed
+1
+1
View File
@@ -471,6 +471,7 @@ class FakeHttp
$transport = new HeaderTransport(static::AUTH_TOKEN_HEADER_KEY); $transport = new HeaderTransport(static::AUTH_TOKEN_HEADER_KEY);
try { try {
/** @var TransportRegistry $configured */
$configured = $this->container->get(TransportRegistry::class); $configured = $this->container->get(TransportRegistry::class);
foreach (\array_keys($configured->getTransports()) as $name) { foreach (\array_keys($configured->getTransports()) as $name) {
$registry->setTransport((string) $name, $transport); $registry->setTransport((string) $name, $transport);