Skip to content

Commit d7f27d5

Browse files
Merge branch '6.x' into 8.x
2 parents 9f0180f + d08fd80 commit d7f27d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Http/Concerns/InteractsWithContentTypes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ trait InteractsWithContentTypes
1313
*/
1414
public function isJson()
1515
{
16-
return Str::contains($this->header('CONTENT_TYPE'), ['/json', '+json']);
16+
return Str::contains($this->header('CONTENT_TYPE') ?? '', ['/json', '+json']);
1717
}
1818

1919
/**

0 commit comments

Comments
 (0)