Skip to content

Why are stack traces formatted in Java style instead of PHP? #1745

@ruudk

Description

@ruudk

I noticed that stack traces are produced in Java style instead of regular PHP styling.

Why is this?

/**
* Formats an exception in a java-like format.
*
* @param Throwable $e exception to format
* @return string formatted exception
*
* @see https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Throwable.html#printStackTrace()
*/
public static function format(Throwable $e): string

It was last changed in #422

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions