0.6.1
Bugfixes:
- RequireParentConstructCallRule - fixed checking static method call on an expression, not class name (#92)
- Added fourth parameter to DatePeriod constructor definition (#89)
- Fixed a bunch of issues that emerged while using multiple class reflection extensions:
- DefaultValueTypesAssignedToPropertiesRule - always access native class properties
- TypesAssignedToPropertiesRule - respect local scope when getting the property
- ClassReflection - better scope-aware caching of properties
- ClassReflection - getting a method is also scope-aware
- Define variables from var for further arguments in method call
- Support assigning variables in array keys
- Find variable assigns in left part of
instanceof
- Condition in
switch
statement was not processed and checked - Exclude analysis of traits in files excluded from analysis
- Exclude analysis of traits outside of analysed paths
- Method parameter with type
string
accepts object with__toString()
method (#94)