| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | protected function validateName(ValidationContext $context, $node): void |
||
| 17 | { |
||
| 18 | // Ensure names are valid, however introspection types opt out. |
||
| 19 | /** @noinspection PhpUndefinedMethodInspection */ |
||
| 20 | $error = isValidNameError($node->getName(), $node); |
||
| 21 | |||
| 22 | if (null !== $error) { |
||
| 23 | $context->reportError($error); |
||
| 24 | } |
||
| 27 |