phpcs-security-audit icon indicating copy to clipboard operation
phpcs-security-audit copied to clipboard

file_put_contents warning about dynamic parameter

Open tebulrich opened this issue 4 years ago • 0 comments

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?

tebulrich avatar Aug 28 '21 13:08 tebulrich