Skip to content

Commit 8432118

Browse files
committed
[CssSelector] Fix incorrect return type for Token::getType()
1 parent 601a5ce commit 8432118

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Parser/Token.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,20 @@ class Token
3131
public const TYPE_NUMBER = 'number';
3232
public const TYPE_STRING = 'string';
3333

34+
/**
35+
* @param self::TYPE_*|null $type
36+
*/
3437
public function __construct(
3538
private ?string $type,
3639
private ?string $value,
3740
private ?int $position,
3841
) {
3942
}
4043

41-
public function getType(): ?int
44+
/**
45+
* @return self::TYPE_*|null
46+
*/
47+
public function getType(): ?string
4248
{
4349
return $this->type;
4450
}

0 commit comments

Comments
 (0)