Skip to content
This repository has been archived by the owner on Jan 30, 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 d913768 + 93898fd + 6647541 commit f7a4400
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Reader/Entry/Rss.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ public function getDateModified()
$date = date_create_from_format($standard, $dateModified);
break;
} catch (\Exception $e) {
if ($standard == null) {
if ($standard === null) {
throw new Exception\RuntimeException(
'Could not load date due to unrecognised'
.' format (should follow RFC 822 or 2822):'
Expand Down
4 changes: 2 additions & 2 deletions src/Reader/Feed/Rss.php
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ public function getDateModified()
$date = DateTime::createFromFormat($standard, $dateModified);
break;
} catch (\Exception $e) {
if ($standard == null) {
if ($standard === null) {
throw new Exception\RuntimeException(
'Could not load date due to unrecognised'
.' format (should follow RFC 822 or 2822):'
Expand Down Expand Up @@ -272,7 +272,7 @@ public function getLastBuildDate()
$date = DateTime::createFromFormat($standard, $lastBuildDateParsed);
break;
} catch (\Exception $e) {
if ($standard == null) {
if ($standard === null) {
throw new Exception\RuntimeException(
'Could not load date due to unrecognised'
.' format (should follow RFC 822 or 2822):'
Expand Down

0 comments on commit f7a4400

Please sign in to comment.