Skip to content

Commit

Permalink
Fix missing import
Browse files Browse the repository at this point in the history
Signed-off-by: Luís Cobucci <[email protected]>
  • Loading branch information
lcobucci committed Jan 8, 2024
1 parent ab04b7c commit d95212e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Cache/FileCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

use Closure;
use FastRoute\Cache;
use FastRoute\DataGenerator;
use RuntimeException;

use function chmod;
Expand All @@ -22,6 +23,7 @@

use const LOCK_EX;

/** @phpstan-import-type RouteData from DataGenerator */
final class FileCache implements Cache
{
private const DIRECTORY_PERMISSIONS = 0775;
Expand Down Expand Up @@ -53,7 +55,7 @@ public function get(string $key, callable $loader): array
return $data;
}

/** @return array{0: array<string, array<string, mixed>>, 1: array<string, array<array{regex: string, suffix?: string, routeMap: array<int|string, array{0: mixed, 1: array<string, string>}>}>>}|null */
/** @return RouteData|null */
private static function readFileContents(string $path): ?array
{
// error suppression is faster than calling `file_exists()` + `is_file()` + `is_readable()`, especially because there's no need to error here
Expand Down

0 comments on commit d95212e

Please sign in to comment.