diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-06-20 14:50:13 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-06-20 15:08:49 +0900 |
| commit | 6c30a3e065b4d7f597331b0b79a226f8e3480976 (patch) | |
| tree | 4ccff02af5cf3c692faf0d7f744b4c51d1268430 /crates/shirabe-external-packages/src/symfony/console/exception | |
| parent | dc43cb1c663378130d727d9cee414a6a37433047 (diff) | |
| download | php-shirabe-6c30a3e065b4d7f597331b0b79a226f8e3480976.tar.gz php-shirabe-6c30a3e065b4d7f597331b0b79a226f8e3480976.tar.zst php-shirabe-6c30a3e065b4d7f597331b0b79a226f8e3480976.zip | |
feat(php-shim): implement two-argument json_decode
Was a todo!() that panicked for every command reading composer.json
(validate, status, show, update, ...). Parses via serde_json (built with
preserve_order, so insertion order is kept) and converts to PhpMixed.
Mirrors PHP's flagless json_decode: returns null rather than erroring on
malformed input, and decodes objects to ArrayObject when assoc is false,
to an associative array when true. Out-of-i64 and fractional numbers
become floats, matching PHP's default non-bigint behaviour.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe-external-packages/src/symfony/console/exception')
0 files changed, 0 insertions, 0 deletions
