Version: 3.3.0
Bug Description
Incorrect preg_match pattern for checking $this->layout
Steps To Reproduce
PhpStrom show warning for code preg_match('#/|\\\#', $this->layout) - illegal escape sequence
in method Presenter::formatLayoutTemplateFiles():
|
if (is_string($this->layout) && preg_match('#/|\\\#', $this->layout)) { |
Expected Behavior
There should be no warnings.
Possible Solution
There should probably be 4 backslashes in the pattern:
preg_match('#/|\\\\#', $this->layout)
See the docs: https://www.php.net/manual/en/regexp.reference.escape.php
Version: 3.3.0
Bug Description
Incorrect preg_match pattern for checking $this->layout
Steps To Reproduce
PhpStrom show warning for code
preg_match('#/|\\\#', $this->layout)- illegal escape sequencein method Presenter::formatLayoutTemplateFiles():
application/src/Application/UI/Presenter.php
Line 561 in e6c304f
Expected Behavior
There should be no warnings.
Possible Solution
There should probably be 4 backslashes in the pattern:
preg_match('#/|\\\\#', $this->layout)See the docs: https://www.php.net/manual/en/regexp.reference.escape.php