Skip to content

[Bug]: dd and dump breaks support for source file in terminal and browser #1445

@pintend

Description

@pintend

Platform

macOS

Operating system version

macOS Sequoia 15.5

System architecture

ARM64 (M1, M2, etc)

Herd Version

1.20.3 (Build: 48)

PHP Version

PHP 8.3.22 (cli) (built: Jun 6 2025 00:21:27) (NTS)

Bug description

When Herd is intercepting dumps it uses its own dump and dd functions instead of the ones included in your projects vendor folder. These implementations included in Herd does not have support for source file information in tinker (terminal) or the browser laravel/framework#44211.

It DOES show the source file information in Herd dumps, however it should also show in tinker and in html outputs like Laravel default.

Steps to reproduce

Enable dumps interception, use dd() or dump() in tinker or a controller and it just renders the output and not the source file (source file is still rendered in the Herd application)

Disable dumps interception, dumps are back to Laravel default behavior and shows the source file and line in the terminal and browser.

Relevant log output

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