Skip to content

Commit 2834264

Browse files
author
John Robertson
committed
corrected spelling of exception message and moved to a strict compare
1 parent e2da7e1 commit 2834264

File tree

1 file changed

+2
-2
lines changed
  • lib/internal/Magento/Framework/ObjectManager/Config

1 file changed

+2
-2
lines changed

lib/internal/Magento/Framework/ObjectManager/Config/Config.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,9 @@ public function isShared($type)
157157
public function getInstanceType($instanceName)
158158
{
159159
while (isset($this->_virtualTypes[$instanceName])) {
160-
if ($instanceName == $this->_virtualTypes[$instanceName]) {
160+
if ($instanceName === $this->_virtualTypes[$instanceName]) {
161161
throw new \LogicException(
162-
'unsupported self-referencing virutal type: '
162+
'unsupported self-referencing virtual type: '
163163
.$instanceName
164164
);
165165
}

0 commit comments

Comments
 (0)