Skip to content

Commit

Permalink
FIX compile error
Browse files Browse the repository at this point in the history
PHP 8.2 
Declaration of Contributte\FormMultiplier\Multiplier::setValues($values, bool $erase = false): Contributte\FormMultiplier\Multiplier must be compatible with Nette\Forms\Container::setValues(object|array $data, bool $erase = false): static
  • Loading branch information
MikKuba authored and MartkCz committed Feb 12, 2024
1 parent 39725d3 commit 9b4e600
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Multiplier.php
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ public function getContainers(): Iterator
* @param mixed[]|object $values
* @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint
*/
public function setValues($values, bool $erase = false): self
public function setValues($values, bool $erase = false): static
{
$values = $values instanceof Traversable ? iterator_to_array($values) : (array) $values;

Expand Down

0 comments on commit 9b4e600

Please sign in to comment.