Skip to content

Commit

Permalink
Fixed implicit null in TocGenerator.php (for PHP 8.4)
Browse files Browse the repository at this point in the history
  • Loading branch information
caseyamcl committed Dec 8, 2024
1 parent d49cf2d commit 296528f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- Dependency issue in `composer.json` affecting PHP7 versions
- Build issue with PHPStan in `HtmlHelper`
- Implicit null in `TocGenerator` class (for PHP 8.4)

## [3.1] - 2022-03-16
### Added
Expand Down
2 changes: 1 addition & 1 deletion src/TocGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ public function getOrderedHtmlMenu(
string $markup,
int $topLevel = 1,
int $depth = 6,
RendererInterface $renderer = null
?RendererInterface $renderer = null
): string {
return $this->getHtmlMenu($markup, $topLevel, $depth, $renderer, true);
}
Expand Down

0 comments on commit 296528f

Please sign in to comment.