Skip to content

Commit

Permalink
Operator fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JanPetterMG committed Feb 14, 2018
1 parent 691a5cb commit 3c04cf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Client/Directives/DirectiveClientTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ private function checkPathsCallback($rule, $path)
*/
$errorHandler = new ErrorHandler();
set_error_handler([$errorHandler, 'callback'], E_NOTICE | E_WARNING);
if (preg_match('#' . $rule . '#', $path) === false) {
if (preg_match('#' . $rule . '#', $path) !== 1) {
// Rule does not match
restore_error_handler();
return false;
Expand Down

0 comments on commit 3c04cf8

Please sign in to comment.