Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Router method failure gives deprecation notice when using raiseThrowables #419

@moderndeveloperllc

Description

@moderndeveloperllc

Not sure if this is something that can/will be worked out in the 1.0.x series.

Setup:
expressive 1.0.5
stratigility 1.3.1
Procedural configuration with raiseThrowables()
Using ErrorHandler-style catching - no ErrorMiddleware

If I have a request that hits Application.php:423, it returns a $next($request, $response, 405); which in Next.php will display the deprecation notice. This is the stacktrace from the point of failure:

"/blah/vendor/zendframework/zend-stratigility/src/Next.php:435",
"/blah/vendor/zendframework/zend-stratigility/src/Next.php:422",
"/blah/vendor/zendframework/zend-stratigility/src/Next.php:119",
"/blah/vendor/zendframework/zend-expressive/src/Application.php:426",

The code for 1.1.x is checking against $this->raiseThrowables. Not sure this could be backported without breaking those who are using stratigility 1.2.x.

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