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
PHP _dependency_capture captures multi-line code blocks as import tokens #3609
The capture seems to start at an include/require/use-like word inside a comment or identifier (_doing_it_wrong, aliasInclude, "file that should have been included") and run to the next ;.
Impact
The junk tokens feed the supply-chain firewall (imports_unknown), the typosquat radar and the import graph. They also make any change to the comma/brace splitting ripple through PHP golden masters; #3595 had to guard against exactly that.
Fix direction
Anchor the capture to statement position (include/require/include_once/require_once/use as a whole word at statement start, or after ;/{/}) and bound the captured expression to one line. Check import_graph_accuracy.py php (guzzle: 99.0/100 today) and the golden-master scope.
Activity
fix(php): statement-anchored, one-line _dependency_capture (#3609) (#…