| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 34 | public function can_match_with_callable(): void |
||
| 35 | { |
||
| 36 | $this->persistEntities(4); |
||
| 37 | |||
| 38 | $objects = $this->createRepository()->match(function(QueryBuilder $qb) { |
||
| 39 | $qb->where('id > :value') |
||
| 40 | ->setParameter('value', 2) |
||
| 41 | ; |
||
| 42 | }); |
||
| 43 | |||
| 44 | $this->assertCount(2, $objects); |
||
| 45 | $this->assertSame('value 3', \iterator_to_array($objects)[0]->value); |
||
| 46 | $this->assertSame('value 4', \iterator_to_array($objects)[1]->value); |
||
| 47 | } |
||
| 54 |
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.