Skip to content
This repository was archived by the owner on Feb 6, 2020. It is now read-only.

Commit 8219cda

Browse files
committed
Revert "Introduced $resolvedName to avoid overriding an exsiting variable."
This reverts commit 99e1f80.
1 parent 9063df7 commit 8219cda

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/ServiceManager.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,10 @@ public function has($name)
266266
}
267267

268268
// Finally check aliases
269-
$resolvedName = $this->resolvedAliases[$name];
270-
return isset($this->services[$resolvedName]) || isset($this->factories[$resolvedName]);
269+
$name = $this->resolvedAliases[$name];
270+
return isset($this->services[$name]) || isset($this->factories[$name]);
271+
272+
return false;
271273
}
272274

273275
/**

0 commit comments

Comments
 (0)