Skip to content

Commit 17a9fee

Browse files
committed
Remove debug info collecting
1 parent 4f6eb61 commit 17a9fee

File tree

2 files changed

+5
-18
lines changed

2 files changed

+5
-18
lines changed

psalm-baseline.xml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -966,19 +966,6 @@
966966
</PossiblyInvalidArgument>
967967
</file>
968968
<file src="src/Internal/Transport/Client.php">
969-
<InternalClass>
970-
<code><![CDATA[self::ERROR_REQUEST_ID_DUPLICATION]]></code>
971-
<code><![CDATA[self::ERROR_REQUEST_NOT_FOUND]]></code>
972-
</InternalClass>
973-
<InternalMethod>
974-
<code><![CDATA[fetch]]></code>
975-
<code><![CDATA[get]]></code>
976-
<code><![CDATA[reject]]></code>
977-
<code><![CDATA[request]]></code>
978-
</InternalMethod>
979-
<InternalProperty>
980-
<code><![CDATA[$this->requests]]></code>
981-
</InternalProperty>
982969
<PossiblyInvalidArgument>
983970
<code><![CDATA[$command->getID()]]></code>
984971
<code><![CDATA[$command->getID()]]></code>

src/Internal/Transport/Client.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
/**
2727
* @internal Client is an internal library class, please do not use it in your code.
28-
* @psalm-internal Temporal\Client\Internal\Transport
28+
* @psalm-internal Temporal\Internal\Transport
2929
*/
3030
final class Client implements ClientInterface
3131
{
@@ -84,12 +84,12 @@ public function request(RequestInterface $request, ?WorkflowContextInterface $co
8484

8585
$id = $request->getID();
8686

87-
if (isset($this->requests[$id])) {
88-
throw new \OutOfBoundsException(\sprintf(self::ERROR_REQUEST_ID_DUPLICATION, $id));
89-
}
87+
\array_key_exists($id, $this->requests) and throw new \OutOfBoundsException(
88+
\sprintf(self::ERROR_REQUEST_ID_DUPLICATION, $id),
89+
);
9090

9191
$deferred = new Deferred();
92-
$this->requests[$id] = [$deferred, $context, $request::class];
92+
$this->requests[$id] = [$deferred, $context];
9393

9494
return $deferred->promise();
9595
}

0 commit comments

Comments
 (0)