Skip to content

Commit

Permalink
PHP7 comptible
Browse files Browse the repository at this point in the history
  • Loading branch information
makotokw committed Oct 2, 2016
1 parent e29c29d commit 5dc6360
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Services_JSON/JSON.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ class Amazonjs_JSON
* bubble up with an error, so all return values
* from encode() should be checked with isError()
*/
function Amazonjs_JSON($use = 0)
function __construct($use = 0)
{
$this->use = $use;
}
Expand Down Expand Up @@ -780,7 +780,7 @@ function isError($data, $code = null)

class Amazonjs_JSON_Error extends PEAR_Error
{
function Amazonjs_JSON_Error($message = 'unknown error', $code = null,
function __construct($message = 'unknown error', $code = null,
$mode = null, $options = null, $userinfo = null)
{
parent::PEAR_Error($message, $code, $mode, $options, $userinfo);
Expand All @@ -794,7 +794,7 @@ function Amazonjs_JSON_Error($message = 'unknown error', $code = null,
*/
class Amazonjs_JSON_Error
{
function Amazonjs_JSON_Error($message = 'unknown error', $code = null,
function __construct($message = 'unknown error', $code = null,
$mode = null, $options = null, $userinfo = null)
{

Expand Down

0 comments on commit 5dc6360

Please sign in to comment.