From b9b00faab530582235baaf8bd69a8c9be11d8f1b Mon Sep 17 00:00:00 2001 From: enricodias Date: Tue, 22 Oct 2019 11:58:33 -0200 Subject: [PATCH] The use of function is_null() is discouraged --- src/nameize.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nameize.php b/src/nameize.php index 5ec5481..040b083 100644 --- a/src/nameize.php +++ b/src/nameize.php @@ -9,7 +9,7 @@ class nameize public function __construct($allowedCharacters = null) { - if (!is_null($allowedCharacters)) $this->setAllowedCharacters($allowedCharacters); + if ($allowedCharacters !== null) $this->setAllowedCharacters($allowedCharacters); return $this;