| 1 | <?php |
||
| 5 | class PaymentRepository extends EntityRepository |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @param $id |
||
| 9 | * |
||
| 10 | * @return null|Payment |
||
| 11 | */ |
||
| 12 | public function findByOrderIdOrAltapayId($id): ?Payment |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @param array $ids |
||
| 31 | * @return array|Payment[] |
||
| 32 | */ |
||
| 33 | public function findByIds(array $ids) : array |
||
| 41 | } |
||
| 42 |
This check looks for function or method calls that always return null and whose return value is assigned to a variable.
The method
getObject()can return nothing but null, so it makes no sense to assign that value to a variable.The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.