Skip to content
This repository was archived by the owner on Feb 28, 2025. It is now read-only.

Commit 5795818

Browse files
committed
Fix wrong object type check
1 parent 254cc4a commit 5795818

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

psalm-baseline.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,15 @@
2929
<code>$val</code>
3030
</MixedAssignment>
3131
</file>
32+
<file src="src/Builder/Encoder/OutputWindowEncoder.php">
33+
<MixedArgument>
34+
<code>$result</code>
35+
</MixedArgument>
36+
</file>
3237
<file src="src/Builder/Encoder/QueryEncoder.php">
38+
<MixedArgument>
39+
<code><![CDATA[$this->recursiveEncode($value)]]></code>
40+
</MixedArgument>
3341
<MixedAssignment>
3442
<code>$subValue</code>
3543
<code>$value</code>

src/Builder/Encoder/AbstractExpressionEncoder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ final public function __construct(protected readonly BuilderEncoder $encoder)
2626
*
2727
* @psalm-param T $value
2828
*
29-
* @psalm-return (T is object ? object : (T is array ? array : mixed))
29+
* @psalm-return (T is stdClass ? stdClass : (T is array ? array : mixed))
3030
*
3131
* @template T
3232
*/

0 commit comments

Comments
 (0)