mirror of
https://github.com/php/php-src.git
synced 2026-03-26 01:02:25 +01:00
These are no longer needed after https://wiki.php.net/rfc/always_enable_json Closes GH-5637
16 lines
309 B
PHP
16 lines
309 B
PHP
--TEST--
|
|
Bug #66025 (Indent wrong when json_encode() called from jsonSerialize function)
|
|
--FILE--
|
|
<?php
|
|
|
|
class Foo implements JsonSerializable {
|
|
public function jsonSerialize() {
|
|
return json_encode([1], JSON_PRETTY_PRINT);
|
|
}
|
|
}
|
|
|
|
echo json_encode([new Foo]), "\n";
|
|
?>
|
|
--EXPECT--
|
|
["[\n 1\n]"]
|