Skip to content

Commit

Permalink
The use of function is_null() is discouraged
Browse files Browse the repository at this point in the history
  • Loading branch information
enricodias committed Oct 22, 2019
1 parent 0031cfb commit b9b00fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nameize.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit b9b00fa

Please sign in to comment.