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 f24562c + 611f03b + 6d3163f commit 2c3a9df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Json.php
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ public static function fromXml($xmlStringContents, $ignoreXmlAttributes = true)
// If it is not a valid XML content, throw an exception.
if (!$simpleXmlElementObject) {
throw new RuntimeException('Function fromXml was called with an invalid XML formatted string.');
} // End of if ($simpleXmlElementObject == null)
} // End of if ($simpleXmlElementObject === null)

// Call the recursive function to convert the XML into a PHP array.
$resultArray = static::_processXml($simpleXmlElementObject, $ignoreXmlAttributes);
Expand Down

0 comments on commit 2c3a9df

Please sign in to comment.