mirror of
https://github.com/danog/psalm.git
synced 2024-12-02 09:37:59 +01:00
Include setrawcookie as an impure function
This commit is contained in:
parent
471a8c6a1d
commit
a03299f3d0
@ -425,7 +425,7 @@ class Functions
|
|||||||
'call_user_func', 'call_user_func_array', 'define', 'create_function',
|
'call_user_func', 'call_user_func_array', 'define', 'create_function',
|
||||||
|
|
||||||
// http
|
// http
|
||||||
'header', 'header_remove', 'http_response_code', 'setcookie',
|
'header', 'header_remove', 'http_response_code', 'setcookie', 'setrawcookie',
|
||||||
|
|
||||||
// output buffer
|
// output buffer
|
||||||
'ob_start', 'ob_end_clean', 'ob_get_clean', 'readfile', 'printf', 'var_dump', 'phpinfo',
|
'ob_start', 'ob_end_clean', 'ob_get_clean', 'readfile', 'printf', 'var_dump', 'phpinfo',
|
||||||
|
@ -666,6 +666,13 @@ class UnusedCodeTest extends TestCase
|
|||||||
return $c;
|
return $c;
|
||||||
}',
|
}',
|
||||||
],
|
],
|
||||||
|
'setRawCookieImpure' => [
|
||||||
|
'code' => '<?php
|
||||||
|
setrawcookie(
|
||||||
|
"name",
|
||||||
|
"value",
|
||||||
|
);',
|
||||||
|
],
|
||||||
'usedUsort' => [
|
'usedUsort' => [
|
||||||
'code' => '<?php
|
'code' => '<?php
|
||||||
/** @param string[] $arr */
|
/** @param string[] $arr */
|
||||||
|
Loading…
Reference in New Issue
Block a user