The expression return $this->getMessage('ToUserName') could return the type array which is incompatible with the type-hinted return null|string. Consider adding an additional type-check to rule them out.
The expression return $this->getMessage('FromUserName') could return the type array which is incompatible with the type-hinted return null|string. Consider adding an additional type-check to rule them out.
The expression return $this->getMessage('MsgType') could return the type array which is incompatible with the type-hinted return null|string. Consider adding an additional type-check to rule them out.
It seems like $timestamp can also be of type array; however, parameter $timestamp of Carbon\Carbon::createFromTimestamp() does only seem to accept double|integer|string, maybe add an additional type check?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
The expression return $this->getMessage...is->getMessage('MsgID') could return the type array which is incompatible with the type-hinted return integer|null. Consider adding an additional type-check to rule them out.
The expression return $this->getMessage('Event') could return the type array which is incompatible with the type-hinted return null|string. Consider adding an additional type-check to rule them out.