Skip to content

Commit 6fe87e9

Browse files
authored
Merge pull request #550 from FriendsOfSymfony/fix-build
fix regression in unit tests
2 parents c91dbdf + 2dc5521 commit 6fe87e9

File tree

6 files changed

+14
-3
lines changed

6 files changed

+14
-3
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ jobs:
9595

9696
varnish5:
9797
name: PHP ${{ matrix.php }} Legacy Varnish 5
98-
runs-on: ubuntu-18.04
98+
runs-on: ubuntu-20.04
9999
env:
100100
VARNISH_VERSION: '5.1'
101101
VARNISH_MODULES_VERSION: '0.14.0'
@@ -132,7 +132,7 @@ jobs:
132132

133133
varnish4:
134134
name: PHP ${{ matrix.php }} Legacy Varnish 4
135-
runs-on: ubuntu-18.04
135+
runs-on: ubuntu-20.04
136136
env:
137137
VARNISH_VERSION: '4.1'
138138
VARNISH_MODULES_VERSION: '' # varnish modules compilation fails, not sure why

.github/workflows/setup-varnish-legacy.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
set -e
44
echo "### Installing Legacy Varnish $VARNISH_VERSION ###"
5+
curl -A "FOS Github" -o /tmp/libjemalloc1_3.6.0-11_amd64.deb -D - -L -s http://ftp.osuosl.org/pub/ubuntu/pool/universe/j/jemalloc/libjemalloc1_3.6.0-11_amd64.deb
6+
sudo dpkg -i /tmp/libjemalloc1_3.6.0-11_amd64.deb
57
sudo apt-get update
68
sudo apt-get install debian-archive-keyring curl gnupg apt-transport-https
79
VARNISH_VERSION=$VARNISH_VERSION bash -c 'curl -s -L https://packagecloud.io/varnishcache/varnish${VARNISH_VERSION//./}/gpgkey' | sudo apt-key add -

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ Changelog
33

44
See also the [GitHub releases page](https://github.com/FriendsOfSymfony/FOSHttpCache/releases).
55

6+
2.15.2
7+
------
8+
9+
* Declare incompatibility with Symfony 7 because it removes `RequestMatcher`.
10+
611
2.15.1
712
------
813

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@
4040
"symfony/phpunit-bridge": "^5.0 || ^6.0"
4141
},
4242
"conflict": {
43-
"toflar/psr6-symfony-http-cache-store": "<2.2.1"
43+
"toflar/psr6-symfony-http-cache-store": "<2.2.1",
44+
"symfony/http-foundation": ">=7"
4445
},
4546
"suggest": {
4647
"friendsofsymfony/http-cache-bundle": "For integration with the Symfony framework",

src/SymfonyCache/EventDispatchingHttpCache.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ class_exists(CacheEvent::class);
102102
* {@inheritdoc}
103103
*
104104
* Trigger event to alter response before storing it in the cache.
105+
*
106+
* @return void
105107
*/
106108
protected function store(Request $request, Response $response)
107109
{

src/Test/EventDispatchingHttpCacheTestCase.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ protected function getHttpCachePartialMock(array $mockedMethods = null)
5959
'debug' => false,
6060
'default_ttl' => 0,
6161
'private_headers' => ['Authorization', 'Cookie'],
62+
'skip_response_headers' => ['Set-Cookie'],
6263
'allow_reload' => false,
6364
'allow_revalidate' => false,
6465
'stale_while_revalidate' => 2,

0 commit comments

Comments
 (0)