Skip to content

Commit

Permalink
Fix Mockery::fetchMock() without initialized container
Browse files Browse the repository at this point in the history
  • Loading branch information
PhrozenByte committed Jan 24, 2021
1 parent 937a86b commit d611c4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Mockery.php
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ public static function close()
*/
public static function fetchMock($name)
{
return self::$_container->fetchMock($name);
return self::getContainer()->fetchMock($name);
}

/**
Expand Down

0 comments on commit d611c4e

Please sign in to comment.