1 | <?php |
||
26 | class Extension extends BaseExtension |
||
27 | { |
||
28 | /** |
||
29 | * @var string Path to graphql schema file |
||
30 | */ |
||
31 | private const GRAPHQL_DATETIME = __DIR__ . '/../resources/datetime.graphqls'; |
||
32 | |||
33 | /** |
||
34 | * @param Compiler $compiler |
||
35 | * @throws \Railt\Io\Exception\NotReadableException |
||
36 | */ |
||
37 | public function boot(Compiler $compiler): void |
||
43 | |||
44 | /** |
||
45 | * @param Events $listener |
||
46 | * @param Compiler $compiler |
||
47 | * @param RouterInterface $router |
||
48 | */ |
||
49 | private function listen(Events $listener, Compiler $compiler, RouterInterface $router): void |
||
64 | |||
65 | /** |
||
66 | * @param TypeDefinition $type |
||
67 | * @return bool |
||
68 | */ |
||
69 | private function isCarbonField(TypeDefinition $type): bool |
||
73 | |||
74 | /** |
||
75 | * @param Compiler $compiler |
||
76 | * @param FieldDefinition|FieldBuilder|TypeDefinition $field |
||
77 | */ |
||
78 | private function extend(Compiler $compiler, FieldDefinition $field): void |
||
84 | } |
||
85 |
This check looks at variables that are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.