Skip to content

Commit

Permalink
Removed redundant Resolvable check (#1)
Browse files Browse the repository at this point in the history
Co-authored-by: nikolaybrankov <nikolay.brankov@fortifi.io>
  • Loading branch information
callyall and nikolaybrankov committed Jan 19, 2024
1 parent 2b22963 commit 26b3106
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/DependencyInjector.php
Original file line number Diff line number Diff line change
Expand Up @@ -267,10 +267,7 @@ public function resolved($instance)

protected function _postResolve($instance)
{
if($instance instanceof Resolvable)
{
$instance = $this->resolved($instance);
}
$instance = $this->resolved($instance);

foreach($this->_postResolver as $callback)
{
Expand Down

0 comments on commit 26b3106

Please sign in to comment.