Skip to content

Commit

Permalink
Fixed type error (#35956)
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell committed Jan 20, 2021
1 parent f0dc53f commit d08fd80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Http/Concerns/InteractsWithContentTypes.php
Expand Up @@ -31,7 +31,7 @@ public static function matchesType($actual, $type)
*/
public function isJson()
{
return Str::contains($this->header('CONTENT_TYPE'), ['/json', '+json']);
return Str::contains($this->header('CONTENT_TYPE') ?? '', ['/json', '+json']);
}

/**
Expand Down

0 comments on commit d08fd80

Please sign in to comment.