Static Analysis 1

PHP Tools [?] extends Visual Studio with set of advanced features to work more efficiently with PHP code.

Static Analysis 1

Postby BladeMF » December 6th, 2012, 2:23 pm

Right, it's my productive day today. :idea: :lol:

Can you make an analysis that checks all overriden implementations of a function (from top to bottom) and check if the argument list and type hints are all the same? And then check if they all return (or not) a value. I know that you cannot (or maybe you can!) check all code paths to see if the function should or should not return a value, but maybe look for a 'return' keyword?

We have plenty of bugs where the overriding function does not return what the base function does or has a different set of arguments.

I also recently had a bug with mispelled property name. :evil: Checking declared properties (including @property tags) is also a nice thing. Maybe a warning this time, but worth a check!
Welcome to the zone where normal things don't happen very often.
BladeMF
 
Posts: 346
Joined: October 10th, 2012, 7:14 am

Return to PHP Tools

Who is online

Users browsing this forum: No registered users and 46 guests

cron

User Control Panel

Login

Who is online

In total there are 46 users online :: 0 registered, 0 hidden and 46 guests (based on users active over the past 5 minutes)
Most users ever online was 256 on March 28th, 2024, 9:42 am

Users browsing this forum: No registered users and 46 guests