Skip to content
This repository was archived by the owner on Mar 24, 2025. It is now read-only.

Commit 8e01730

Browse files
authored
Merge pull request #523 from amcsi/patch-1
Fix deprecated null potentially being passed to strpos()
2 parents 711d7f6 + 7e60b15 commit 8e01730

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Transformers/Request.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ protected function createIlluminateRequest($get, $post, $cookie, $files, $server
9292

9393
$request = new SymfonyRequest($get, $post, [], $cookie, $files, $server, $content);
9494

95-
if (0 === strpos($request->headers->get('CONTENT_TYPE'), 'application/x-www-form-urlencoded')
95+
if (0 === strpos($request->headers->get('CONTENT_TYPE', ''), 'application/x-www-form-urlencoded')
9696
&& in_array(strtoupper($request->server->get('REQUEST_METHOD', 'GET')), ['PUT', 'DELETE', 'PATCH'])
9797
) {
9898
parse_str($request->getContent(), $data);

0 commit comments

Comments
 (0)