Skip to content

Commit

Permalink
Fixed resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
Sammyjo20 committed Feb 16, 2024
1 parent f89e036 commit 65823de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Http/Faking/MockClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ public function isMocking(): bool
}

/**
* Resolve the MockClient from the container
* Resolve the global MockClient
*/
public static function resolve(): static
public static function resolve(): BaseMockClient
{
return resolve(static::class);
return BaseMockClient::getGlobal() ?? BaseMockClient::global();
}
}

0 comments on commit 65823de

Please sign in to comment.