Skip to content

Commit

Permalink
fix: nullsafe argument
Browse files Browse the repository at this point in the history
  • Loading branch information
SychO9 committed Jun 7, 2022
1 parent ec3ea24 commit 4440a39
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/PrivateFacadeMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,17 +71,17 @@ public function process(ServerRequestInterface $request, RequestHandlerInterface
return $handler->handle($request);
}

public static function getBackendRouteExclusions(string $userExcludedRoutes): array
public static function getBackendRouteExclusions(?string $userExcludedRoutes): array
{
return self::getRouteExclusions($userExcludedRoutes, self::BACKEND_ROUTE_EXCLUSIONS);
}

public static function getFrontendRouteExclusions(string $userExcludedRoutes): array
public static function getFrontendRouteExclusions(?string $userExcludedRoutes): array
{
return self::getRouteExclusions($userExcludedRoutes, self::FRONTEND_ROUTE_EXCLUSIONS);
}

protected static function getRouteExclusions(string $userExcludedRoutes, array $extensionExcludedRoutes): array
protected static function getRouteExclusions(?string $userExcludedRoutes, array $extensionExcludedRoutes): array
{
if (! empty($userExcludedRoutes)) {
$extensionExcludedRoutes = array_merge($extensionExcludedRoutes, explode(', ', $userExcludedRoutes));
Expand Down

0 comments on commit 4440a39

Please sign in to comment.