Fix #20569: Fix @param annotation for $default in HeaderCollection::get

This commit is contained in:
Maksim Spirkov
2025-10-06 14:35:37 +04:00
committed by GitHub
parent dc6f9bcb31
commit 4b23c4b5bd
2 changed files with 2 additions and 1 deletions

View File

@ -43,6 +43,7 @@ Yii Framework 2 Change Log
- Enh #19526: Add the `convertIniSizeToBytes` method to `BaseStringHelper` (max-s-lab)
- Bug #20570: Fix `@var` annotation for `UrlManager::$cache` (max-s-lab)
- Bug #20571: Fix `@var` annotation for `yii\web\Response::$stream` (max-s-lab)
- Bug #20569: Fix `@param` annotation for `$default` in `HeaderCollection::get` (max-s-lab)
- Bug #20576: Fix `@var` annotation for `StringValidator::$length` (max-s-lab)

View File

@ -67,7 +67,7 @@ class HeaderCollection extends BaseObject implements \IteratorAggregate, \ArrayA
/**
* Returns the named header(s).
* @param string $name the name of the header to return
* @param mixed $default the value to return in case the named header does not exist
* @param string|array|null $default the value to return in case the named header does not exist
* @param bool $first whether to only return the first header of the specified name.
* If false, all headers of the specified name will be returned.
* @return string|array|null the named header(s). If `$first` is true, a string will be returned;