diff options
Diffstat (limited to 'ext/json/tests/bug61978.phpt')
-rw-r--r-- | ext/json/tests/bug61978.phpt | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/ext/json/tests/bug61978.phpt b/ext/json/tests/bug61978.phpt index c34b03f8f7..56b92dc672 100644 --- a/ext/json/tests/bug61978.phpt +++ b/ext/json/tests/bug61978.phpt @@ -6,25 +6,25 @@ Bug #61978 (Object recursion not detected for classes that implement JsonSeriali <?php class JsonTest1 { - public $test; - public $me; - public function __construct() { - $this->test = '123'; - $this->me = $this; - } + public $test; + public $me; + public function __construct() { + $this->test = '123'; + $this->me = $this; + } } class JsonTest2 implements JsonSerializable { - public $test; - public function __construct() { - $this->test = '123'; - } - public function jsonSerialize() { - return array( - 'test' => $this->test, - 'me' => $this - ); - } + public $test; + public function __construct() { + $this->test = '123'; + } + public function jsonSerialize() { + return array( + 'test' => $this->test, + 'me' => $this + ); + } } |