mirror of
				https://github.com/yiisoft/yii2.git
				synced 2025-11-04 06:37:55 +08:00 
			
		
		
		
	Fix #20569: Fix @param annotation for $default in HeaderCollection::get
				
					
				
			This commit is contained in:
		@ -43,6 +43,7 @@ Yii Framework 2 Change Log
 | 
				
			|||||||
- Enh #19526: Add the `convertIniSizeToBytes` method to `BaseStringHelper` (max-s-lab)
 | 
					- Enh #19526: Add the `convertIniSizeToBytes` method to `BaseStringHelper` (max-s-lab)
 | 
				
			||||||
- Bug #20570: Fix `@var` annotation for `UrlManager::$cache` (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 #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)
 | 
					- Bug #20576: Fix `@var` annotation for `StringValidator::$length` (max-s-lab)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -67,7 +67,7 @@ class HeaderCollection extends BaseObject implements \IteratorAggregate, \ArrayA
 | 
				
			|||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * Returns the named header(s).
 | 
					     * Returns the named header(s).
 | 
				
			||||||
     * @param string $name the name of the header to return
 | 
					     * @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.
 | 
					     * @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.
 | 
					     * 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;
 | 
					     * @return string|array|null the named header(s). If `$first` is true, a string will be returned;
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user