[DI] remove useless condition around unset
This commit is contained in:
parent
5f93188dc0
commit
478375d664
@ -312,10 +312,7 @@ class Container implements IntrospectableContainerInterface
|
|||||||
$service = $this->$method();
|
$service = $this->$method();
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
unset($this->loading[$id]);
|
unset($this->loading[$id]);
|
||||||
|
unset($this->services[$id]);
|
||||||
if (array_key_exists($id, $this->services)) {
|
|
||||||
unset($this->services[$id]);
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($e instanceof InactiveScopeException && self::EXCEPTION_ON_INVALID_REFERENCE !== $invalidBehavior) {
|
if ($e instanceof InactiveScopeException && self::EXCEPTION_ON_INVALID_REFERENCE !== $invalidBehavior) {
|
||||||
return;
|
return;
|
||||||
|
@ -409,9 +409,7 @@ class Definition
|
|||||||
*/
|
*/
|
||||||
public function clearTag($name)
|
public function clearTag($name)
|
||||||
{
|
{
|
||||||
if (isset($this->tags[$name])) {
|
unset($this->tags[$name]);
|
||||||
unset($this->tags[$name]);
|
|
||||||
}
|
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user