TysonAndre / phan

Phan is a static analyzer for PHP. Phan prefers to avoid false-positives and attempts to prove incorrectness rather than correctness.
Other
0 stars 0 forks source link

Create a php 5.6 backport? #42

Closed TysonAndre closed 6 years ago

TysonAndre commented 7 years ago

Strip out all return types, find any other incompatibilities in methods.

Requires php-parser-to-php-ast extension to be completed

This helps make it easier to try out phan on old projects with syntax incompatible with php 7, as well as for projects with extensions which don't have php 7 ports (reflection info isn't as useful)

TysonAndre commented 7 years ago

This is a work in progress on the php5 branch. The null coalescing operator replacement needs to be replaced with something correct, and Issue::fromType(Type)(args) is invalid in php5, so that had to be patched