Skip to content

Commit be711a0

Browse files
Fix PHP 8.1 deprecation notice (#407)
1 parent 63e55d7 commit be711a0

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
The change log describes what is "Added", "Removed", "Changed" or "Fixed" between each release.
44

5+
# 1.24.1 - TBD
6+
- Fixed deprecation notice in PHP 8.1 by adding `= null` to `\Http\HttplugBundle\Collector\Twig\HttpMessageMarkupExtension`
7+
-
58
# 1.24.0 - 2021-10-23
69
- Changed stopwatch category from default to "httplug", so it's more prominent on Execution timeline view
710
- Changed tab texts inside profiler so that it shows ports in URL in case it's non-standard

src/Collector/Twig/HttpMessageMarkupExtension.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class HttpMessageMarkupExtension extends AbstractExtension
2626
*/
2727
private $dumper;
2828

29-
public function __construct(?ClonerInterface $cloner = null, ?DataDumperInterface $dumper)
29+
public function __construct(?ClonerInterface $cloner = null, ?DataDumperInterface $dumper = null)
3030
{
3131
$this->cloner = $cloner ?: new VarCloner();
3232
$this->dumper = $dumper ?: new HtmlDumper();

0 commit comments

Comments
 (0)