Fix optional parameter order

This commit is contained in:
tchapi 2024-12-01 21:16:00 +01:00
parent 3697aac9af
commit 19b2fdec02

View File

@ -291,7 +291,7 @@ class DAVController extends AbstractController
}
#[Route('/dav/{path}', name: 'dav', requirements: ['path' => '.*'])]
public function dav(Request $request, ?Profiler $profiler = null, ?string $path)
public function dav(Request $request, ?string $path, ?Profiler $profiler = null)
{
// We don't want the toolbar on the /dav/* routes
if ($profiler instanceof Profiler) {