Fix #20611: Fix @return annotations for yii\i18n\GettextMoFile methods

This commit is contained in:
Maksim Spirkov
2025-10-14 19:27:03 +03:00
committed by GitHub
parent c960f93dfe
commit c6c7bf1d4b
2 changed files with 3 additions and 2 deletions

View File

@ -56,6 +56,7 @@ Yii Framework 2 Change Log
- Bug #20595: Fix `@return` annotation for `BaseHtml::getAttributeValue()` (mspirkov)
- Bug #20604: Fix `@var` annotation for `yii\db\Command::$pdoStatement` (mspirkov)
- Bug #20600: Fix `@var` annotation for `yii\test\FileFixtureTrait::$dataFile` (mspirkov)
- Bug #20611: Fix `@return` annotations for `yii\i18n\GettextMoFile` methods (mspirkov)
2.0.53 June 27, 2025

View File

@ -201,7 +201,7 @@ class GettextMoFile extends GettextFile
* Reads one or several bytes.
* @param resource $fileHandle to read from
* @param int $byteCount to be read
* @return string bytes
* @return string|null bytes
*/
protected function readBytes($fileHandle, $byteCount = 1)
{
@ -251,7 +251,7 @@ class GettextMoFile extends GettextFile
* @param resource $fileHandle file handle
* @param int $length of the string
* @param int|null $offset of the string in the file. If null, it reads from the current position.
* @return string the result
* @return string|null the result
*/
protected function readString($fileHandle, $length, $offset = null)
{