Closed fgibaux closed 1 year ago
I found another one:
// src/Http/Response.php
/**
* Get the request data.
*
* @return mixed[]|\stdClass
*/
public function getData()
{
if ($this->isSuccess() && isset($this->getContent()->data)) {
return $this->getContent()->data;
}
return null;
}
Obviously the DocblockTypes do not contain null - what leads to Psalm errors:
DocblockTypeContradiction: array<array-key, mixed>|stdClass does not contain null (see https://psalm.dev/155)
Can you include this also in your changes please?
Thanks for the contribution
added some missing type in phpdoc