mirror of
				https://github.com/yiisoft/yii2.git
				synced 2025-11-04 14:46:19 +08:00 
			
		
		
		
	error handler now works properly with @
This commit is contained in:
		@ -77,7 +77,9 @@ class ErrorHandler extends ApplicationComponent
 | 
			
		||||
	 */
 | 
			
		||||
	public function handleError($code, $message, $file, $line)
 | 
			
		||||
	{
 | 
			
		||||
		throw new \ErrorException($message, 0, $code, $file, $line);
 | 
			
		||||
		if(error_reporting()!==0) {
 | 
			
		||||
			throw new \ErrorException($message, 0, $code, $file, $line);
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	/**
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user