Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Lines | 10 |
Ratio | 100 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
24 | 2 | public static function find() |
|
25 | { |
||
26 | try { |
||
27 | 2 | $streamFactory = static::findOneByType(StreamFactory::class); |
|
28 | 1 | } catch (DiscoveryFailedException $e) { |
|
29 | 1 | throw new NotFoundException('No stream factories found. To use Guzzle, Diactoros or Slim Framework factories install php-http/message and the chosen message implementation.', 0, $e); |
|
|
|||
30 | } |
||
31 | |||
32 | 1 | return static::instantiateClass($streamFactory); |
|
33 | } |
||
34 | } |
||
35 |
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.