mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-19 09:54:10 +00:00
added some docs to shut PhpStorm up
This commit is contained in:
parent
7e490ccdf2
commit
8aca373194
@ -410,6 +410,12 @@ namespace pocketmine {
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param int $start
|
||||||
|
* @param array|null $trace
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
function getTrace($start = 0, $trace = null){
|
function getTrace($start = 0, $trace = null){
|
||||||
if($trace === null){
|
if($trace === null){
|
||||||
if(function_exists("xdebug_get_function_stack")){
|
if(function_exists("xdebug_get_function_stack")){
|
||||||
|
@ -2156,6 +2156,10 @@ class Server{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param \Throwable $e
|
||||||
|
* @param array|null $trace
|
||||||
|
*/
|
||||||
public function exceptionHandler(\Throwable $e, $trace = null){
|
public function exceptionHandler(\Throwable $e, $trace = null){
|
||||||
if($e === null){
|
if($e === null){
|
||||||
return;
|
return;
|
||||||
|
@ -119,6 +119,10 @@ class MainLogger extends \AttachableThreadedLogger{
|
|||||||
$this->logDebug = $logDebug;
|
$this->logDebug = $logDebug;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param \Throwable $e
|
||||||
|
* @param array|null $trace
|
||||||
|
*/
|
||||||
public function logException(\Throwable $e, $trace = null){
|
public function logException(\Throwable $e, $trace = null){
|
||||||
if($trace === null){
|
if($trace === null){
|
||||||
$trace = $e->getTrace();
|
$trace = $e->getTrace();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user