Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add polyfill for PHP8's Stringable #224

Merged
merged 1 commit into from
Mar 2, 2020
Merged

Add polyfill for PHP8's Stringable #224

merged 1 commit into from
Mar 2, 2020

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.)

This pull request was closed.
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