Skip to content

Commit 8d07d49

Browse files
committed
Suppress Psalm 6.20.10's check of ClientForm::setDefaults()
Psalm 6.20.10 holds an override of Nette\Forms\Container::setDefaults() to the parent's docblock type (iterable<mixed>|\stdClass), yet refuses that same type as a docblock for the native array|object both methods declare. No docblock satisfies both checks, so the Quality control job has failed since CI resolved 6.20.10 (6.20.9 passed). The check is suppressed on the method, with the reason beside it. Assisted-by: Claude Code (claude-opus-5-5, diagnosis & fix)
1 parent 3a07b35 commit 8d07d49

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎src/Forms/ClientForm.php‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1051,6 +1051,11 @@ public function getValues(string|object|bool|null $returnType = null, ?array $co
10511051

10521052

10531053
/**
1054+
* Nette documents the parameter as `iterable<mixed>|\stdClass` on the native `array|object` this method keeps.
1055+
* Psalm, since 6.20.10, holds an override to that docblock type, yet refuses the same type as a docblock for
1056+
* the native one (an iterable with mixed keys is not an array), so no docblock here satisfies both checks.
1057+
*
1058+
* @psalm-suppress ImplementedParamTypeMismatch
10541059
* @throws \Exception
10551060
*/
10561061
public function setDefaults(object|array $values, bool $erase = false): static

0 commit comments

Comments
 (0)