1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-26 20:34:47 +01:00

Fix dictionary for strip_tags

- allow null
 - allow array from PHP 7.4 (see https://www.php.net/manual/en/function.strip-tags.php)

https://3v4l.org/VjbXO
https://3v4l.org/VWsPr
This commit is contained in:
Alies Lapatsin 2022-11-21 23:27:18 +01:00
parent f630a0dc39
commit 8dd76ded86
2 changed files with 5 additions and 1 deletions

View File

@ -13907,7 +13907,7 @@ return [
'streamWrapper::unlink' => ['bool', 'path'=>'string'],
'streamWrapper::url_stat' => ['array', 'path'=>'string', 'flags'=>'int'],
'strftime' => ['string|false', 'format'=>'string', 'timestamp='=>'?int'],
'strip_tags' => ['string', 'string'=>'string', 'allowed_tags='=>'string'],
'strip_tags' => ['string', 'string'=>'string', 'allowed_tags='=>'?string'],
'stripcslashes' => ['string', 'string'=>'string'],
'stripos' => ['int|false', 'haystack'=>'string', 'needle'=>'string', 'offset='=>'int'],
'stripslashes' => ['string', 'string'=>'string'],

View File

@ -45,6 +45,10 @@ return [
'old' => ['resource|false', 'command'=>'string', 'descriptor_spec'=>'array', '&pipes'=>'resource[]', 'cwd='=>'?string', 'env_vars='=>'?array', 'options='=>'?array'],
'new' => ['resource|false', 'command'=>'string|array', 'descriptor_spec'=>'array', '&pipes'=>'resource[]', 'cwd='=>'?string', 'env_vars='=>'?array', 'options='=>'?array'],
],
'strip_tags' => [
'old' => ['string', 'string'=>'string', 'allowed_tags='=>'?string'],
'new' => ['string', 'string'=>'string', 'allowed_tags='=>'string|null|list<non-empty-string>'],
],
],
'removed' => [
],