honeybadger-io / honeybadger-php

PHP library for reporting errors to Honeybadger.io :elephant: :zap:
https://www.honeybadger.io/for/php/?utm_source=github&utm_medium=readme&utm_campaign=php&utm_content=website-url
MIT License
38 stars 21 forks source link

Backtrace format is incorrect #214

Open stympy opened 2 weeks ago

stympy commented 2 weeks ago

We are seeing backtraces reported with this structure:

backtrace:
- - '4'
  - source:
      '119': ''
      '120': "            return (static function () use ($__path, $__data) {"
      '121': "                extract($__data, EXTR_SKIP);"

But they should be like this:

backtrace:
- source:
    '119': ''
    '120': "            return (static function () use ($__path, $__data) {"
    '121': "                extract($__data, EXTR_SKIP);"