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

Commit 52ddf0a

Browse files
committed
Merge branch 'hotfix/583-router-2.4-test-fixes' into release-3.0.0
Forward port #583 Conflicts: CHANGELOG.md src/Container/ApplicationConfigInjectionDelegator.php test/Container/ApplicationConfigInjectionDelegatorTest.php test/Container/ApplicationFactoryTest.php test/Middleware/DispatchMiddlewareTest.php
2 parents 07c830a + db8d510 commit 52ddf0a

File tree

3 files changed

+27
-2
lines changed

3 files changed

+27
-2
lines changed

CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -654,6 +654,31 @@ All notable changes to this project will be documented in this file, in reverse
654654

655655
- Nothing.
656656

657+
## 2.1.1 - 2018-03-09
658+
659+
### Added
660+
661+
- Nothing.
662+
663+
### Changed
664+
665+
- Nothing.
666+
667+
### Deprecated
668+
669+
- Nothing.
670+
671+
### Removed
672+
673+
- Nothing.
674+
675+
### Fixed
676+
677+
- [#583](https://github.com/zendframework/zend-expressive/pull/583) provides a
678+
number of minor fixes and test changes to ensure the component works with the
679+
zend-expressive-router 2.4 version. In particular, configuration-driven routes
680+
will now work properly across all versions, without deprecation notices.
681+
657682
## 2.1.0 - 2017-12-11
658683

659684
### Added

src/Container/ApplicationConfigInjectionDelegator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ public static function injectRoutesFromConfig(Application $application, array $c
182182
continue;
183183
}
184184

185-
$methods = Route::HTTP_METHOD_ANY;
185+
$methods = null;
186186
if (isset($spec['allowed_methods'])) {
187187
$methods = $spec['allowed_methods'];
188188
if (! is_array($methods)) {

test/Container/ApplicationConfigInjectionDelegatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ public static function assertMethodNotAllowedMiddleware(MiddlewareInterface $mid
199199
public function callableMiddlewares()
200200
{
201201
return [
202-
['HelloWorld'],
202+
[InvokableMiddleware::class],
203203
[
204204
function () {
205205
},

0 commit comments

Comments
 (0)