| 1 | <?php |
||
| 16 | class Factory |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @param LoopInterface|null $loop |
||
| 20 | * @param array $options |
||
| 21 | * @return Client |
||
| 22 | */ |
||
| 23 | 2 | public static function create(LoopInterface $loop = null, array $options = []): Client |
|
| 43 | |||
| 44 | /** |
||
| 45 | * @param HttpClient $httpClient |
||
| 46 | * @param Resolver $resolver |
||
| 47 | * @param LoopInterface|null $loop |
||
| 48 | * @param array $options |
||
| 49 | * @return Client |
||
| 50 | */ |
||
| 51 | 2 | public static function createFromReactHttpClient( |
|
| 73 | } |
||
| 74 |
It seems like you allow that null is being passed for a parameter, however the function which is called does not seem to accept null.
We recommend to add an additional type check (or disallow null for the parameter):