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

Mark throwable methods as pure #3171

Merged
merged 3 commits into from
Apr 18, 2020

Conversation

greg0ire
Copy link
Contributor

No description provided.

This works probably because it is not parsed by PHP but by something
more tolerant, but let's make it more valid (the final access type in
the signature is not valid) PHP anyway, that will raise fewer eyebrows.
@greg0ire
Copy link
Contributor Author

Some of the failing tests look like they are cause by my changes, I have to look into that.

@greg0ire greg0ire force-pushed the mark-throwable-methods-as-pure branch from a96fe6a to 4fee755 Compare April 17, 2020 19:56
@muglug muglug merged commit bc91de0 into vimeo:master Apr 18, 2020
@muglug
Copy link
Collaborator

muglug commented Apr 18, 2020

Thanks! Looks like the failures were just due to my earlier bad merge

*/
public final function getCode(){}
public final function getCode(): int {}
Copy link
Contributor

Choose a reason for hiding this comment

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

getCode() can return string

Copy link
Contributor Author

@greg0ire greg0ire Apr 18, 2020

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

@greg0ire greg0ire Apr 18, 2020

Choose a reason for hiding this comment

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

Indeed. WTF… a PR is on its way.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

See fix here: #3175

@greg0ire greg0ire deleted the mark-throwable-methods-as-pure branch April 18, 2020 05:45
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.

3 participants