X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FOperator%2FDoctrine%2FMatches.php;h=e161016194408d37ebf1f1970052a55634562de9;hb=1953a872932a63792293b4aec087880265ba89f7;hp=e6bb03b12d4a5fd3b9ba2ccc114f114a71111d47;hpb=a7f1921f7db312b5def3839393357f443dcbb52c;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/CoreBundle/Operator/Doctrine/Matches.php b/src/Wallabag/CoreBundle/Operator/Doctrine/Matches.php index e6bb03b1..e1610161 100644 --- a/src/Wallabag/CoreBundle/Operator/Doctrine/Matches.php +++ b/src/Wallabag/CoreBundle/Operator/Doctrine/Matches.php @@ -16,7 +16,7 @@ class Matches { public function __invoke($subject, $pattern) { - if ($pattern[0] === "'") { + if ("'" === $pattern[0]) { $pattern = sprintf("'%%%s%%'", substr($pattern, 1, -1)); }