| Total Lines | 9 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | public function testExtendingClassWithOldSignatureStillWorks() : void |
||
| 12 | { |
||
| 13 | $object = new class () extends ClassMetadataInfoTest { |
||
| 14 | public function whatever(ClassMetadataInfo $cm) : bool |
||
| 15 | { |
||
| 16 | return true; |
||
| 17 | } |
||
| 18 | }; |
||
| 19 | $this->assertTrue($object->whatever(new ClassMetadata('MyEntity'))); |
||
| 20 | } |
||
| 38 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.