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

internal classes have false in reflection::getFilename() #1013

Merged
merged 2 commits into from
Dec 9, 2018
Merged

internal classes have false in reflection::getFilename() #1013

merged 2 commits into from
Dec 9, 2018

Conversation

chregu
Copy link
Contributor

@chregu chregu commented Dec 1, 2018

Make sure, internal classes filepaths are not added to ClassMetadata->fileResources, since otherwise file_exists in strict_mode=1 trips over in the metadata package at https://github.com/schmittjoh/metadata/blob/master/src/ClassMetadata.php#L65

Q A
Bug fix? yes
New feature? no
Doc updated no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #...
License MIT

Make sure, those are not added to ClassMetadata->fileResources, since otherwise file_exists in strict_mode=1 trips over in the metadata package at https://github.com/schmittjoh/metadata/blob/master/src/ClassMetadata.php#L65
@goetas
Copy link
Collaborator

goetas commented Dec 1, 2018

Thanks for the PR. This makes sense. Can you add tests?

@goetas
Copy link
Collaborator

goetas commented Dec 9, 2018

i have added tests by my self

@goetas goetas merged commit ecc7307 into schmittjoh:master Dec 9, 2018
@goetas
Copy link
Collaborator

goetas commented Dec 9, 2018

thanks

@ruudk
Copy link
Contributor

ruudk commented Dec 11, 2018

@goetas Can this be tagged in a new release? I just upgraded to JMS Serializer 2.0 and spend 1 hour debugging this issue. Already wanted to create a PR for this when I discovered it was already fixed :)

@chregu
Copy link
Contributor Author

chregu commented Dec 12, 2018

Thanks a lot for this and sorry about the missing tests

@goetas
Copy link
Collaborator

goetas commented Dec 12, 2018

2.0.2 released

@ruudk
Copy link
Contributor

ruudk commented Dec 12, 2018

thanks both of you 👍 💯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants