Skip to content

Commit 1a715b4

Browse files
BC: add default label of ''
1 parent 0b3fefc commit 1a715b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Extension/TableOfContents/TableOfContentsGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ final class TableOfContentsGenerator implements TableOfContentsGeneratorInterfac
5959
/** @psalm-readonly */
6060
private string $label;
6161

62-
public function __construct(string $style, string $normalizationStrategy, int $minHeadingLevel, int $maxHeadingLevel, string $fragmentPrefix, string $label)
62+
public function __construct(string $style, string $normalizationStrategy, int $minHeadingLevel, int $maxHeadingLevel, string $fragmentPrefix, string $label = '')
6363
{
6464
$this->style = $style;
6565
$this->normalizationStrategy = $normalizationStrategy;

0 commit comments

Comments
 (0)