diff options
Diffstat (limited to 'ext/json/tests/bug71835.phpt')
-rw-r--r-- | ext/json/tests/bug71835.phpt | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/json/tests/bug71835.phpt b/ext/json/tests/bug71835.phpt index dbe313b70c..334c84c595 100644 --- a/ext/json/tests/bug71835.phpt +++ b/ext/json/tests/bug71835.phpt @@ -5,18 +5,18 @@ Bug #71835 (json_encode sometimes incorrectly detects recursion with JsonSeriali --FILE-- <?php class SomeClass implements JsonSerializable { - public function jsonSerialize() { - return [get_object_vars($this)]; - } + public function jsonSerialize() { + return [get_object_vars($this)]; + } } $class = new SomeClass; $arr = [$class]; var_dump(json_encode($arr)); class SomeClass2 implements JsonSerializable { - public function jsonSerialize() { - return [(array)$this]; - } + public function jsonSerialize() { + return [(array)$this]; + } } $class = new SomeClass2; $arr = [$class]; |