| 1 | <?php |
||
| 10 | abstract class AbstractClient |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var \IBM\Watson\Common\Hydrator\ModelHydrator |
||
| 14 | */ |
||
| 15 | protected $hydrator; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var \Http\Client\HttpClient |
||
| 19 | */ |
||
| 20 | protected $httpClient; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var \IBM\Watson\Common\RequestBuilder |
||
| 24 | */ |
||
| 25 | protected $requestBuilder; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Client constructor. |
||
| 29 | * |
||
| 30 | * @param \Http\Client\HttpClient|null $httpClient |
||
| 31 | * @param \IBM\Watson\Common\Hydrator\HydratorInterface|null $hydrator |
||
| 32 | * @param \IBM\Watson\Common\RequestBuilder|null $requestBuilder |
||
| 33 | * |
||
| 34 | * @throws \Http\Discovery\Exception\NotFoundException |
||
| 35 | */ |
||
| 36 | public function __construct( |
||
| 45 | } |
||
| 46 |
Our type inference engine has found a suspicous assignment of a value to a property. This check raises an issue when a value that can be of a given class or a super-class is assigned to a property that is type hinted more strictly.
Either this assignment is in error or an instanceof check should be added for that assignment.