mirror of
https://github.com/silverstripe/silverstripe-environmentcheck
synced 2024-10-22 17:05:40 +02:00
FIX Respect strict-typing of Factory interface (#108)
This commit is contained in:
parent
2598d60a0d
commit
773a73ecff
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
namespace SilverStripe\EnvironmentCheck\Services;
|
namespace SilverStripe\EnvironmentCheck\Services;
|
||||||
|
|
||||||
|
use Psr\Http\Client\ClientInterface;
|
||||||
use GuzzleHttp\Client as GuzzleClient;
|
use GuzzleHttp\Client as GuzzleClient;
|
||||||
use SilverStripe\Core\Injector\Factory;
|
use SilverStripe\Core\Injector\Factory;
|
||||||
use SilverStripe\Core\Config\Configurable;
|
use SilverStripe\Core\Config\Configurable;
|
||||||
@ -28,7 +29,7 @@ class ClientFactory implements Factory
|
|||||||
*
|
*
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
public function create($service, array $params = [])
|
public function create(string $service, array $params = []): ClientInterface
|
||||||
{
|
{
|
||||||
return new GuzzleClient($this->getConfig($params));
|
return new GuzzleClient($this->getConfig($params));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user