Skip to content

getTrace() thows Undefined array key "file" #98

@olegbaturin

Description

@olegbaturin

static fn (array $trace): string => "in {$trace['file']}:{$trace['line']}",

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions