1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 05:41:20 +01:00

Merge pull request #8729 from lptn/fix-dictionary-for-strip_tags-function

Fix dictionary for strip_tags
This commit is contained in:
orklah 2022-11-23 13:28:48 +01:00 committed by GitHub
commit e83ac65e79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 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|list<non-empty-string>|null'],
'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|list<non-empty-string>'],
],
],
'removed' => [
],

View File

@ -1393,6 +1393,10 @@ return [
'old' => ['string|false', 'format'=>'string', 'timestamp='=>'int'],
'new' => ['string|false', 'format'=>'string', 'timestamp='=>'?int'],
],
'strip_tags' => [
'old' => ['string', 'string'=>'string', 'allowed_tags='=>'string|list<non-empty-string>'],
'new' => ['string', 'string'=>'string', 'allowed_tags='=>'string|list<non-empty-string>|null'],
],
'stripos' => [
'old' => ['int|false', 'haystack'=>'string', 'needle'=>'string|int', 'offset='=>'int'],
'new' => ['int|false', 'haystack'=>'string', 'needle'=>'string', 'offset='=>'int'],