The type Shobi\Weatherapp\Weather...ather\Units\Temperature was not found. Did you mean Shobi\Weatherapp\Weather\Units\Temperature? If so, make sure to prefix the type with \.
Loading history...
11
*/
12
private $temperature;
13
14
/**
15
* the weather summary
16
* @var string
17
*/
18
private $summary;
19
20
/**
21
* @var string
22
*/
23
private $location;
24
25
/**
26
* Weather constructor.
27
* @param string $summary
28
* @param string $temperature
29
* @param string $location
30
*/
31
public function __construct(string $summary, string $temperature, string $location)
32
{
33
$this->temperature = new Temperature($temperature);
It seems like new Shobi\Weatherapp\Wea...mperature($temperature) of type Shobi\Weatherapp\Weather\Units\Temperature is incompatible with the declared type Shobi\Weatherapp\Weather...ather\Units\Temperature of property $temperature.
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..