Skip to content

Commit da44457

Browse files
Naorayclaude
andcommitted
fix(phpstan): remove redundant is_string check
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent b97c6a9 commit da44457

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Tracing/InertiaDataCollector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ protected function extractComponentFromResponse($response): ?string
107107

108108
// Try to parse component from JSON response
109109
$content = $response->getContent();
110-
if (! $content || ! is_string($content)) {
110+
if ($content === false || $content === '') {
111111
return null;
112112
}
113113

0 commit comments

Comments
 (0)