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

Fix parameter names in CoreGenericFunctions.phpstub for PHP 8 named p… #6820

Merged
merged 2 commits into from
Nov 4, 2021

Conversation

tminich
Copy link
Contributor

@tminich tminich commented Nov 4, 2021

…arameters

A start to fix #6803
I'll see if I can do more, but I'm on holiday the next two weeks and don't know if I can get anything done in that time :)

@orklah orklah added the release:fix The PR will be included in 'Fixes' section of the release notes label Nov 4, 2021
{
}

/**
* @param string $reference
* @param string $string
* @param-out null $reference
Copy link
Collaborator

Choose a reason for hiding this comment

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

you should change $reference here too. There's probably a few phpdoc tags that possibly contains the param name that should be changed too

@orklah
Copy link
Collaborator

orklah commented Nov 4, 2021

Thanks for this big work! There's a few tests failing, I believe because some params in phpdoc didn't change names

@tminich
Copy link
Contributor Author

tminich commented Nov 4, 2021

Damn, I thought I got them all. I'll go through it.

@tminich
Copy link
Contributor Author

tminich commented Nov 4, 2021

Looks like the remaining failing things are beacuse of array functions I had to change the signature of, not sure how to resolve this.

@orklah
Copy link
Collaborator

orklah commented Nov 4, 2021

"test-with-real-projects" failing is unrelated to your PR (and will be removed if you rebase). Other tests appear fine :)

@orklah orklah merged commit 670c740 into vimeo:master Nov 4, 2021
@orklah
Copy link
Collaborator

orklah commented Nov 4, 2021

That's great! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:fix The PR will be included in 'Fixes' section of the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Parameter names in stubs are inconsistent with official docs leading to false InvalidNamedArgument errors
2 participants