@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | ); |
176 | 176 | } |
177 | 177 | return self::tryAssertPrimitiveAsType($primitiveValue, $type, $discoveredErrors); |
178 | - case ExpressionKind::Null(): |
|
178 | + case ExpressionKind::null(): |
|
179 | 179 | assert($expression instanceof INullExpression); |
180 | 180 | return self::tryAssertNullAsType($expression, $type, $discoveredErrors); |
181 | 181 | case ExpressionKind::Path(): |
@@ -204,7 +204,7 @@ discard block |
||
204 | 204 | // If we don't have the applied function we just assume that it will work. |
205 | 205 | $discoveredErrors = []; |
206 | 206 | return true; |
207 | - case ExpressionKind::If(): |
|
207 | + case ExpressionKind::if(): |
|
208 | 208 | assert($expression instanceof IIfExpression); |
209 | 209 | return self::tryAssertIfAsType($expression, $type, $context, $matchExactly, $discoveredErrors); |
210 | 210 | case ExpressionKind::IsType(): |
@@ -48,7 +48,7 @@ |
||
48 | 48 | ) { |
49 | 49 | $qualifiedName = $element->fullName(); |
50 | 50 | switch ($element->getSchemaElementKind()) { |
51 | - case SchemaElementKind::Function(): |
|
51 | + case SchemaElementKind::function(): |
|
52 | 52 | assert($element instanceof IFunction); |
53 | 53 | self::addFunction($element, $qualifiedName, $functionGroupDictionary); |
54 | 54 | break; |