might return null. Same with timeZone. Probably more.
Doc comment for city says:
@property string $name The name of the city based on the locales list passed to the constructor. This attribute is returned by all end points.
Should be changed to something like:
@property string|null $name The name of the city based on the locales list passed to the constructor (null in case the city is unknown). This attribute is returned by all end points.
Also I think it's better to remove all cases of This attribute is returned by all end points.
Instead, better only make a note in case the attribute is not supported by all endpoints.
This
might return
null
. Same withtimeZone
. Probably more.Doc comment for city says:
Should be changed to something like:
Also I think it's better to remove all cases of
This attribute is returned by all end points.
Instead, better only make a note in case the attribute is not supported by all endpoints.