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 Spl file handling signatures #8644

Merged
merged 1 commit into from Nov 4, 2022
Merged

Conversation

neclimdul
Copy link
Contributor

Update SplFileInfo method signatures and related classes.

Fixes #8642

@neclimdul
Copy link
Contributor Author

After a little digging all these methods just wrap php_stat and the standard file methods which return false on failutre so this updates the signature to reflect that.

@neclimdul neclimdul changed the base branch from master to 4.x November 1, 2022 15:55
@orklah
Copy link
Collaborator

orklah commented Nov 1, 2022

Thanks!

Seems like SplTempFileObject inherits SplFileObject so those changes should apply to it too. Could you make those changes?

@neclimdul
Copy link
Contributor Author

@orklah think I got SplFileInfo, SplFileObject, and SplTempFileObject so should have covered everything.

Update SplFileInfo method signatures and related classes.

Fixes vimeo#8642
@orklah orklah added the release:fix The PR will be included in 'Fixes' section of the release notes label Nov 4, 2022
@orklah
Copy link
Collaborator

orklah commented Nov 4, 2022

Oh right, I was confused because CI didn't run properly. Thanks!

@orklah orklah merged commit 1e454fa into vimeo:4.x Nov 4, 2022
@neclimdul neclimdul deleted the SplFile-getSize branch November 4, 2022 14:08
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.

SplFileInfo::getSize returns int instead of int|false
2 participants