Skip to content

Commit a1055ae

Browse files
committed
bug #42274 [VarDumper] HtmlDumper::setDumpHeader() accepts null (rrpadilla)
This PR was merged into the 5.3 branch. Discussion ---------- [VarDumper] `HtmlDumper::setDumpHeader()` accepts `null` | Q | A | ------------- | --- | Branch? | 5.3 <!-- see below --> | Bug fix? | yes | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tickets | Fix #42272 <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead --> | License | MIT | Doc PR | symfony/symfony-docs#... <!-- required for new features --> <!-- Replace this notice by a short README for your feature/bugfix. This will help people understand your PR and can be used as a start for the documentation. Additionally (see https://symfony.com/releases): - Always add tests and ensure they pass. - Never break backward compatibility (see https://symfony.com/bc). - Bug fixes must be submitted against the lowest maintained branch where they apply (lowest branches are regularly merged to upper ones so they get the fixes too.) - Features and deprecations must be submitted against branch 5.x. - Changelog entry should follow https://symfony.com/doc/current/contributing/code/conventions.html#writing-a-changelog-entry --> Commits ------- 98447a9 HtmlDumper - setDumpHeader accepts null
2 parents 5ac7db0 + 98447a9 commit a1055ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/VarDumper/Dumper/HtmlDumper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public function setDisplayOptions(array $displayOptions)
117117
/**
118118
* Sets an HTML header that will be dumped once in the output stream.
119119
*/
120-
public function setDumpHeader(string $header)
120+
public function setDumpHeader(?string $header)
121121
{
122122
$this->dumpHeader = $header;
123123
}

0 commit comments

Comments
 (0)