Skip to content

Commit eecee98

Browse files
Fix PHP 8.4 deprecations
1 parent df3991d commit eecee98

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Controller/ElFinderController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public function mainJS(): Response
9696
/**
9797
* @throws Exception
9898
*/
99-
private function selectEditor(array $parameters, string $instance, string $homeFolder, string $assetsPath, string $formTypeId = null): array
99+
private function selectEditor(array $parameters, string $instance, string $homeFolder, string $assetsPath, ?string $formTypeId = null): array
100100
{
101101
$editor = $parameters['editor'];
102102
$locale = $parameters['locale'] ?: $this->container->getParameter('locale');

src/Event/ElFinderPostExecutionEvent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class ElFinderPostExecutionEvent extends ElFinderPreExecutionEvent
1313
/**
1414
* Constructor.
1515
*/
16-
public function __construct(Request $request, HttpKernelInterface $httpKernel, string $instance, string $homeFolder, array $result = null)
16+
public function __construct(Request $request, HttpKernelInterface $httpKernel, string $instance, string $homeFolder, ?array $result = null)
1717
{
1818
parent::__construct($request, $httpKernel, $instance, $homeFolder);
1919

0 commit comments

Comments
 (0)