| Total Complexity | 3 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | final class MethodAdded implements InterfaceBased |
||
| 19 | { |
||
| 20 | public function compare(ReflectionClass $fromInterface, ReflectionClass $toInterface) : Changes |
||
| 42 | } |
||
| 43 | |||
| 44 | /** @return ReflectionMethod[] indexed by lowercase method name */ |
||
| 45 | private function methods(ReflectionClass $interface) : array |
||
| 57 |
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.