You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would be useful for the models to have null return types where needed as otherwise we need to add phpstan overrides in our code. An example being Google\Service\Calendar\Event->getOrganizer() which says it always returns an EventOrganizer when it can also return null.
Describe the solution you'd like
For the return to be marked as null e.g.
/**
* @return EventOrganizer|null
*/
public function getOrganizer()
{
return $this->organizer;
}
The text was updated successfully, but these errors were encountered:
I would be useful for the models to have
null
return types where needed as otherwise we need to add phpstan overrides in our code. An example beingGoogle\Service\Calendar\Event->getOrganizer()
which says it always returns anEventOrganizer
when it can also returnnull
.Describe the solution you'd like
For the return to be marked as null e.g.
The text was updated successfully, but these errors were encountered: