Skip to content

Commit 5c428d3

Browse files
committed
chore: Add PHPStan ignore directive to suppress type warning for file read.
1 parent 111d0f4 commit 5c428d3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Services/DocumentationService.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ private function generateDocumentData(string $path, string $locale, string $slug
250250
{
251251
$raw = File::get($path);
252252

253+
// @phpstan-ignore-next-line
253254
if (! is_string($raw)) {
254255
throw new \RuntimeException("Failed to read file: {$path}");
255256
}

0 commit comments

Comments
 (0)