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

Update $data argument types of file_put_contents #6954

Merged
merged 1 commit into from Nov 21, 2021

Commits on Nov 21, 2021

  1. Update data types of file_put_contents

    The main aim is to exclude boolean false, which could be coerced into '' in the following cases:
    
    ```
    file_put_contents('outfile', file_get_contents('invalid_file')); // false instead of string
    file_put_contents('outfile', fopen('invalid_file', 'r')); // false instead of resource
    file_put_contents('outfile', file('invalid_file')); // false instead of array
    ```
    ciaranmcnulty committed Nov 21, 2021
    Copy the full SHA
    c91e245 View commit details
    Browse the repository at this point in the history