The PHPDoc standards would require to write `@return User|null` instead of `@return [object] User`