diff --git a/src/Exception/CompilerException.php b/src/Exception/CompilerException.php index 716b89171..6015223b7 100644 --- a/src/Exception/CompilerException.php +++ b/src/Exception/CompilerException.php @@ -35,8 +35,8 @@ public function __construct( string $message = '', ?array $extra = null, int $code = 0, - Exception | Throwable $previous = null) - { + Exception | Throwable $previous = null + ) { if (is_array($extra) && isset($extra['file'])) { $message .= ' in ' . $extra['file'] . ' on line ' . $extra['line']; } diff --git a/src/Operators/Arithmetical/ArithmeticalBaseOperator.php b/src/Operators/Arithmetical/ArithmeticalBaseOperator.php index 11f33e5bb..91bd8ba68 100644 --- a/src/Operators/Arithmetical/ArithmeticalBaseOperator.php +++ b/src/Operators/Arithmetical/ArithmeticalBaseOperator.php @@ -266,7 +266,7 @@ public function compile($expression, CompilationContext $compilationContext) default: throw new CompilerException('Operation is not supported between strings', $expression); } - + // no break case 'variable': $variableLeft = $compilationContext->symbolTable->getVariableForRead( @@ -576,7 +576,7 @@ public function compile($expression, CompilationContext $compilationContext) $expression ); } - + // no break case 'string': throw new CompilerException("Cannot operate string variables'", $expression);