-
Notifications
You must be signed in to change notification settings - Fork 195
Do not emit deprecation notices for 405 errors #420
Conversation
As reported in zendframework#419, when using zend-stratigility 1.3 with Expressive 1.0, 405 errors are also now accompanied by deprecation notices. Since this is default functionality, we need to swallow those deprecation notices for now.
- Updated .docheader to no longer require `%date%` - Updated date range for updated files
A new method introduced in a maintenance release, and called by the whoops runner when invoked leads to breaking tests. We now test if that method exists, and, if so, mock it.
…tigility These versions have `Next` require stratigility request/response decorators internally; as such, the new test now creates those to pass to the route middleware.
@@ -1,7 +1,7 @@ | |||
<?php | |||
/** | |||
* @see https://github.com/zendframework/zend-expressive for the canonical source repository | |||
* @copyright Copyright (c) 2016 Zend Technologies USA Inc. (http://www.zend.com) | |||
* @copyright Copyright (c) 2016-2017 Zend Technologies USA Inc. (http://www.zend.com) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
File is not changed, year shouldn't be then changed here. I hope we can do some auto checks on it, or at least some scripts to update it automatically - maybe on merge?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For some reason, this one kept getting flagged until I changed the date range. I have no idea why, and I didn't want to waste more time on it.
@@ -15,6 +15,7 @@ | |||
use Psr\Http\Message\ResponseInterface; | |||
use Psr\Http\Message\ServerRequestInterface; | |||
use Psr\Http\Message\StreamInterface; | |||
use ReflectionClass; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As this file is changed, year in header license notes should be updated to 2017.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, updating now.
Forward port #420 Conflicts: CHANGELOG.md src/Application.php
As reported in #419, when using zend-stratigility 1.3 with Expressive 1.0, 405 errors are also now accompanied by deprecation notices. Since this is default functionality, we need to swallow those deprecation notices for now.