1 | <?php |
||
7 | class PreviewBuilder |
||
8 | { |
||
9 | |||
10 | /** |
||
11 | * PHPQuery document object that will be used to select elements |
||
12 | * @var \Jclyons52\PHPQuery\Document |
||
13 | */ |
||
14 | public $crawler; |
||
15 | |||
16 | /** |
||
17 | * Url object |
||
18 | * @var Url |
||
19 | */ |
||
20 | public $url; |
||
21 | |||
22 | /** |
||
23 | * destructured array of url components from parse_url |
||
24 | * @var array |
||
25 | */ |
||
26 | protected $urlComponents; |
||
27 | |||
28 | /** |
||
29 | * @var HttpInterface |
||
30 | */ |
||
31 | protected $http; |
||
32 | |||
33 | |||
34 | 81 | public function __construct(HttpInterface $http) |
|
38 | |||
39 | /** |
||
40 | * Instantiate class with dependencies |
||
41 | * @return static |
||
42 | */ |
||
43 | 3 | public static function create() |
|
48 | |||
49 | /** |
||
50 | * @param string $url |
||
51 | * @return Preview |
||
52 | * @throws \Exception |
||
53 | */ |
||
54 | 45 | public function fetch($url) |
|
70 | |||
71 | /** |
||
72 | * returns an instance of Preview |
||
73 | * @return Preview |
||
74 | */ |
||
75 | 39 | public function getPreview() |
|
101 | |||
102 | 39 | public function images() |
|
111 | } |
||
112 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..