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

[String] add types to all arguments #41428

Merged
merged 1 commit into from
May 28, 2021

Conversation

nicolas-grekas
Copy link
Member

Q A
Branch? 6
Bug fix? no
New feature? no
Deprecations? no
Tickets -
License MIT
Doc PR -

@nicolas-grekas nicolas-grekas merged commit 9dc4ef3 into symfony:6.0 May 28, 2021
@nicolas-grekas nicolas-grekas deleted the unions-string branch May 28, 2021 08:18
return parent::endsWith($suffix);
} else {
$suffix = (string) $suffix;
Copy link
Member

Choose a reason for hiding this comment

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

This change removes support for Stringable objects, doesn't it?

Copy link
Member Author

Choose a reason for hiding this comment

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

See the added type hint: no Stringable object can get through it.
Ppl that use strict types might be affected, but strict types aren't covered by our BC promise.

Copy link
Member

Choose a reason for hiding this comment

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

Got it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants