Skip to content

Commit

Permalink
phpcs
Browse files Browse the repository at this point in the history
  • Loading branch information
niden committed Nov 30, 2023
1 parent a50fb0f commit add6ae6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Exception/CompilerException.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
}
Expand Down
4 changes: 2 additions & 2 deletions src/Operators/Arithmetical/ArithmeticalBaseOperator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -576,7 +576,7 @@ public function compile($expression, CompilationContext $compilationContext)
$expression
);
}

// no break

case 'string':
throw new CompilerException("Cannot operate string variables'", $expression);
Expand Down

0 comments on commit add6ae6

Please sign in to comment.