Skip to content

[VarDumper] Fix caster for invalid SplFileInfo objects on php 8 #38073

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

Merged
merged 1 commit into from
Sep 6, 2020

Conversation

derrabus
Copy link
Member

@derrabus derrabus commented Sep 5, 2020

Q A
Branch? 3.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets #36872
License MIT
Doc PR N/A

The behavior of uninitialized SplFileInfo classes has changed in php 8: https://3v4l.org/s4c4O

  • getPathname() won't return false anymore.
  • The error raised by most accessors is now recoverable. On php 7, it's fatal.

This PR adjusts the caster for those objects to the new behavior.

@derrabus derrabus force-pushed the bugfix/uninitialized-spl-file-info branch from 9c8a25f to ab45e2a Compare September 5, 2020 17:45
@fabpot
Copy link
Member

fabpot commented Sep 6, 2020

Thank you @derrabus.

@fabpot fabpot merged commit ee8fc9c into symfony:3.4 Sep 6, 2020
@derrabus derrabus deleted the bugfix/uninitialized-spl-file-info branch September 6, 2020 15:56
This was referenced Sep 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants