Commit 9b9f681b authored by Jakub Konečný's avatar Jakub Konečný

do not use function is_null()

parent 2134721f
Pipeline #75744469 passed with stage
in 2 minutes and 2 seconds
......@@ -23,7 +23,7 @@ final class ConditionUserLoggedIn implements IBookPageCondition {
* @throws \InvalidArgumentException
*/
public function isAllowed($parameter = null): bool {
if(is_null($parameter)) {
if($parameter === null) {
return true;
} elseif(!is_bool($parameter)) {
throw new \InvalidArgumentException("Method " . __METHOD__ . " expects boolean as parameter.");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment