contributte / forms-multiplier

:repeat: Form multiplier & replicator for Nette Framework
https://contributte.org/packages/contributte/forms-multiplier.html
MIT License
26 stars 21 forks source link

Multiplier: Add missing param typehint to getValues #94

Closed jtojnar closed 7 months ago

jtojnar commented 7 months ago

This fixes the following PHPStan errors:

280 Method Contributte\FormMultiplier\Multiplier::getValues() has parameter $returnType with no type specified. 290 No error to ignore is reported on line 290.

Let’s also deprecate passing bool $returnType deprecated like nette/forms 3.2.0 does:

https://github.com/nette/forms/commit/0a812bd6e70aba54c6e563aef4d77bd4388607ae

Also use Array constant made public in 3.1.12:

https://github.com/nette/forms/commit/0be7b3d5971113515e9020cf53453e74f02a46a1