Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Commit

Permalink
Merge pull request zendframework/zendframework#7412 from samsonasik/n…
Browse files Browse the repository at this point in the history
…ull-three

Use === and !== in null checks instead of == and !=
  • Loading branch information
weierophinney committed May 4, 2015
3 parents 3fb7fc2 + ac95d66 + 51bdce1 commit ff2c9d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Helper/HtmlObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)'
Expand Down
2 changes: 1 addition & 1 deletion src/Helper/Placeholder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)'
);
Expand Down

0 comments on commit ff2c9d1

Please sign in to comment.