-
Notifications
You must be signed in to change notification settings - Fork 2.5k
bugfix : options can't be passed to SeparatorToSeparator via PluginManager #6666
bugfix : options can't be passed to SeparatorToSeparator via PluginManager #6666
Conversation
…ray in order to be instantiate by PluginManager - see AbstractPluginManager::createFromInvokable()
{ | ||
$this->setSearchSeparator($searchSeparator); | ||
$this->setReplacementSeparator($replacementSeparator); | ||
public function __construct($options = 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.
place {
at new line , see https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md#11-example
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.
Corrected. sorry for the mistake
This is a major BC break IMO: instead, we should probably just register a factory for this filter to workaround the current limitations. |
Hi Ocramius, I have made a new branch. Is it what you want ? Thanks, |
@Tauop that looks correct, yes |
…r-to-separator-filter' Close #7169
Handled in #7169 |
…ry from plugin manager
…emoving duplicate filter entry from plugin manager
…emoving redundant factory constructor
Hi,
When you try to create a SeparatorToSeparator via PluginManager, array options are not passed correctly to the Filter
This exemple
throws this error :
My PR propose to change the Zend\Filter\Word\SeparatorToSeparator constructor argument to an array option, as all descending classes.
Cheers,
Patrick