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 & Return Types (versions 3 of the library) #24

Merged
merged 1 commit into from
Oct 29, 2021

Conversation

navarr
Copy link
Contributor

@navarr navarr commented Jul 4, 2021

Please see php-fig/fig-standards#1252 for an explanation

@navarr
Copy link
Contributor Author

navarr commented Aug 25, 2021

I've force-pushed. This rebases the iterable document types to be the first commit, so that all proposed releases include them.

This is a breaking change since implementations without return types are considered to be "widening" them, which is not allowed in PHP.

Implementations that implement v3, however, are also implementing v1 and v2 as of PHP 7.4, so such implementations can use a require statement of `^1|^2|^3`.  Usage libraries also can use a require statement of `^1|^2|^3`
@navarr
Copy link
Contributor Author

navarr commented Aug 27, 2021

I've force pushed. This rebase updates the commit messages and the composer.json files to align with recent edits to the meta document

@navarr navarr changed the title Add Return Types (v2 of library) Add Parameter & Return Types (versions 2 and 3 of library) Aug 27, 2021
@Geolim4
Copy link

Geolim4 commented Sep 2, 2021

Can you mention me once this MR is merged please ?

I need to prepare the next major update of Phpfastcache, thanks 👼🏻

@Crell
Copy link

Crell commented Sep 17, 2021

Everything looks good here, I think. Just some issues on the spec PR itself.

@Geolim4
Copy link

Geolim4 commented Oct 5, 2021

Hello @Crell, not wanting to be pressing or anything but this seems to take much longer than it took for the PSR-6 to make the PHP-8 type upgrade ?

Thanks again :)

@Crell
Copy link

Crell commented Oct 6, 2021

Someone needs to call the vote on it. Paging @navarr or @Jean85...

@Jean85
Copy link
Member

Jean85 commented Oct 6, 2021

I'm not ok with having this in a single PR before calling a vote. We need two separate PR/branches, to have a clear separation of the proposed tags.

@Geolim4
Copy link

Geolim4 commented Oct 6, 2021

I'm not ok with having this in a single PR before calling a vote. We need two separate PR/branches, to have a clear separation of the proposed tags.

Can the concerned people make the changes and proceed to the vote ? This "simple" upgrade for PHP 8 is during for almost five months now.

It's in the FIG's interest to be proactive and do the good things to improve interoperability for PHP community.

Thank you @Jean85 🙏🏻

@Jean85 Jean85 changed the base branch from master to param-types October 6, 2021 11:05
@Jean85 Jean85 changed the title Add Parameter & Return Types (versions 2 and 3 of library) Add Parameter & Return Types (versions 3 of the library) Oct 6, 2021
@Jean85
Copy link
Member

Jean85 commented Oct 6, 2021

I've done it myself, by splitting this into #25 and changing the base here.

I'll try to call a vote ASAP.

@dragoonis
Copy link
Member

As long as things are addressed, as per
#13 (comment)
then we are good here.

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

navarr commented Oct 6, 2021

@Jean85 Why are the PRs split? Do we need two separate votes for these changes?

@Jean85
Copy link
Member

Jean85 commented Oct 6, 2021

@Jean85 Why are the PRs split? Do we need two separate votes for these changes?

No but we will need two different releases, so we need to make the CC able to review those separately. And us to tag separately, too.

@Jean85 Jean85 deleted the branch php-fig:master October 29, 2021 13:22
@Jean85 Jean85 closed this Oct 29, 2021
@Jean85
Copy link
Member

Jean85 commented Oct 29, 2021

Closed by mistake (stupid automations!)

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

Releasing this as 3.0.0 now.

@Jean85 Jean85 reopened this Oct 29, 2021
@Jean85 Jean85 changed the base branch from param-types to master October 29, 2021 13:25
@Jean85 Jean85 merged commit 764e0b3 into php-fig:master Oct 29, 2021
@Geolim4
Copy link

Geolim4 commented Oct 29, 2021

Yes, finally 🥳 🎉

Thanks for that and sorry for pushing again and again, I will have some work this weekend :D

@Geolim4
Copy link

Geolim4 commented Oct 29, 2021

@Jean85 can you create the Github releases after pushing tags too ? Thank you !

@Jean85
Copy link
Member

Jean85 commented Oct 29, 2021

@Geolim4 done!

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.

5 participants