Skip to content

Commit 4c2c65c

Browse files
committed
making argument optional
1 parent 89e3f9b commit 4c2c65c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

_build/src/KernelFactory.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*/
1313
final class KernelFactory
1414
{
15-
public static function createKernel(?string $parseOnly): Kernel
15+
public static function createKernel(string $parseOnlyPath = null): Kernel
1616
{
1717
$configuration = new Configuration();
1818
$configuration->setCustomTemplateDirs([__DIR__.'/Templates']);
@@ -24,16 +24,16 @@ public static function createKernel(?string $parseOnly): Kernel
2424
)
2525
);
2626

27-
if ($parseOnly) {
27+
if ($parseOnlyPath) {
2828
$configuration->setBaseUrl(
2929
sprintf(
3030
SymfonyDocConfiguration::getSymfonyDocUrl(),
3131
SymfonyDocConfiguration::getVersion()
3232
)
3333
);
3434
$configuration->setBaseUrlEnabledCallable(
35-
static function (string $path) use ($parseOnly) : bool {
36-
return strpos($path, $parseOnly) !== 0;
35+
static function (string $path) use ($parseOnlyPath) : bool {
36+
return strpos($path, $parseOnlyPath) !== 0;
3737
}
3838
);
3939
}

0 commit comments

Comments
 (0)