Skip to content

Catch Throwable instead of Exception (for PHP7) #3

Open

Description

@pascal-hofmann

With PHP7 it is now possible to catch all types of errors by catching Throwable. This middleware should be changed accordingly.

Activity

  1. tylers-username commented on Mar 1, 2019

    @tylers-username

    Has this become a configuration option yet?

  2. moufmouf commented on Mar 1, 2019

    @moufmouf
    Member

    I'm not really maintaining this package anymore as stackphp has been superseded by PSR-15.
    But if you need it, you can open a PR and I'll hapilly accept it.
    Just make sur to catch both \Exception and \Throwable so that it works in both PHP 5 and PHP 7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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