New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get string/boolean/integer property fallback #750
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Test are fine for me.
- I see some possible improvements in the code and PHPDoc (see comments)
- The
getBooleanProperty
should not returnnull
(it's unclear when expecting a boolean) and the doc should enforce all$default
type to be aligned to the@return
of the method
Here's my suggestion for shared code
Also fallback has no space |
@MarkVaughn "fall back" in the sense of "to fall back [to]", not a fallback. https://dictionary.cambridge.org/de/worterbuch/englisch/fall-back |
I'm fine with your suggestion, though I would prefer to leave the third |
sorry for the misclicks :/ |
Not sure what
has to do with this code. |
@MarkVaughn nothing. It's an issue of Travis. I'll restart the job. |
Type: feature
Issue: Resolves none
Breaking change: no
Refers to #747 (comment)
I did not use the new fall back values it in any call ,yet.
Self critique::
Theoretically, this could lead to two cases of unclean code: