Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
53 | public function purge(): void |
||
54 | { |
||
55 | $date = new DateTime(); |
||
56 | $date = $date->sub(DateInterval::createFromDateString('3 years')); |
||
57 | |||
58 | //----- delete |
||
59 | $query = $this->em->createQuery('DELETE VideoGamesRecords\DwhBundle\Entity\Player p WHERE p.date < :date'); |
||
60 | $query->setParameter('date', $date->format('Y-m-d')); |
||
61 | $query->execute(); |
||
62 | } |
||
64 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.