Skip to content

Commit b5d9249

Browse files
committed
Support PHP 5.3+
1 parent c37a0d1 commit b5d9249

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

examples/customerSearch.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
require __DIR__ . '/../vendor/autoload.php';
3+
require '../vendor/autoload.php';
44

55
$companyId = 2716; // Company ID
66
$identifier = 'sid:1'; // Identifier
@@ -9,4 +9,4 @@
99
$signer = (new \Kobas\Auth\Signer($companyId, $identifier, $secret));
1010
$client = (new \Kobas\Client($signer));
1111

12-
$request = $client->get('customer/search', ['email' => 'example@example.com']);
12+
$request = $client->get('customer/search', array('email' => 'example@example.com'));

examples/wirelessSocial.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
require __DIR__ . '/../vendor/autoload.php';
3+
require '../vendor/autoload.php';
44

55
$companyId = 2716; // Company ID
66
$identifier = 'imid:1'; // Identifier

src/Kobas/Auth/Signer.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function signRequest($method, $url, array $signed_headers = array(), arra
5050

5151
$signed_headers['Authorization'] = $this->authorization($time, $signature);
5252

53-
$headers = [];
53+
$headers = array();
5454
foreach ($signed_headers as $key => $value) {
5555
$headers[] = $key . ': ' . $value;
5656
}
@@ -313,7 +313,7 @@ public function setCompanyId($company_id)
313313
/**
314314
* @return string
315315
*/
316-
public function getIdentifier(): string
316+
public function getIdentifier()
317317
{
318318
return $this->identifier;
319319
}
@@ -322,7 +322,7 @@ public function getIdentifier(): string
322322
* @param string $identifier
323323
* @return Signer
324324
*/
325-
public function setIdentifier(string $identifier): Signer
325+
public function setIdentifier($identifier)
326326
{
327327
$this->identifier = $identifier;
328328

src/Kobas/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ protected function call($http_method, $route, array $params = array(), array $he
164164
case 'GET':
165165
if (count($params)) {
166166
$url .= "?" . http_build_query($params);
167-
$params = [];
167+
$params = array();
168168
}
169169
break;
170170
}

0 commit comments

Comments
 (0)