Skip to content

Commit e725892

Browse files
committed
minor symfony#61905 [HtmlSanitizer] Remove redundant assignment to promoted property $con… (momito69)
This PR was merged into the 7.4 branch. Discussion ---------- [HtmlSanitizer] Remove redundant assignment to promoted property $con… | Q | A | ------------- | --- | Branch? | 7.4 | Bug fix? | no | New feature? | yes | Deprecations? | no | Issues | Fix symfony#61904 | License | MIT In the HtmlSanitizer class constructor, there is a redundant assignment to the promoted property `$this->config`: Since **$config** is already a promoted property, the explicit assignment `$this->config = $config;` is unnecessary and can be safely removed. Commits ------- 51a290a [HtmlSanitizer] Remove redundant assignment to promoted property $config in constructor
2 parents 9731ad4 + 51a290a commit e725892

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/Symfony/Component/HtmlSanitizer/HtmlSanitizer.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ public function __construct(
3434
private HtmlSanitizerConfig $config,
3535
?ParserInterface $parser = null,
3636
) {
37-
$this->config = $config;
3837
$this->parser = $parser ?? (\PHP_VERSION_ID < 80400 ? new MastermindsParser() : new NativeParser());
3938
}
4039

0 commit comments

Comments
 (0)