Skip to content

Commit

Permalink
use the same null-check consistently in all places the same
Browse files Browse the repository at this point in the history
  • Loading branch information
skoop committed Jun 30, 2015
1 parent c1ef8e5 commit 27f1bbc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/FilterRule/StripHtml.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function __construct($excludeTags = null)
*/
public function filter($value)
{
if (is_null($value)) {
if ($value === null) {
return $value;
}

Expand Down
2 changes: 1 addition & 1 deletion src/FilterRule/Trim.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function __construct($characters = null)
*/
public function filter($value)
{
if (is_null($value)) {
if ($value === null) {
return $value;
}

Expand Down

0 comments on commit 27f1bbc

Please sign in to comment.