github locutusjs/locutus v3.0.23

4 hours ago

Released: 2026-03-16. Diff.
Version rationale: patch for scoped PHP runtime-correctness fixes aligned to the PHP 8.3 parity target.

Fixes

  • Fixed PHP 8.3 parity for several string helpers on null and missing-argument cases:
    • trim(null) now returns '' instead of 'null'
    • trim, ltrim, rtrim, strval, strtolower, strtoupper, and strlen now throw PHP-style missing-argument errors instead of coercing undefined
  • Fixed php/array/array_merge_recursive so it follows PHP's variadic contract, returning an empty array for zero arguments and merging more than two arrays correctly.

Don't miss a new locutus release

NewReleases is sending notifications on new releases.