phpstan / phpstan-nette

Nette Framework class reflection extension for PHPStan & framework-specific rules
MIT License
100 stars 35 forks source link

Dynamic return type extension for `getUnsafeValues` #66

Closed spaze closed 3 years ago

spaze commented 3 years ago

Hi,

this adds a dynamic return type extension for Nette\Forms\Container::getUnsafeValues() added in nette/forms 3.1.2.

getUnsafeValues(), unlike getValues(), requires a parameter and doesn't support booleans so I went with a new class instead of multiple ifs in FormContainerValuesDynamicReturnTypeExtension.

Thanks!

ondrejmirtes commented 3 years ago

Perfect, thank you!