| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | public function enterFragmentSpread(FragmentSpreadNode $node): VisitorResult |
||
| 22 | { |
||
| 23 | $fragmentName = $node->getNameValue(); |
||
| 24 | $fragment = $this->context->getFragment($fragmentName); |
||
|
|
|||
| 25 | |||
| 26 | if (null === $fragment) { |
||
| 27 | $this->context->reportError( |
||
| 28 | new ValidationException(unknownFragmentMessage($fragmentName), [$node->getName()]) |
||
| 29 | ); |
||
| 30 | } |
||
| 31 | |||
| 32 | return new VisitorResult($node); |
||
| 33 | } |
||
| 35 |