aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-php-shim/src/openssl.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-06-27 18:55:18 +0900
committernsfisis <nsfisis@gmail.com>2026-06-27 18:55:18 +0900
commit7c847bf896e80d028c48973b15b681203a1509c1 (patch)
tree468189bce5c269828306f739fc00985dedd74fbb /crates/shirabe-php-shim/src/openssl.rs
parent0d6cd1b3b5783c03dd8520ac65e9156d476a7a64 (diff)
downloadphp-shirabe-7c847bf896e80d028c48973b15b681203a1509c1.tar.gz
php-shirabe-7c847bf896e80d028c48973b15b681203a1509c1.tar.zst
php-shirabe-7c847bf896e80d028c48973b15b681203a1509c1.zip
fix(php-shim): encode empty PhpMixed::Array as []
PHP arrays do not distinguish an empty map from an empty list, and json_encode([]) always emits []. The Serialize impl emitted {} for an empty associative array, which diverged from Composer when computing the lock file content-hash for a composer.json with an empty require. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe-php-shim/src/openssl.rs')
0 files changed, 0 insertions, 0 deletions