Skip to content

Commit d230269

Browse files
committed
fix missing return type readYamlBody method
1 parent f2956d0 commit d230269

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Core.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ private static function warningHandler($errno, $errstr)
545545
*
546546
* @return object|array|null The request parameters, either as a stdClass object or an associative array, or null if the request body was not required and is empty.
547547
*/
548-
public function readYamlBody(bool $required = false, bool $assoc = false): object|array
548+
public function readYamlBody(bool $required = false, bool $assoc = false): object|array|null
549549
{
550550
$rawData = file_get_contents('php://input');
551551
if ("" === $rawData && $required) {

0 commit comments

Comments
 (0)