@@ -188,8 +188,6 @@ public function testGetHttpHeaders(
188188 string $ captchaCsp ,
189189 string |null $ expectedFrameOptions ,
190190 string $ expectedCsp ,
191- string $ expectedXCsp ,
192- string $ expectedWebKitCsp ,
193191 ): void {
194192 $ header = $ this ->getNewHeaderInstance ();
195193
@@ -204,8 +202,6 @@ public function testGetHttpHeaders(
204202 'X-Frame-Options ' => $ expectedFrameOptions ?? '' ,
205203 'Referrer-Policy ' => 'same-origin ' ,
206204 'Content-Security-Policy ' => $ expectedCsp ,
207- 'X-Content-Security-Policy ' => $ expectedXCsp ,
208- 'X-WebKit-CSP ' => $ expectedWebKitCsp ,
209205 'X-XSS-Protection ' => '1; mode=block ' ,
210206 'X-Content-Type-Options ' => 'nosniff ' ,
211207 'X-Permitted-Cross-Domain-Policies ' => 'none ' ,
@@ -224,7 +220,7 @@ public function testGetHttpHeaders(
224220 self ::assertSame ($ expected , $ header ->getHttpHeaders (MockClock::from ('2015-10-21T05:28:00-02:00 ' )));
225221 }
226222
227- /** @return mixed[][] */
223+ /** @psalm- return list<array{string|bool, string, string, string, string, string|null, string}> */
228224 public static function providerForTestGetHttpHeaders (): array
229225 {
230226 return [
@@ -238,11 +234,6 @@ public static function providerForTestGetHttpHeaders(): array
238234 'default-src \'self \' ;script-src \'self \' \'unsafe-inline \' \'unsafe-eval \' ; '
239235 . 'style-src \'self \' \'unsafe-inline \' ;img-src \'self \' data: tile.openstreetmap.org; '
240236 . 'object-src \'none \'; ' ,
241- 'default-src \'self \' ;options inline-script eval-script;referrer no-referrer; '
242- . 'img-src \'self \' data: tile.openstreetmap.org;object-src \'none \'; ' ,
243- 'default-src \'self \' ;script-src \'self \' \'unsafe-inline \' \'unsafe-eval \'; '
244- . 'referrer no-referrer;style-src \'self \' \'unsafe-inline \' ; '
245- . 'img-src \'self \' data: tile.openstreetmap.org;object-src \'none \'; ' ,
246237 ],
247238 [
248239 'sameorigin ' ,
@@ -257,14 +248,6 @@ public static function providerForTestGetHttpHeaders(): array
257248 . 'style-src \'self \' \'unsafe-inline \' captcha.tld csp.tld example.com example.net; '
258249 . 'img-src \'self \' data: example.com example.net tile.openstreetmap.org captcha.tld csp.tld ; '
259250 . 'object-src \'none \'; ' ,
260- 'default-src \'self \' captcha.tld csp.tld example.com example.net; '
261- . 'options inline-script eval-script;referrer no-referrer;img-src \'self \' data: example.com '
262- . 'example.net tile.openstreetmap.org captcha.tld csp.tld ;object-src \'none \'; ' ,
263- 'default-src \'self \' captcha.tld csp.tld example.com example.net;script-src \'self \' '
264- . 'captcha.tld csp.tld example.com example.net \'unsafe-inline \' \'unsafe-eval \'; '
265- . 'referrer no-referrer;style-src \'self \' \'unsafe-inline \' captcha.tld csp.tld ; '
266- . 'img-src \'self \' data: example.com example.net tile.openstreetmap.org captcha.tld csp.tld ; '
267- . 'object-src \'none \'; ' ,
268251 ],
269252 [
270253 true ,
@@ -277,13 +260,6 @@ public static function providerForTestGetHttpHeaders(): array
277260 . 'script-src \'self \' \'unsafe-inline \' \'unsafe-eval \' captcha.tld csp.tld ; '
278261 . 'style-src \'self \' \'unsafe-inline \' captcha.tld csp.tld ; '
279262 . 'img-src \'self \' data: tile.openstreetmap.org captcha.tld csp.tld ;object-src \'none \'; ' ,
280- 'default-src \'self \' captcha.tld csp.tld ; '
281- . 'options inline-script eval-script;referrer no-referrer; '
282- . 'img-src \'self \' data: tile.openstreetmap.org captcha.tld csp.tld ;object-src \'none \'; ' ,
283- 'default-src \'self \' captcha.tld csp.tld ; '
284- . 'script-src \'self \' captcha.tld csp.tld \'unsafe-inline \' \'unsafe-eval \'; '
285- . 'referrer no-referrer;style-src \'self \' \'unsafe-inline \' captcha.tld csp.tld ; '
286- . 'img-src \'self \' data: tile.openstreetmap.org captcha.tld csp.tld ;object-src \'none \'; ' ,
287263 ],
288264 ];
289265 }
0 commit comments