Skip to content

Commit 8335e8f

Browse files
committed
fix symfony 4 compatibility
1 parent 06bf3a5 commit 8335e8f

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ See also the [GitHub releases page](https://github.com/FriendsOfSymfony/FOSHttpC
66
2.x
77
===
88

9+
2.16.1
10+
------
11+
12+
### Fixed
13+
14+
* The new `EventDispatchingHttpCache::forward` method added in 2.16.0 was not
15+
compatible with Symfony 4.4. Adjusted the signature to make it compatible.
16+
917
2.16.0
1018
------
1119

src/SymfonyCache/EventDispatchingHttpCache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ protected function invalidate(Request $request, $catch = false): Response
130130
return parent::invalidate($request, $catch);
131131
}
132132

133-
protected function forward(Request $request, bool $catch = false, ?Response $entry = null): Response
133+
protected function forward(Request $request, $catch = false, ?Response $entry = null): Response
134134
{
135135
// do not abort early, if $entry is set this is a validation request
136136
$this->dispatch(Events::PRE_FORWARD, $request, $entry);

0 commit comments

Comments
 (0)