Skip to content

Commit

Permalink
Merge branch '6.3' into 6.4
Browse files Browse the repository at this point in the history
* 6.3:
  minor #53524 [Messenger] [AmazonSqs] Allow `async-aws/sqs` version 2 (smoench)
  Fix bad merge
  List CS fix in .git-blame-ignore-revs
  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
  • Loading branch information
nicolas-grekas committed Jan 23, 2024
2 parents 9cc71f2 + 77d508d commit 116335a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion HtmlSanitizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ final class HtmlSanitizer implements HtmlSanitizerInterface
*/
private array $domVisitors = [];

public function __construct(HtmlSanitizerConfig $config, ParserInterface $parser = null)
public function __construct(HtmlSanitizerConfig $config, ?ParserInterface $parser = null)
{
$this->config = $config;
$this->parser = $parser ?? new MastermindsParser();
Expand Down
2 changes: 1 addition & 1 deletion TextSanitizer/UrlSanitizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ final class UrlSanitizer
*
* It also transforms the URL to HTTPS if requested.
*/
public static function sanitize(?string $input, array $allowedSchemes = null, bool $forceHttps = false, array $allowedHosts = null, bool $allowRelative = false): ?string
public static function sanitize(?string $input, ?array $allowedSchemes = null, bool $forceHttps = false, ?array $allowedHosts = null, bool $allowRelative = false): ?string
{
if (!$input) {
return null;
Expand Down

0 comments on commit 116335a

Please sign in to comment.