Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfbb442e

Browse files
authored
Merge pull request#3214 from MathiasReker/0-is-null
Is null
2 parents4a61e28 +34c313f commitfbb442e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎Slim/Middleware/BodyParsingMiddleware.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ protected function parseBody(ServerRequestInterface $request)
154154
$body = (string)$request->getBody();
155155
$parsed =$this->bodyParsers[$mediaType]($body);
156156

157-
if (!is_null($parsed) && !is_object($parsed) && !is_array($parsed)) {
157+
if ($parsed !==null && !is_object($parsed) && !is_array($parsed)) {
158158
thrownewRuntimeException(
159159
'Request body media type parser return value must be an array, an object, or null'
160160
);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp