You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
MIR.verify ownflow fails on a local assigned from require in one branch and an array in the other #537
compile failed: MIR.verify: ownflow: $extra read at line 14 in Settings____construct past a representation mismatch (cell vs scalar): the name is live there
compile: front-end (parse/typeck/IR) returned null (rc=65)
Casting both assignments to (array) makes it compile. The same pattern is in yiisoft/config (Composer/ConfigSettings::__construct). A similar case there, $result = $this->buildGroup(...) / $result = $this->merger->merge(...) in a loop inside Config::buildGroup, fails with (arr vs scalar).
Manticore 0.17.0 (ghcr.io/manticorephp/compiler:latest, image built 2026-10-24, Linux x86_64). PHP reference: 8.5.4.
Thanks for a great repro and the package reference. It will help fix the issue faster.
The analyzer, in this specific case, currently cannot guess the real type from the require result. It will probably be complicated, but it seems possible to fix.
Activity
blacktrs commentedon Oct 30, 2026
Thanks for a great repro and the package reference. It will help fix the issue faster.
The analyzer, in this specific case, currently cannot guess the real type from the
requireresult. It will probably be complicated, but it seems possible to fix.Explicit casting should help for now.