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
For untyped parameters, Zend’s ReflectionParameter::hasType() is false (no type object). The VM reports hasType()===true with getType() stringifying as mixed (2026-07-22). Typed / nullable / explicit mixed params already match.
Repro
Zend 8.2+
VM (2026-07-22)
function f(int $a, $b, ?string $c, mixed $d){} → $bhasType / type
Activity
PurHur commentedon Jul 22, 2026
claim: PHP Compiler STD Lib Advanced — batch (issues #22127, #22108, #22145, #22064, #22144; sequential PRs)
Queued: ReflectionParameter::hasType() for untyped params.
PurHur commentedon Jul 22, 2026
claim: PHP Compiler STD Lib Advanced — starting #22064 after #22145 merged (PR #22156).
Fixing ReflectionParameter::hasType() for untyped params (php-src-strict).
Stdlib: ReflectionParameter::hasType false for untyped params (#22064) (
PurHur commentedon Jul 22, 2026
merged: #22157
Verification: untyped
hasType=0; explicit mixed/nullable/int unchanged. phpunit OK.Batch remaining (optional next run): #22144 ReflectionFunction location/namespace API