Skip to content

Commit 783a433

Browse files
author
Bernhard Schmitt
committed
Make nullability explicit
1 parent 794ebb6 commit 783a433

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Classes/Controller/ModuleController.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public function indexAction(): void
162162
]);
163163
}
164164

165-
protected function processRedirectStartAndEndDate(string $startDateTimeString = null, string $endDateTimeString = null): array
165+
protected function processRedirectStartAndEndDate(?string $startDateTimeString = null, ?string $endDateTimeString = null): array
166166
{
167167
$valid = true;
168168
$startDateTime = null;
@@ -413,7 +413,7 @@ public function exportCsvAction(): void
413413
*
414414
* @throws StopActionException
415415
*/
416-
public function importCsvAction(PersistentResource $csvFile = null, string $delimiter = ','): void
416+
public function importCsvAction(?PersistentResource $csvFile = null, string $delimiter = ','): void
417417
{
418418
$protocol = [];
419419

@@ -466,8 +466,8 @@ protected function addRedirect(
466466
int $statusCode,
467467
?string $host = null,
468468
?string $comment = null,
469-
DateTime $startDateTime = null,
470-
DateTime $endDateTime = null,
469+
?DateTime $startDateTime = null,
470+
?DateTime $endDateTime = null,
471471
bool $force = false
472472
): array
473473
{
@@ -526,8 +526,8 @@ protected function updateRedirect(
526526
int $statusCode,
527527
?string $host = null,
528528
?string $comment = null,
529-
DateTime $startDateTime = null,
530-
DateTime $endDateTime = null,
529+
?DateTime $startDateTime = null,
530+
?DateTime $endDateTime = null,
531531
bool $force = false
532532
): array
533533
{
@@ -600,7 +600,7 @@ protected function isSame(
600600
string $targetUriPath,
601601
?string $host,
602602
int $statusCode,
603-
RedirectInterface $redirect = null
603+
?RedirectInterface $redirect = null
604604
): bool
605605
{
606606
if ($redirect === null) {

0 commit comments

Comments
 (0)