DEV Community

Discussion on: What's your Developer Story?

Collapse
 
monknomo profile image
Gunnar Gissel

I really enjoyed your story. Sounds like you've done some pretty cool things. How did you tackle static analysis of a language like PHP?

Collapse
 
silwing profile image
Silwing

I'm happy to hear you enjoyed my story.
We did some simple static analysis of simple types (boolean, integer, string) keeping track of what type was assigned to each variable during the code flow.

Our main focus was on arrays. Since in PHP arrays actually cover both traditional lists as well as maps. So based on the assigned keys and values in arrays we classified them as either of those subtypes.

Furthermore we created a plugin for IntelliJ which used our analysis to provide helpful tips for the user.