Skip to content

Commit 77d508d

Browse files
Merge branch '5.4' into 6.3
* 5.4: Fix implicitly-required parameters List CS fix in .git-blame-ignore-revs Apply php-cs-fixer fix --rules nullable_type_declaration_for_default_null_value [Messenger][AmazonSqs] Allow async-aws/sqs version 2
1 parent 45e5a24 commit 77d508d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

HtmlSanitizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ final class HtmlSanitizer implements HtmlSanitizerInterface
3030
*/
3131
private array $domVisitors = [];
3232

33-
public function __construct(HtmlSanitizerConfig $config, ParserInterface $parser = null)
33+
public function __construct(HtmlSanitizerConfig $config, ?ParserInterface $parser = null)
3434
{
3535
$this->config = $config;
3636
$this->parser = $parser ?? new MastermindsParser();

TextSanitizer/UrlSanitizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ final class UrlSanitizer
2929
*
3030
* It also transforms the URL to HTTPS if requested.
3131
*/
32-
public static function sanitize(?string $input, array $allowedSchemes = null, bool $forceHttps = false, array $allowedHosts = null, bool $allowRelative = false): ?string
32+
public static function sanitize(?string $input, ?array $allowedSchemes = null, bool $forceHttps = false, ?array $allowedHosts = null, bool $allowRelative = false): ?string
3333
{
3434
if (!$input) {
3535
return null;

0 commit comments

Comments
 (0)