Skip to content

Commit

Permalink
Fix compatibility with PHP 8.
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMage committed Jul 19, 2021
1 parent f722cef commit 0979fbb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Matching/RouteMatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use Illuminate\Routing\Route;
use Illuminate\Support\Facades\Route as RouteFacade;
use Illuminate\Support\Str;
use Mpociot\ApiDoc\Matching\RouteMatcher\Match;
use Mpociot\ApiDoc\Matching\RouteMatcher\RouteMatch;

class RouteMatcher implements RouteMatcherInterface
{
Expand Down Expand Up @@ -36,7 +36,7 @@ private function getRoutesToBeDocumented(array $routeRules, bool $usingDingoRout
}

if ($this->shouldIncludeRoute($route, $routeRule, $includes, $usingDingoRouter)) {
$matchedRoutes[] = new Match($route, $routeRule['apply'] ?? []);
$matchedRoutes[] = new RouteMatch($route, $routeRule['apply'] ?? []);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Illuminate\Routing\Route;

class Match implements \ArrayAccess
class RouteMatch implements \ArrayAccess
{
/**
* @var Route
Expand Down

0 comments on commit 0979fbb

Please sign in to comment.