Skip to content
This repository has been archived by the owner on Nov 22, 2020. It is now read-only.

Commit

Permalink
PHP 7.1 compatibility issues
Browse files Browse the repository at this point in the history
  • Loading branch information
dadeke committed Jun 28, 2017
1 parent 8e8ad3d commit f372def
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libraries/JSON.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ class ext_Json
* bubble up with an error, so all return values
* from encode() should be checked with isError()
*/
function ext_Json($use = 0)
function __construct($use = 0)
{
$this->use = $use;
}
Expand Down Expand Up @@ -839,7 +839,7 @@ function isError($data, $code = null)

class Services_JSON_Error extends PEAR_Error
{
function Services_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 @@ -853,7 +853,7 @@ function Services_JSON_Error($message = 'unknown error', $code = null,
*/
class Services_JSON_Error
{
function Services_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 f372def

Please sign in to comment.