Skip to content

Commit b6ef1d7

Browse files
committed
chore: Update Psalm baseline
1 parent 38d90fd commit b6ef1d7

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

psalm-baseline.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
<MixedArgument>
55
<code><![CDATA[$primaryKey]]></code>
66
</MixedArgument>
7-
<PossiblyUnusedReturnValue>
8-
<code><![CDATA[TResult]]></code>
9-
</PossiblyUnusedReturnValue>
7+
<MixedReturnStatement>
8+
<code><![CDATA[static::getOrm()->getSchema()->define(static::class, SchemaInterface::TABLE)]]></code>
9+
</MixedReturnStatement>
1010
</file>
1111
<file src="src/Facade.php">
1212
<MixedReturnStatement>
@@ -19,8 +19,8 @@
1919
</InvalidThrow>
2020
</file>
2121
<file src="src/Repository/ActiveRepository.php">
22-
<MixedArgument>
22+
<ArgumentTypeCoercion>
2323
<code><![CDATA[$id]]></code>
24-
</MixedArgument>
24+
</ArgumentTypeCoercion>
2525
</file>
2626
</files>

src/Repository/ActiveRepository.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ public function __construct(string $role)
5151
*
5252
* @note Limit of 1 will be added to the query.
5353
*
54+
* @param string|int|non-empty-list<string|int>|non-empty-array<non-empty-string, string|int>|object $id
55+
*
5456
* @return TEntity|null
5557
*/
5658
public function findByPK(mixed $id): ?object

0 commit comments

Comments
 (0)