Skip to content

Commit 10155a7

Browse files
authored
Merge pull request #40 from javiereguiluz/php8_compat
Add PHP 8 compatibility for optional arguments
2 parents 2c06418 + bd52da9 commit 10155a7

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
@@ -57,10 +57,10 @@ static function (string $path) use ($parseSubPath): bool {
5757
$twig->addExtension(new AssetsExtension());
5858

5959
return new DocsKernel(
60+
$buildContext,
6061
$configuration,
6162
self::getDirectives(),
62-
self::getReferences($buildContext),
63-
$buildContext
63+
self::getReferences($buildContext)
6464
);
6565
}
6666

0 commit comments

Comments
 (0)