Skip to content

Bug sweep 4: crashes, named args and spread, typed properties, hooks, case-insensitive lookup (#263 #459 #460 #462–#469 #472–#474 #476–#480 #482) - #486

Merged
blacktrs merged 28 commits into
mainfrom
fix/bug-sweep-4
Oct 26, 2026
Merged

blacktrs merged 28 commits into
mainfrom
fix/bug-sweep-4

Conversation

@blacktrs

Copy link
Copy Markdown
Contributor

What

Five fix groups from the open-issue triage, merged on top of main (with the tolerant parser, #481).

Crashes

Front end and lookup

Named arguments and spread (one binding path, cherry-picked from the laravel work)

Typed properties

Hooks and objects

Not fixed (stay open)

Evidence

Targeted runs only, on a fresh bin/build of this branch: 25 new cases green; -k prop 206, closure 110, spread_ 41, named 16, hook 8, readonly 8, exception 14, overload 3 all pass; xfail.sh 25 XFAIL, 0 XPASS.

Gates owed

Full AOT suite, tools/difftest.sh, tools/selfhost_fixpoint.sh, Linux gate.

Fixes #263 Fixes #459 Fixes #460 Fixes #462 Fixes #463 Fixes #464 Fixes #465 Fixes #466 Fixes #467 Fixes #468 Fixes #469 Fixes #472 Fixes #473 Fixes #474 Fixes #476 Fixes #477 Fixes #478 Fixes #479 Fixes #480 Fixes #482
Refs #471 #475 #484

Call sites are rewritten to the declared spelling before lowering.

Fixes #473
Fixes #474
… array; name the function in an emit failure
…takes the table path instead of a per-site inline chain
…atch keys to parameter names in spread expansion (#462)
…e scope for readonly

Non-numeric string into a typed int/float property (static and dynamic-name
stores) raises TypeError; $this inside Closure::bind literals is live; a
readonly slot is initialised once; a scalar cell bound to a class-typed
function param raises TypeError.

Fixes #466
Fixes #472
Fixes #484
Refs #471 (re-init guard only covers non-ctor-assigned readonly props)
Refs #475 (repro added, not fixed)
# Conflicts:
#	src/Parser/Parser.php
…ynamic ctors; collect named args into __call arguments

Spread expansion now reads names for any possibly-keyed array operand (cell/erased vec,
assoc), not only the module-flagged folded shape; known-closure spread path binds by name
with defaults for gaps; spreadAheadOfPack defers a string-keyed literal to the emitter;
an undeclared method on a statically known __call class receives the argument list as
written (named keys kept) instead of being packed against another class's variadic.

Fixes #463
Fixes #464
Fixes #465
Fixes #469
Fixes #476
Fixes #477
@blacktrs blacktrs changed the title Bug sweep 4: crashes, named args and spread, typed properties, hooks, case-insensitive lookup (#262 #459 #460 #462–#469 #472–#474 #476–#480 #482 #484) Bug sweep 4: crashes, named args and spread, typed properties, hooks, case-insensitive lookup (#263 #459 #460 #462–#469 #472–#474 #476–#480 #482) Oct 26, 2026
@EduardoMateos

Copy link
Copy Markdown

@blacktrs You’re iterating insanely fast 🔥

@blacktrs

Copy link
Copy Markdown
Contributor Author

@EduardoMateos thanks!
All bug fixes were planned and reviewed beforehand, so it can look too fast 🙂

@blacktrs
blacktrs merged commit 5845b2b into main Oct 26, 2026
36 checks passed
@blacktrs
blacktrs deleted the fix/bug-sweep-4 branch October 26, 2026 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants