Skip to content

Commit 44df068

Browse files
author
İsmail BASKIN
committed
Avoid short array syntax for php5.3 compatibility.
1 parent 7002e1f commit 44df068

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/ReCaptcha/Response.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public static function fromJson($json)
6464
}
6565

6666
if (isset($responseData['success']) && $responseData['success'] == true) {
67-
return new Response(true, [], isset($responseData['hostname']) ? $responseData['hostname'] : '');
67+
return new Response(true, array(), isset($responseData['hostname']) ? $responseData['hostname'] : '');
6868
}
6969

7070
if (isset($responseData['error-codes']) && is_array($responseData['error-codes'])) {

tests/ReCaptcha/ResponseTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function testIsSuccess()
5858
$response = new Response(false);
5959
$this->assertFalse($response->isSuccess());
6060

61-
$response = new Response(true, [], 'example.com');
61+
$response = new Response(true, array(), 'example.com');
6262
$this->assertEquals('example.com', $response->getHostName());
6363
}
6464

0 commit comments

Comments
 (0)