Skip to content

Commit

Permalink
fix: allow null, string and string array as allowed tags (#50409)
Browse files Browse the repository at this point in the history
* fix: allow null, string and string array as allowed tags

* Update Stringable.php

---------

Co-authored-by: Maarten Paauw <maarten.paauw@npo.nl>
Co-authored-by: Taylor Otwell <taylor@laravel.com>
  • Loading branch information
3 people authored Mar 7, 2024
1 parent a98f849 commit e641b02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Stringable.php
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,7 @@ public function start($prefix)
/**
* Strip HTML and PHP tags from the given string.
*
* @param string $allowedTags
* @param string[]|string|null $allowedTags
* @return static
*/
public function stripTags($allowedTags = null)
Expand Down

0 comments on commit e641b02

Please sign in to comment.