From 81803bd2f5ceff7d442aec7012d972699e63af90 Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Sun, 27 Jun 2021 09:39:37 +0200 Subject: [PATCH] Add type annotations for `CalcFunction` This change omits type annotations that are already covered by native type declarations. --- src/Value/CalcFunction.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/Value/CalcFunction.php b/src/Value/CalcFunction.php index 6c223581..5c92e0c0 100644 --- a/src/Value/CalcFunction.php +++ b/src/Value/CalcFunction.php @@ -3,13 +3,27 @@ namespace Sabberworm\CSS\Value; use Sabberworm\CSS\Parsing\ParserState; +use Sabberworm\CSS\Parsing\UnexpectedEOFException; use Sabberworm\CSS\Parsing\UnexpectedTokenException; class CalcFunction extends CSSFunction { + /** + * @var int + */ const T_OPERAND = 1; + + /** + * @var int + */ const T_OPERATOR = 2; + /** + * @return CalcFunction + * + * @throws UnexpectedTokenException + * @throws UnexpectedEOFException + */ public static function parse(ParserState $oParserState) { $aOperators = ['+', '-', '*', '/'];