src/Util.php
public static function caller(int $back = 0)
    {
        $bt = debug_backtrace();
        $trace = $bt[$back] ?? null;

        $file = $trace['file'] ?? '';
        $line = $trace['line'] ?? -1;

        return array( $file, intval($line) );
    }
public static function caller(int $back = 0)
    {
        $bt = debug_backtrace();
        $trace = $bt[$back] ?? null;

        $file = $trace['file'] ?? '';
        $line = $trace['line'] ?? -1;

        return array( $file, intval($line) );
    }
public static function caller ( int $ back = 0 ) { $ bt = debug_backtrace ( ) ; $ trace = $ bt [ $ back ] ?? null ; $ file = $ trace [ 'file' ] ?? '' ; $ line = $ trace [ 'line' ] ?? - 1 ; return array ( $ file , intval ( $ line ) ) ; }
return file and line number of called position

@param int $back

@return array
return file and line number of called position