Skip to content

Commit 222821c

Browse files
authored
Remove redundant setAccessible methods (#5811)
1 parent 45ee94a commit 222821c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/ServerRequestTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@
3636
* @coversNothing
3737
*/
3838
#[CoversNothing]
39+
/**
40+
* @internal
41+
* @coversNothing
42+
*/
3943
class ServerRequestTest extends TestCase
4044
{
4145
protected function tearDown(): void
@@ -166,7 +170,6 @@ public function testParseHost()
166170
$hostStrIPv6 = '[fe80::a464:1aff:fe88:7b5a]:9502';
167171
$objReflectClass = new ReflectionClass('Hyperf\HttpMessage\Server\Request');
168172
$method = $objReflectClass->getMethod('parseHost');
169-
$method->setAccessible(true);
170173

171174
$resIPv4 = $method->invokeArgs(null, [$hostStrIPv4]);
172175
$this->assertSame('192.168.119.100', $resIPv4[0]);

0 commit comments

Comments
 (0)