-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Reduced code duplication in FlashMessenger plugin #6073
Conversation
pszczekutowicz
commented
Apr 1, 2014
- Zend/Mvc/Controller/Plugin/FlashMessenger.php
- Zend/Mvc/Controller/Plugin/FlashMessenger.php
* @return FlashMessenger Provides a fluent interface | ||
*/ | ||
public function addMessage($message) | ||
public function addMessage($message, $namespace = null) |
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.
All these new $namespace
parameters need related tests
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.
Tests created
Marking as bc-break since you added parameters to the methods. |
@Ocramius not necessarily a BC break, as the new parameters are optional; original behavior is preserved, and you can call them without the arguments. |
@weierophinney subclasses would still need change |
@Ocramius good point. @pszczekutowicz You can make this BC safe by removing the default argument, and instead using |
@weierophinney the BC break is acceptable if we schedule this for 2.4 (imo) |
Any conclusion @Ocramius @weierophinney? Should i commit the change? |
@pszczekutowicz I believe @Ocramius is saying he can merge it as-is to develop for release with 2.4.0. |
@pszczekutowicz thanks for the change |