Failed Conditions
Pull Request — master (#57)
by Alex
03:58
created
src/Util/ExpressionTypeChecker.php 1 patch
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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():
Please login to merge, or discard this patch.
src/Internal/RegistrationHelper.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.