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 wrapper for not existing files for file_put_contents operation #10

Merged
merged 1 commit into from
Aug 11, 2019

Conversation

nightlinus
Copy link
Contributor

When using snapshot testing with bypass-finals we can see that file_put_contents wrapped not correct. This pr fix this by checking for file existance before reading content

@dg
Copy link
Owner

dg commented Aug 11, 2019

Thanks. I will modify it to check the mode instead of file existence.

@dg dg merged commit bbbe094 into dg:master Aug 11, 2019
dg pushed a commit that referenced this pull request Aug 11, 2019
@ondrejmirtes
Copy link

I'd like if this fix could be released. Currently bypass-finals breaks PHPStan (because it saves .php files).

@dg
Copy link
Owner

dg commented May 8, 2020

I completely forgot about it, but it's out.

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