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
Commit 68c2e4e
Browse filesBrowse the repository at this point in the historyBrowse files
Keep optional groups optional within a matched regex alternation branch
When building the tagged union for a single top-level alternation, the
groups of the matched branch were forced non-optional, which also dropped
their own optional quantifiers, e.g. `(?:-(?P<bar>\d+))?`. Such a group
is now only forced out of the alternation's optionality.
With PREG_UNMATCHED_AS_NULL on PHP 7.2 and 7.3, an unmatched group
followed by a matched one is reported as null, not as an empty string.
Only the trailing unmatched groups are omitted there.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KjXHtRyzsYF9xktijyaRBr
'Offset \'foo2\' on array{0: non-falsy-string, foo1: null, 1: null, bar1: null, 2: null, foo2: non-falsy-string, 3: non-falsy-string, bar2?: non-empty-string, ...} on left side of ?? always exists and is not nullable.',
0 commit comments