mirror of
				https://github.com/yiisoft/yii2.git
				synced 2025-10-31 18:47:33 +08:00 
			
		
		
		
	Fix #20594: Fix @return annotation for Instance::get()
				
					
				
			This commit is contained in:
		| @ -49,6 +49,7 @@ Yii Framework 2 Change Log | |||||||
| - Bug #20583: Fix return value in `Request::getServerPort` (mspirkov) | - Bug #20583: Fix return value in `Request::getServerPort` (mspirkov) | ||||||
| - Bug #20587: Fix `@var` annotation for `yii\rbac\Item::$ruleName` (mspirkov) | - Bug #20587: Fix `@var` annotation for `yii\rbac\Item::$ruleName` (mspirkov) | ||||||
| - Bug #20589: Fix `@var` annotations for `yii\rbac\DbManager` properties (mspirkov) | - Bug #20589: Fix `@var` annotations for `yii\rbac\DbManager` properties (mspirkov) | ||||||
|  | - Bug #20594: Fix `@return` annotation for `Instance::get()` (mspirkov) | ||||||
| - Bug #20595: Fix `@return` annotation for `BaseHtml::getAttributeValue()` (mspirkov) | - Bug #20595: Fix `@return` annotation for `BaseHtml::getAttributeValue()` (mspirkov) | ||||||
|  |  | ||||||
|  |  | ||||||
|  | |||||||
| @ -173,7 +173,7 @@ class Instance | |||||||
|      * Returns the actual object referenced by this Instance object. |      * Returns the actual object referenced by this Instance object. | ||||||
|      * @param ServiceLocator|Container|null $container the container used to locate the referenced object. |      * @param ServiceLocator|Container|null $container the container used to locate the referenced object. | ||||||
|      * If null, the method will first try `Yii::$app` then `Yii::$container`. |      * If null, the method will first try `Yii::$app` then `Yii::$container`. | ||||||
|      * @return object the actual object referenced by this Instance object. |      * @return object|null the actual object referenced by this Instance object. | ||||||
|      */ |      */ | ||||||
|     public function get($container = null) |     public function get($container = null) | ||||||
|     { |     { | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 Maksim Spirkov
					Maksim Spirkov