Skip to content

Instantly share code, notes, and snippets.

@msjyoo
Last active November 5, 2015 14:14
Show Gist options
  • Save msjyoo/3c195efd1829965e0d9a to your computer and use it in GitHub Desktop.
Save msjyoo/3c195efd1829965e0d9a to your computer and use it in GitHub Desktop.
List of things a PHP Static Analyser / Inspector must accomplish to truly understand the code.
  • Parse all return types of functions through PHPDoc
  • Parse all return types of functions implicitly through return statements. PHPDocs take precedence.
  • Type polymorphism through if, foreach etc. statements

Object Oriented Programming

  • Inheritance constraints verification
  • Inheritance type check
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment