Skip to content

Commit

Permalink
https://github.com/mage2pro/core/issues/379
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Jun 5, 2024
1 parent 2301dee commit 3534ff7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Qa/lib/bt/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@ function df_bt($p = 0, int $limit = 0):array {
debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, !$limit ? 0 : 1 + $p + $limit)
);
# 2023-07-27 "Shift the `file` and `line` keys to an entry back in `df_bt()`": https://github.com/mage2pro/core/issues/283
list($f, $l) = ['', 0]; /** @var string $f */ /** @var int $l */
# 2024-06-06 "Use the «Symmetric array destructuring» PHP 7.1 feature": https://github.com/mage2pro/core/issues/379
[$f, $l] = ['', 0]; /** @var string $f */ /** @var int $l */
foreach ($r as &$e) {/** @var array(string => int|string) $e */
list($f2, $l2) = [df_bt_entry_file($e), df_bt_entry_line($e)]; /** @var string $f2 */ /** @var int $l2 */
[$f2, $l2] = [df_bt_entry_file($e), df_bt_entry_line($e)]; /** @var string $f2 */ /** @var int $l2 */
$e = ['file' => $f, 'line' => $l] + $e;
list($f, $l) = [$f2, $l2];
[$f, $l] = [$f2, $l2];
}
/**
* 2023-07-28 We skip the first entry: `df_bt`.
Expand Down

0 comments on commit 3534ff7

Please sign in to comment.