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 Parameter Types (versions 2 of the library) #25

Merged
merged 3 commits into from
Oct 29, 2021
Merged

Conversation

Jean85
Copy link
Member

@Jean85 Jean85 commented Oct 6, 2021

This is a split of #24, to make it more clear what the end result of the new tags will be, so we can vote on it.

This is a breaking change since consumers may be providing entities that can be converted to a string.

Implementations that implement v2, however, are also implementing v1 as of PHP 7.2, so such implementations can use a require statement of `^1|^2`. Usage libraries also can use a require statement of `^1|^2` so long as they are passing the specific variable type
@Jean85
Copy link
Member Author

Jean85 commented Oct 6, 2021

@Crell / @navarr, should we merge #13 in here too? WDYT?

@Crell
Copy link

Crell commented Oct 6, 2021

I think that's reasonable. Modulo making sure we don't break Symfony again. 😅

@Jean85 Jean85 mentioned this pull request Oct 6, 2021
@Jean85
Copy link
Member Author

Jean85 commented Oct 6, 2021

The only issue that that kind of upgrade creates is the same that we encountered in php-fig/container#33 as you said, breaking Symfony. That issue is a bug only on PHP < 7.4 and since we're requiring 8 here, we would be good to go!

@Jean85 Jean85 mentioned this pull request Oct 6, 2021
@Geolim4
Copy link

Geolim4 commented Oct 28, 2021

Hello,

php-fig/fig-standards#1252 has been merged, can this MR be merged too ?

(As well as #24 ?)

@Jean85
Copy link
Member Author

Jean85 commented Oct 29, 2021

Vote has passed: https://groups.google.com/g/php-fig/c/DJ8ysB1JV4Y
PSR changes are merged: php-fig/fig-standards#1252

Releasing this as 2.0.0 now.

@Jean85 Jean85 merged commit 8707bf3 into master Oct 29, 2021
@Jean85 Jean85 deleted the param-types branch October 29, 2021 13:22
@Jean85 Jean85 restored the param-types branch October 29, 2021 13:25
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