| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
When we have a cycle such as `declare('Foo', Foo)` PHP will bail at
runtime because it will evaluate `Foo` before `declare`. Phpactor will
evalute `Foo` lazily - but even if it located it eagerly (bad for
performance) the indxer _will find_ the constant, because the indexer
doesn't know that the value causes a cycle.
for now we just avoid resolving values if they are QualifiedName's.
| Back | FazBrowse Home | New Git URL |
When we have a cycle such as declare('Foo', Foo) PHP will bail at runtime because it will evaluate Foo before declare. Phpactor will evalute Foo lazily - but even if it located it eagerly (bad for performance) the indxer will find the constant, because the indexer doesn't know that the value causes a cycle.
for now we only evaluate literal values.
Fixes #2913