From 51bdce1cabd50c237d014aec75a480e00e31806a Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Fri, 3 Apr 2015 16:12:44 +0700 Subject: [PATCH] uses === null instead of == null check --- src/Helper/HtmlObject.php | 2 +- src/Helper/Placeholder.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Helper/HtmlObject.php b/src/Helper/HtmlObject.php index ea4d2dcd..c5298596 100644 --- a/src/Helper/HtmlObject.php +++ b/src/Helper/HtmlObject.php @@ -31,7 +31,7 @@ public function __invoke( array $params = array(), $content = null ) { - if ($data == null || $type == null) { + if ($data === null || $type === null) { throw new InvalidArgumentException( 'HTMLObject: missing argument. $data and $type are required in ' . 'htmlObject($data, $type, array $attribs = array(), array $params = array(), $content = null)' diff --git a/src/Helper/Placeholder.php b/src/Helper/Placeholder.php index 8fda0a88..cc7c2795 100644 --- a/src/Helper/Placeholder.php +++ b/src/Helper/Placeholder.php @@ -42,7 +42,7 @@ class Placeholder extends AbstractHelper */ public function __invoke($name = null) { - if ($name == null) { + if ($name === null) { throw new InvalidArgumentException( 'Placeholder: missing argument. $name is required by placeholder($name)' );