Skip to content

Commit 1d9a356

Browse files
committed
Fix compatibility with nette/forms 3.2.3
nette/forms@e227d87 added an extra argument. While at it, let’s also narrow the `$values` argument type to match `Container::setValues`. This change remains compatible with nette/forms 3.2.2.
1 parent fc6296e commit 1d9a356

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Multiplier.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -324,10 +324,9 @@ public function getContainers(): iterable
324324
}
325325

326326
/**
327-
* @param mixed[]|object $values
328-
* @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint
327+
* @internal
329328
*/
330-
public function setValues($values, bool $erase = false): static
329+
public function setValues(array|object $values, bool $erase = false, bool $onlyDisabled = false): static
331330
{
332331
$values = $values instanceof Traversable ? iterator_to_array($values) : (array) $values;
333332

0 commit comments

Comments
 (0)