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

Backport PHP 8 function signature fixes to 5.x.x branch #626

Closed
wants to merge 1 commit into from
Closed

Backport PHP 8 function signature fixes to 5.x.x branch #626

wants to merge 1 commit into from

Conversation

Ayesh
Copy link

@Ayesh Ayesh commented Apr 4, 2020

Hi Justin,
I noticed a few deprecation notices when running some tests PHP 8 master builds, and I discovered the recently merged #619 that contains the same fix for it. It was made against the master branch. Here is a PR to backport them to 5.x.x branch, which majority of the dependents currently use. Hopefully we can have a tagged release in 5.x series too :)

Cheers.

…optional parameters.

This is related to #619, where the fix was applied on the master branch. This commit backports them to 5.x.x branch.
From PHP 8.0 and forwards, a deprecation notice is raised if there are required parameters after optional parameters in a function/method signature.
See https://php.watch/versions/8.0/deprecate-required-param-after-optional for details.
@erayd
Copy link
Collaborator

erayd commented Apr 5, 2020

If you are going to do backports, can you please do them in the same manner as previous backport PRs. I normally do one every few months - if you take a look at the 5.x.x branch, you'll see what I mean.

I'm happy to tag a new release once the backporting is done.

@GrahamCampbell
Copy link
Contributor

👍 This is particularly important for composer which uses this dependency, and this warning is raised on every run.

@GrahamCampbell
Copy link
Contributor

// cc @Seldaek

@Ayesh
Copy link
Author

Ayesh commented May 16, 2020

I opened #631 containing all PHP 8, CI, and composer.json related commits from master branch, cherry-picked for 5.x.x.

@Ayesh Ayesh closed this May 16, 2020
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.

None yet

3 participants