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 623b40c commit da22fbb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/code/local/Df/Qa/lib/log.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ function df_log($v, $m = null, array $d = [], string $suf = ''):void {
*/
function df_log_l($m, $p2, $p3 = [], string $p4 = ''):void {
/** @var T|null $t */ /** @var array|string|mixed $d */ /** @var string $suf */ /** @var string $pref */
list($t, $d, $suf, $pref) = df_is_th($p2) ? [$p2, $p3, $p4, ''] : [null, $p2, df_ets($p3), $p4];
# 2024-06-06 "Use the «Symmetric array destructuring» PHP 7.1 feature": https://github.com/mage2pro/core/issues/379
[$t, $d, $suf, $pref] = df_is_th($p2) ? [$p2, $p3, $p4, ''] : [null, $p2, df_ets($p3), $p4];
$m = $m ?: ($t ? df_caller_module($t) : df_caller_module());
if (!$suf) {
# 2023-07-26
Expand Down

0 comments on commit da22fbb

Please sign in to comment.