Skip to content

Commit

Permalink
Unit-Test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bkdotcom committed Aug 8, 2023
1 parent 1e7db60 commit 13ed0ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Backtrace/Backtrace.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public static function getCallerInfo($offset = 0, $options = 0)
we need to collect object... we'll remove object at end if undesired
*/
$phpOptions = static::translateOptions($options | self::INCL_OBJECT);
$backtrace = \debug_backtrace($phpOptions, 22);
$backtrace = \debug_backtrace($phpOptions, 28);
$index = SkipInternal::getFirstIndex($backtrace, $offset);
$return = static::callerInfoBuild(\array_slice($backtrace, $index));
if (!($options & self::INCL_OBJECT)) {
Expand Down
4 changes: 3 additions & 1 deletion tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ function headers_list()
$headersByName[$name][] = $header;
}
$values = \array_values($headersByName);
return \call_user_func_array('array_merge', $values);
return $values
? \call_user_func_array('array_merge', $values)
: array();
}

function headers_sent(&$file = null, &$line = null)
Expand Down

0 comments on commit 13ed0ff

Please sign in to comment.