Skip to content

Commit cd966c6

Browse files
nayzofabpot
authored andcommitted
[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? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | NA | License | MIT | Doc PR | NA
1 parent db44606 commit cd966c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bundle/FrameworkBundle/Controller/ControllerNameParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function __construct(KernelInterface $kernel)
4646
*/
4747
public function parse($controller)
4848
{
49-
if (3 != count($parts = explode(':', $controller))) {
49+
if (3 !== count($parts = explode(':', $controller))) {
5050
throw new \InvalidArgumentException(sprintf('The "%s" controller is not a valid "a:b:c" controller string.', $controller));
5151
}
5252

0 commit comments

Comments
 (0)