Skip to content

Incorrect createFromPhpError() method? #169

@snapshotpl

Description

@snapshotpl

Every generated exception method e.g. https://github.com/thecodingmachine/safe/blob/master/generated/Exceptions/FilesystemException.php contains createFromPhpError() method where exception is created from json_last_error(). Is it correct behaviour?

Source:

return new self(\json_last_error_msg(), \json_last_error());

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