The expression return $this->data ? arr...et($this->data)) : null could return the type false which is incompatible with the type-hinted return array|null. Consider adding an additional type-check to rule them out.
The expression return $this->data ? arr...nd($this->data)) : null could return the type false which is incompatible with the type-hinted return array|null. Consider adding an additional type-check to rule them out.