The expression $this->data; of type array|string adds the type string to the return on line 67 which is incompatible with the return type declared by the interface Netgen\Bundle\OpenWeathe...ponseInterface::getData of type array.
Loading history...
68
}
69
70
/**
71
* {@inheritdoc}
72
*/
73
public function isOk()
74
{
75
if ($this->httpCode === 200) {
76
return true;
77
}
78
79
return false;
80
}
81
82
/**
83
* {@inheritdoc}
84
*/
85
public function isAuthorized()
86
{
87
if ($this->httpCode !== 401) {
88
return true;
89
}
90
91
return false;
92
}
93
94
/**
95
* {@inheritdoc}
96
*/
97
public function getMessage()
98
{
99
if (is_array($this->data) && array_key_exists('message', $this->data)) {