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
Include file path and line number in parse error messages
When NodesFactory encounters a PhpParser\Error, catch it and re-throw
a phpDocumentor\Reflection\Exception that includes the source file path
and line number. This gives consumers actionable error context instead
of raw php-parser internals.
The create() method now accepts an optional $filePath parameter, and
Factory\File passes the source path automatically.