Skip to content

Commit bd52da9

Browse files
committed
Add PHP 8 compatibility for optional arguments
1 parent 5020976 commit bd52da9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/DocsKernel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class DocsKernel extends Kernel
2323
{
2424
private $buildContext;
2525

26-
public function __construct(?Configuration $configuration = null, $directives = [], $references = [], BuildContext $buildContext)
26+
public function __construct(BuildContext $buildContext, ?Configuration $configuration = null, $directives = [], $references = [])
2727
{
2828
parent::__construct($configuration, $directives, $references);
2929

src/KernelFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ static function (string $path) use ($parseSubPath): bool {
5656
$twig->addExtension(new AssetsExtension());
5757

5858
return new DocsKernel(
59+
$buildContext,
5960
$configuration,
6061
self::getDirectives(),
61-
self::getReferences($buildContext),
62-
$buildContext
62+
self::getReferences($buildContext)
6363
);
6464
}
6565

0 commit comments

Comments
 (0)