Skip to content

Commit e05e03f

Browse files
committed
test: Fix deprecation warning about parameter order
> PHP Deprecated: Optional parameter $reqHeaders declared before required > parameter $expectHeaders is implicitly treated as a required parameter. > > in /test/Unit.php on line 70
1 parent de0fe4c commit e05e03f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/Unit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public static function test( $name, $actual, $expected ) {
6767
}
6868
}
6969

70-
public static function testHttp( $server, $path, array $reqHeaders = [], array $expectHeaders, $expectBody = null ) {
70+
public static function testHttp( $server, $path, array $reqHeaders, array $expectHeaders, $expectBody = null ) {
7171
try {
7272
$resp = jq_req( "http://{$server}{$path}", $reqHeaders );
7373
foreach ( $expectHeaders as $key => $val ) {

0 commit comments

Comments
 (0)