log icon indicating copy to clipboard operation
log copied to clipboard

getTrace() thows Undefined array key "file"

Open olegbaturin opened this issue 1 year ago • 0 comments

https://github.com/yiisoft/log/blob/e0551896a54a91dd3c15d415167d0402c7bf9aaf/src/Message/Formatter.php#L243

Stack frame can arrives without file and line keys.

[
  'function' => 'signin'
  'class' => 'App\\Controller\\Api\\V1\\Auth\\AuthController'
  'type' => '->'
]

What steps will reproduce the problem?

call debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 3) from controller

Additional info

Q A
Version dev-master
PHP version 8.1
Operating system win server 2019

olegbaturin avatar Mar 05 '24 11:03 olegbaturin