Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
45 | public static function findPsr18Client() |
||
46 | { |
||
47 | try { |
||
48 | $client = static::findOneByType(ClientInterface::class); |
||
49 | } catch (DiscoveryFailedException $e) { |
||
50 | throw new \Http\Discovery\Exception\NotFoundException( |
||
51 | 'No PSR-18 clients found. Make sure to install a package providing "psr/http-client-implementation". Example: "php-http/guzzle6-adapter".', |
||
52 | 0, |
||
53 | $e |
||
54 | ); |
||
55 | } |
||
56 | |||
57 | return static::instantiateClass($client); |
||
58 | } |
||
59 | } |
||
60 |
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.