| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 36 | public function __construct( |
||
| 37 | EntitiesArgumentConverter $entitiesArgumentConverter, |
||
| 38 | EntityLoader $entityLoader, |
||
| 39 | AssociationTree $associationTree, |
||
| 40 | ?string $entityClassName |
||
| 41 | ) { |
||
| 42 | $this->entitiesArgumentConverter = $entitiesArgumentConverter; |
||
| 43 | $this->entityLoader = $entityLoader; |
||
| 44 | $this->associationTree = $associationTree; |
||
| 45 | $this->entityClassName = $entityClassName; |
||
| 46 | } |
||
| 80 |
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.