From 9b4e600be60dfbef5861ecd012b0b57d94837d1a Mon Sep 17 00:00:00 2001 From: MikKuba Date: Sat, 10 Feb 2024 18:03:52 +0100 Subject: [PATCH] FIX compile error 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 --- src/Multiplier.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Multiplier.php b/src/Multiplier.php index 4989a92..20d3c38 100644 --- a/src/Multiplier.php +++ b/src/Multiplier.php @@ -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;