mediact / dependency-guard

Static production dependency analysis.
MIT License
83 stars 5 forks source link

1.0.4 - Analyze PHP symbols without loading their files #22

Closed janmartenjongerius closed 6 years ago

janmartenjongerius commented 6 years ago

This pull request fixes #21

Issue #21 describes how the files that are analyzed are loaded in the active code base. When DependencyGuard is used to analyze files that are also present in the active code base, they can conflict and cause fatal errors.

This pull requests implements BetterReflection to determine all necessary information about code symbols without loading in their files, through the autoloader.

N.B.: This pull request should not be merged before @Idrinth confirms this solves the issue.

janmartenjongerius commented 6 years ago

It seems the patch in it's current state is insufficient. Please allow a few days for this to be picked up again.