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

Remove "final" declaration from ErrorHandler #185

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ details.

### Changed

- Nothing.
- [#185](https://github.com/zendframework/zend-stratigility/pull/185) removes the "final" declaration from the `ErrorHandler` class, to allow
more easily mocking it for testing.

### Deprecated

Expand Down
4 changes: 2 additions & 2 deletions src/Middleware/ErrorHandler.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* @see https://github.com/zendframework/zend-stratigility for the canonical source repository
* @copyright Copyright (c) 2016-2018 Zend Technologies USA Inc. (https://www.zend.com)
* @copyright Copyright (c) 2016-2019 Zend Technologies USA Inc. (https://www.zend.com)
* @license https://github.com/zendframework/zend-stratigility/blob/master/LICENSE.md New BSD License
*/

Expand Down Expand Up @@ -68,7 +68,7 @@
* Listeners are attached using the attachListener() method, and triggered
* in the order attached.
*/
final class ErrorHandler implements MiddlewareInterface
class ErrorHandler implements MiddlewareInterface
{
/**
* @var callable[]
Expand Down