Skip to content

Commit 81803bd

Browse files
committed
Add type annotations for CalcFunction
This change omits type annotations that are already covered by native type declarations.
1 parent afc7f64 commit 81803bd

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/Value/CalcFunction.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,27 @@
33
namespace Sabberworm\CSS\Value;
44

55
use Sabberworm\CSS\Parsing\ParserState;
6+
use Sabberworm\CSS\Parsing\UnexpectedEOFException;
67
use Sabberworm\CSS\Parsing\UnexpectedTokenException;
78

89
class CalcFunction extends CSSFunction
910
{
11+
/**
12+
* @var int
13+
*/
1014
const T_OPERAND = 1;
15+
16+
/**
17+
* @var int
18+
*/
1119
const T_OPERATOR = 2;
1220

21+
/**
22+
* @return CalcFunction
23+
*
24+
* @throws UnexpectedTokenException
25+
* @throws UnexpectedEOFException
26+
*/
1327
public static function parse(ParserState $oParserState)
1428
{
1529
$aOperators = ['+', '-', '*', '/'];

0 commit comments

Comments
 (0)