Skip to content

Commit

Permalink
strip_tags 2nd parameter accepts array on PHP 7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Mar 25, 2020
1 parent 1b72fa1 commit 7d3123d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Reflection/SignatureMap/functionMap_php74delta.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
'ReflectionReference::fromArrayElement' => ['?ReflectionReference', 'array'=>'array', 'key'=>'int|string'],
'ReflectionReference::getId' => ['string'],
'SQLite3Stmt::getSQL' => ['string', 'expanded='=>'bool'],
'strip_tags' => ['string', 'str'=>'string', 'allowable_tags='=>'string|array<int, string>'],

This comment has been minimized.

Copy link
@ruudk

ruudk Mar 25, 2020

Contributor

@ondrejmirtes Too fast ⚡️

-		'strip_tags' => ['string', 'str'=>'string', 'allowable_tags='=>'string|array<int, string>'],
+		'strip_tags' => ['string', 'str'=>'string', 'allowable_tags'=>'string|array<int, string>'],

This comment has been minimized.

Copy link
@ondrejmirtes

ondrejmirtes Mar 25, 2020

Author Member

I don't get it? The second parameter is still optional.

This comment has been minimized.

Copy link
@ruudk

ruudk Mar 25, 2020

Contributor

Ahh, this is a special syntax, sorry, I thought you accidentally added a = . Nvm, thanks for fixing 💙

'WeakReference::create' => ['WeakReference', 'referent'=>'object'],
'WeakReference::get' => ['?object'],
],
Expand Down

0 comments on commit 7d3123d

Please sign in to comment.