Skip to content

Commit

Permalink
10.2.5: #317
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Aug 5, 2023
1 parent 1326f9d commit 1f8510e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions Core/lib/array/select.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ function df_column($c, $fv, $fk = null):array {return df_map_kr($c, function($k,
* @see dfad()
* @see dfaoc()
* @see dfo()
* @used-by df_caller_module()
* @used-by df_bt_entry_file()
* @used-by df_bt_entry_func()
* @used-by df_bt_entry_line()
Expand Down
3 changes: 2 additions & 1 deletion Core/lib/caller.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,5 +172,6 @@ function df_caller_module(int $o = 0):string {
# https://github.com/mage2pro/core/issues/268
|| df_bt_entry_is_phtml($e)
;}));
return df_bt_entry_is_method($e) ? df_module_name(df_cc_method($e)) : df_module_name_by_path(df_bt_entry_file($e));
# 2023-08-05 «Module 'Monolog_Logger::addRecord' is not correctly registered»: https://github.com/mage2pro/core/issues/317
return df_bt_entry_is_method($e) ? df_module_name(df_bt_entry_class($e)) : df_module_name_by_path(df_bt_entry_file($e));
}
1 change: 0 additions & 1 deletion Core/lib/reflection/text/cc.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ function df_cc_class_uc(...$a):string {return df_cc_class(df_ucfirst(dfa_flatten
/**
* 2016-08-10 Если класс не указан, то вернёт название функции. Поэтому в качестве $a1 можно передавать `null`.
* @used-by df_caller_m()
* @used-by df_caller_module()
* @used-by df_rest_action()
* @used-by \Df\Qa\Trace\Frame::method()
* @param string|object|null|array(object|string)|array(string = string) $a1
Expand Down
7 changes: 7 additions & 0 deletions Qa/lib/bt/entry.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
<?php
/**
* 2023-08-05
* @see \Df\Qa\Trace\Frame::class_()
* @used-by df_caller_module()
*/
function df_bt_entry_class(array $e):string {return dfa($e, 'class', '');}

/**
* 2023-07-26 "Implement `df_bt_entry_file()`": https://github.com/mage2pro/core/issues/279
* @see \Df\Qa\Trace\Frame::file()
Expand Down

0 comments on commit 1f8510e

Please sign in to comment.