| Total Lines | 9 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | public function testExtendingClassWithOldSignatureStillWorks() : void |
||
| 21 | { |
||
| 22 | $object = new class () extends ClassMetadataInfoTest { |
||
| 23 | public function whatever(ClassMetadataInfo $cm) : bool |
||
| 24 | { |
||
| 25 | return true; |
||
| 26 | } |
||
| 27 | }; |
||
| 28 | $this->assertTrue($object->whatever(new ClassMetadata('MyEntity'))); |
||
| 29 | } |
||
| 36 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.