Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Default value of ParameterGenerator is always a ValueGenerator #133

Merged
merged 1 commit into from
Oct 20, 2017
Merged

Default value of ParameterGenerator is always a ValueGenerator #133

merged 1 commit into from
Oct 20, 2017

Conversation

Tobion
Copy link
Contributor

@Tobion Tobion commented Oct 11, 2017

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.

@Ocramius Ocramius self-assigned this Oct 20, 2017
@Ocramius Ocramius added this to the 3.3.0 milestone Oct 20, 2017
Copy link
Member

@Ocramius Ocramius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@Ocramius Ocramius merged commit 3149f6f into zendframework:master Oct 20, 2017
@Tobion Tobion deleted the simplify-param-generator branch October 20, 2017 15:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants