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