- Fixed some false positives for
func_get_args
/func_get_arg
calls
- Fixed fatal error when trying to access
ContainerBuilder::$outputFormat
on PHP 5.3.3
- Fixed some false positives related to yield usage in expression context
- Fixed false positives for nested by-reference foreach loops wrapped in functions or class methods
- Fixed function redeclaration false positives when a declaration is wrapped in a function_exists condition
- Fixed processing of namespaced files starting with shebang
- Added detection of continue/break outside of loop/switch contexts
- Added JSON output format
- Added warning for setting cookies with empty names
- Added color differentiation between error messages and warnings
- Added the
--level (-l)
option to specify minimum reported issue level - Added the
--relative-paths (-r)
option to output file paths relative to checked directories - Added the
--integer-size
option to specify integer size of the target system - Fixed detection of non-lowercase function names
- Fixed notice in
PHP4ConstructorVisitor
caused by anonymous classes
- Fixed
ReflectionException
inContainerBuilder::addVisitors
on PHP 5.3.3