Skip to content

Commit

Permalink
Merge branch '5.4' into 6.3
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
nicolas-grekas committed Jan 23, 2024
1 parent 45e5a24 commit 77d508d
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 77d508d

Please sign in to comment.