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
incorrect type inference with dependent types #14211
hmm I think the root cause of this bug is not the change of phpstan/phpstan-src@c5bfadb but a deeper bug in conditional type handling, which got accidentally compensated by the always beeing invoked TypeCombinator::intersect calls which no longer happen after said commit
Activity
VincentLanglet commentedon Feb 28, 2026
cc @staabm
staabm commentedon Feb 28, 2026
hmm I think the root cause of this bug is not the change of phpstan/phpstan-src@c5bfadb but a deeper bug in conditional type handling, which got accidentally compensated by the always beeing invoked
TypeCombinator::intersectcalls which no longer happen after said commitFix incorrect dependent type inference after repeated boolean checks
staabm commentedon Feb 28, 2026
@claudepache thanks for testing non released work and reporting regressions.
Thats very valuable
MacGritsch commentedon Mar 3, 2026
#14117 might be a duplicate of this one?
Add regression tests for related dependent type narrowing issues
phpstan-bot commentedon Apr 1, 2026
Closed via merging phpstan/phpstan-src#5373
github-actions commentedon May 3, 2026
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.