Skip to content

Conversation

@Nyholm
Copy link
Member

@Nyholm Nyholm commented Feb 9, 2018

I would love to keep this, but it is a BC break. :/

@willdurand willdurand self-requested a review February 9, 2018 17:14
*
* @return GoogleAddress
*/
public function withId(string $id = null): self

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically this is not really accurate anways. It should be GoogleAddress instead since it's not the same instance that is returned when calling these methods.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Writing :GoogleAddress or :self is the same. :self means the same class. Not the same object.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, you are right. So far I had in mind that this was the native @return $this solution.

@Nyholm Nyholm merged commit 34f783a into geocoder-php:master Feb 15, 2018
@Nyholm Nyholm deleted the google branch February 15, 2018 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants