Fix #20618: Fix @var annotation for yii\web\Response::$acceptMimeType

This commit is contained in:
Maksim Spirkov
2025-10-15 19:57:49 +03:00
committed by GitHub
parent 0f5e556246
commit 63fc248912
2 changed files with 2 additions and 1 deletions

View File

@ -61,6 +61,7 @@ Yii Framework 2 Change Log
- Bug #20608: Fix `@return` annotations for `yii\rest\Serializer` methods (mspirkov)
- Bug #20610: Fix `@var` annotation for `ActiveQueryTrait::$with` (mspirkov)
- Bug #20611: Fix `@return` annotations for `yii\i18n\GettextMoFile` methods (mspirkov)
- Bug #20618: Fix `@var` annotation for `yii\web\Response::$acceptMimeType` (mspirkov)
- Bug #20617: Fix `@return` annotation for `DataColumn::getDataCellValue()` (mspirkov)

View File

@ -103,7 +103,7 @@ class Response extends \yii\base\Response
*/
public $format = self::FORMAT_HTML;
/**
* @var string the MIME type (e.g. `application/json`) from the request ACCEPT header chosen for this response.
* @var string|null the MIME type (e.g. `application/json`) from the request ACCEPT header chosen for this response.
* This property is mainly set by [[\yii\filters\ContentNegotiator]].
*/
public $acceptMimeType;