From 9c39493256d77360a323b8f9861fbb600589a472 Mon Sep 17 00:00:00 2001 From: Chase Rutherford-Jenkins Date: Mon, 22 Jul 2019 10:46:10 -0700 Subject: [PATCH] fix for HHVM 4.1 switch fallthrough --- src/Expressions/BinaryOperatorExpression.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Expressions/BinaryOperatorExpression.php b/src/Expressions/BinaryOperatorExpression.php index 0189d64..7991433 100644 --- a/src/Expressions/BinaryOperatorExpression.php +++ b/src/Expressions/BinaryOperatorExpression.php @@ -202,7 +202,8 @@ public function evaluate(row $row, AsyncMysqlConnection $conn): mixed { return (int)$left_number << (int)$right_number; case '>>': return (int)$left_number >> (int)$right_number; - + default: + throw new SQLFakeRuntimeException("Operator recognized but not implemented"); } case 'LIKE': $left_string = (string)$left->evaluate($row, $conn);