Skip to content

Commit

Permalink
Use strict comparision instead of is_null
Browse files Browse the repository at this point in the history
  • Loading branch information
David committed Oct 6, 2017
1 parent 16a8050 commit 86032de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/Magento/Framework/View/Model/Layout/Merge.php
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,7 @@ private function getXmlErrors($libXmlErrors)
protected function _getPhysicalTheme(\Magento\Framework\View\Design\ThemeInterface $theme)
{
$result = $theme;
while (!is_null($result) && $result->getId() && !$result->isPhysical()) {
while ($result !== null && $result->getId() && !$result->isPhysical()) {
$result = $result->getParentTheme();
}
if (!$result) {
Expand Down

0 comments on commit 86032de

Please sign in to comment.