Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
public static function raise($level, $code, $msg, $info = null, $backtrace = false)
{
if( !empty(self::$levels[$level]) ){
$level = self::$levels[$level] ;
}else{
$level = self::$levels[E_NOTICE] ;
}
return call_user_func_array( array('ApiError', 'raise'.$level), array($level, $code, $msg, $info) ) ;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.