Fix #20459: Fix return type in RequestParserInterface::parse

This commit is contained in:
Максим Спирков
2025-07-19 18:51:42 +05:00
committed by Alexander Makarov
parent 44f19bf3a2
commit 2cc09dd57d
2 changed files with 2 additions and 1 deletions

View File

@ -34,6 +34,7 @@ Yii Framework 2 Change Log
- Enh #20433: Added PHPStan/Psalm annotations for some controllers methods: `beforeAction`, `afterAction` and `bindActionParams` (max-s-lab) - Enh #20433: Added PHPStan/Psalm annotations for some controllers methods: `beforeAction`, `afterAction` and `bindActionParams` (max-s-lab)
- Enh #20442: Add PHPStan/Psalm annotations for `yii\base\Controller` methods: `runAction`, `run`, `render`, `renderPartial` and `renderFile` (max-s-lab) - Enh #20442: Add PHPStan/Psalm annotations for `yii\base\Controller` methods: `runAction`, `run`, `render`, `renderPartial` and `renderFile` (max-s-lab)
- Bug #20453: Fix PHPStan/Psalm types in `yii\web\View` (max-s-lab) - Bug #20453: Fix PHPStan/Psalm types in `yii\web\View` (max-s-lab)
- Bug #20459: Fix return type in `RequestParserInterface::parse` (max-s-lab)
2.0.53 June 27, 2025 2.0.53 June 27, 2025

View File

@ -19,7 +19,7 @@ interface RequestParserInterface
* Parses a HTTP request body. * Parses a HTTP request body.
* @param string $rawBody the raw HTTP request body. * @param string $rawBody the raw HTTP request body.
* @param string $contentType the content type specified for the request body. * @param string $contentType the content type specified for the request body.
* @return array parameters parsed from the request body * @return array|object parameters parsed from the request body
*/ */
public function parse($rawBody, $contentType); public function parse($rawBody, $contentType);
} }