Skip to content

Commit 98372f9

Browse files
committed
test(HTTP): fix PHPStan types in IncomingRequestTest
1 parent fd000ea commit 98372f9

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

tests/system/HTTP/IncomingRequestTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,11 @@ public function testIsAJAX(): void
750750
$this->assertTrue($this->request->isAJAX());
751751
}
752752

753+
/**
754+
* @param array<string, string> $server
755+
* @param array<string, string> $proxyIPs
756+
* @param array<string, string> $headers
757+
*/
753758
#[DataProvider('provideIsSecure')]
754759
public function testIsSecure(array $server, array $proxyIPs, array $headers, bool $expected): void
755760
{
@@ -771,6 +776,9 @@ public function testIsSecure(array $server, array $proxyIPs, array $headers, boo
771776
$this->assertSame($expected, $request->isSecure());
772777
}
773778

779+
/**
780+
* @return iterable<string, array{server: array<string, string>, proxyIPs: array<string, string>, headers: array<string, string>, expected: bool}>
781+
*/
774782
public static function provideIsSecure(): iterable
775783
{
776784
yield from [

0 commit comments

Comments
 (0)