minor #12130 [FrameworkBundle] minor fix (NAYZO)
This PR was submitted for the master branch but it was merged into the 2.3 branch instead (closes #12130).
Discussion
----------
[FrameworkBundle] minor fix
A small fix in the "parse" function of the "ControllerNameParser" Controller.
We should use "!==" instead of "!=" since it's better and faster in this case.
| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | NA
| License | MIT
| Doc PR | NA
Commits
-------
cd966c6
[FrameworkBundle] minor fix
This commit is contained in:
commit
6df49bb9e1
|
@ -46,7 +46,7 @@ class ControllerNameParser
|
|||
*/
|
||||
public function parse($controller)
|
||||
{
|
||||
if (3 != count($parts = explode(':', $controller))) {
|
||||
if (3 !== count($parts = explode(':', $controller))) {
|
||||
throw new \InvalidArgumentException(sprintf('The "%s" controller is not a valid "a:b:c" controller string.', $controller));
|
||||
}
|
||||
|
||||
|
|
Reference in New Issue