1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 04:45:20 +01:00

Merge pull request #9356 from edsrzf/setrawcookie-impure

This commit is contained in:
Bruce Weirdan 2023-02-20 21:38:26 -04:00 committed by GitHub
commit 28db105f73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View File

@ -425,7 +425,7 @@ class Functions
'call_user_func', 'call_user_func_array', 'define', 'create_function',
// http
'header', 'header_remove', 'http_response_code', 'setcookie',
'header', 'header_remove', 'http_response_code', 'setcookie', 'setrawcookie',
// output buffer
'ob_start', 'ob_end_clean', 'ob_get_clean', 'readfile', 'printf', 'var_dump', 'phpinfo',

View File

@ -666,6 +666,13 @@ class UnusedCodeTest extends TestCase
return $c;
}',
],
'setRawCookieImpure' => [
'code' => '<?php
setrawcookie(
"name",
"value",
);',
],
'usedUsort' => [
'code' => '<?php
/** @param string[] $arr */