Skip to content

Conversation

@nicolas-grekas
Copy link
Member

@nicolas-grekas nicolas-grekas commented Jan 25, 2020

@nicolas-grekas nicolas-grekas merged commit 1554fc4 into symfony:master Mar 2, 2020
@nicolas-grekas nicolas-grekas deleted the stringable branch March 2, 2020 16:07
/**
* @return string
*/
public function __toString();

Choose a reason for hiding this comment

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

public function __toString() : string;

Copy link
Member Author

Choose a reason for hiding this comment

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

missing return type on purpose, see https://wiki.php.net/rfc/stringable:

code in PHP < 8 can adopt a polyfill interface immediately (one that doesn't declare the return type for the same BC reasons.)

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.

4 participants