diff --git a/jsm.inc.php b/jsm.inc.php index b6fee16..55c1b3d 100644 --- a/jsm.inc.php +++ b/jsm.inc.php @@ -457,7 +457,7 @@ class JSM private function _extractDefNameAndArgs(string $full_name) : array { $pos = strpos($full_name, '('); - if($pos == -1) + if($pos === false) throw new Exception("Bad args string: $full_name"); $name = substr($full_name, 0, $pos);