Support basic usage of class_alias by ebernhardson · Pull Request #586 · phan/phan

TysonAndre

TysonAndre

TysonAndre

TysonAndre

TysonAndre

@ebernhardson

This supports the most basic form of class_alias, which probably
covers most use cases. It adds aliases for class_alias used in the
global scope with constant string arguments or the class referenced
via the ::class constant.

Fixes phan#521

TysonAndre

TysonAndre added a commit to TysonAndre/phan that referenced this pull request

Jun 18, 2017
This PR is based off of phan#586

- Account for daemon mode
  (Not fully tested with the config setting on yet)
- Parse class_alias original and alias FQSENs in one phase,
  and create the entries in another phase
  (Keeps the number of times each file is parsed the same as before)
- Follow variable naming conventions
- Tests continue to pass.