From 24edab45b14b87af73d4d3cb17109babb453c8eb Mon Sep 17 00:00:00 2001 From: Fabio Ivona Date: Thu, 18 Nov 2021 01:04:59 +0100 Subject: [PATCH] fix tests --- src/Exceptions/ExpectationException.php | 9 +++++++-- src/Support/Container.php | 4 ---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/Exceptions/ExpectationException.php b/src/Exceptions/ExpectationException.php index dfe63bb9..ca14ce76 100644 --- a/src/Exceptions/ExpectationException.php +++ b/src/Exceptions/ExpectationException.php @@ -1,10 +1,15 @@ instances[$id] = $this->build($id); } - if (!is_object($this->instances[$id])) { - throw ShouldNotHappen::fromMessage('Cannot resolve a non-object from container'); - } - return $this->instances[$id]; }