Skip to content

Commit 8a7153a

Browse files
authored
Merge pull request #11 from kartenmacherei/refactor/remove-implicit-null-to-be-8.4-compatible
refactor: remove implicit null so that code is php 8.4 compatible
2 parents 0278655 + b9c675e commit 8a7153a

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/ErrorHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ public function __construct(ExceptionRenderer $exceptionRenderer)
2323
/**
2424
* @codeCoverageIgnore
2525
*
26-
* @param ExceptionRenderer $exceptionRenderer
26+
* @param ExceptionRenderer|null $exceptionRenderer
2727
*/
28-
public static function register(ExceptionRenderer $exceptionRenderer = null)
28+
public static function register(?ExceptionRenderer $exceptionRenderer = null)
2929
{
3030
if (is_null($exceptionRenderer)) {
3131
$exceptionRenderer = new ExceptionToJsonRenderer();

src/Router/AbstractResourceRouter.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ abstract class AbstractResourceRouter implements ResourceRouter
1313
private $next;
1414

1515
/**
16-
* @var Acl
16+
* @var Acl|null
1717
*/
1818
private $acl;
1919

@@ -23,9 +23,9 @@ abstract class AbstractResourceRouter implements ResourceRouter
2323
private $resources = [];
2424

2525
/**
26-
* @param Acl $acl
26+
* @param Acl|null $acl
2727
*/
28-
public function __construct(Acl $acl = null)
28+
public function __construct(?Acl $acl = null)
2929
{
3030
$this->acl = $acl;
3131
}

0 commit comments

Comments
 (0)