Skip to content

file_put_contents warning about dynamic parameter #90

@tebulrich

Description

@tebulrich

I get phpcs: PHPCS_SecurityAudit.BadFunctions.FilesystemFunctions.WarnFilesystem: Filesystem function file_put_contents() detected with dynamic parameter
with this: file_put_contents('test.txt', 1, FILE_APPEND);
So FILE_APPEND is a dynamic parameter? If its the content or filename, i would say okay, but the flag?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions