added some docs to shut PhpStorm up

This commit is contained in:
Dylan K. Taylor 2017-10-29 13:02:19 +00:00
parent 7e490ccdf2
commit 8aca373194
3 changed files with 14 additions and 0 deletions

View File

@ -410,6 +410,12 @@ namespace pocketmine {
return -1;
}
/**
* @param int $start
* @param array|null $trace
*
* @return array
*/
function getTrace($start = 0, $trace = null){
if($trace === null){
if(function_exists("xdebug_get_function_stack")){

View File

@ -2156,6 +2156,10 @@ class Server{
}
}
/**
* @param \Throwable $e
* @param array|null $trace
*/
public function exceptionHandler(\Throwable $e, $trace = null){
if($e === null){
return;

View File

@ -119,6 +119,10 @@ class MainLogger extends \AttachableThreadedLogger{
$this->logDebug = $logDebug;
}
/**
* @param \Throwable $e
* @param array|null $trace
*/
public function logException(\Throwable $e, $trace = null){
if($trace === null){
$trace = $e->getTrace();