mirror of
				https://github.com/yiisoft/yii2.git
				synced 2025-11-04 14:46:19 +08:00 
			
		
		
		
	changed default value of Component::_events
This commit is contained in:
		@ -24,7 +24,7 @@ class Component extends Object
 | 
			
		||||
	/**
 | 
			
		||||
	 * @var array the attached event handlers (event name => handlers)
 | 
			
		||||
	 */
 | 
			
		||||
	private $_events;
 | 
			
		||||
	private $_events = [];
 | 
			
		||||
	/**
 | 
			
		||||
	 * @var Behavior[] the attached behaviors (behavior name => behavior)
 | 
			
		||||
	 */
 | 
			
		||||
@ -210,7 +210,7 @@ class Component extends Object
 | 
			
		||||
	 */
 | 
			
		||||
	public function __clone()
 | 
			
		||||
	{
 | 
			
		||||
		$this->_events = null;
 | 
			
		||||
		$this->_events = [];
 | 
			
		||||
		$this->_behaviors = null;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user