zendframework / zend-code

BSD 3-Clause "New" or "Revised" License
1.68k stars 79 forks source link

Default value of ParameterGenerator is always a ValueGenerator #133

Closed Tobion closed 6 years ago

Tobion commented 6 years ago

The setter always transforms any value to a ValueGenerator. Extended classes that manually set $this->defaultValue could experiece a behavior change. But to me it looks like an unintended code paths as the it is not documented what happens with int, float, bool etc. And it breaks for array for example.