Skip to content

Commit d6add9a

Browse files
committed
[phpstorm-stubs] Fix default value for $encoding parameter in htmlentities signature
1 parent 62d3fa7 commit d6add9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

standard/standard_0.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ function htmlspecialchars(string $string, int $flags = ENT_QUOTES|ENT_SUBSTITUTE
521521
* @return string the encoded string.
522522
*/
523523
#[Pure]
524-
function htmlentities(string $string, int $flags = ENT_QUOTES|ENT_SUBSTITUTE, ?string $encoding, bool $double_encode = true): string {}
524+
function htmlentities(string $string, int $flags = ENT_QUOTES|ENT_SUBSTITUTE, ?string $encoding = null, bool $double_encode = true): string {}
525525

526526
/**
527527
* Convert HTML entities to their corresponding characters

0 commit comments

Comments
 (0)