src/Gelembjuk/Logger/ErrorScreen.php
public function warningHandler($errno, $errstr, $errfile, $errline) {
		if ($errno != E_WARNING && $errno != E_USER_WARNING) {
			return false;
		}
		
		$message = "WARNING! [$errno] $errstr. Line $errline in file $errfile. ";
		
		// because some more problems can happen during logging or display
		// better to disable this handler
		$this->setCatchWarnings(false);
		
		$exception = new \Exception($message);

		$this->processError($exception,'warning');		
		
		$this->setCatchWarnings(true);
	}
public function warningHandler($errno, $errstr, $errfile, $errline) {
		if ($errno != E_WARNING && $errno != E_USER_WARNING) {
			return false;
		}
		
		$message = "WARNING! [$errno] $errstr. Line $errline in file $errfile. ";
		
		// because some more problems can happen during logging or display
		// better to disable this handler
		$this->setCatchWarnings(false);
		
		$exception = new \Exception($message);

		$this->processError($exception,'warning');		
		
		$this->setCatchWarnings(true);
	}
public function warningHandler ( $ errno , $ errstr , $ errfile , $ errline ) { if ( $ errno != E_WARNING && $ errno != E_USER_WARNING ) { return false ; } $ message = "WARNING! [$errno] $errstr. Line $errline in file $errfile. " ; // because some more problems can happen during logging or display // better to disable this handler $ this -> setCatchWarnings ( false ) ; $ exception = new \ Exception ( $ message ) ; $ this -> processError ( $ exception , 'warning' ) ; $ this -> setCatchWarnings ( true ) ; }
To catch warnings. Notices are ignored in this function.
This is the callback for a function set_error_handler
To catch warnings . Notices are ignored in this function . This is the callback for a function set_error_handler