| Total Complexity | 3 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | final class MethodAdded implements InterfaceBased |
||
| 13 | { |
||
| 14 | public function compare(ReflectionClass $fromInterface, ReflectionClass $toInterface) : Changes |
||
| 36 | } |
||
| 37 | |||
| 38 | /** @return ReflectionMethod[] indexed by lowercase method name */ |
||
| 39 | private function methods(ReflectionClass $interface) : array |
||
| 51 |
This check marks implicit conversions of arrays to boolean values in a comparison. While in PHP an empty array is considered to be equal (but not identical) to false, this is not always apparent.
Consider making the comparison explicit by using
empty(..)or! empty(...)instead.