Skip to content

Commit ab862f4

Browse files
committed
Merge branch '7.3' into 7.4
* 7.3: [FrameworkBundle] Remove extra argument from ContainerBuilder::willBeAvailable call fix ext-redis 6.2.0 compatibility [CssSelector] Fix incorrect return type for Token::getType() [Validator] Fix call to undefined getParser() in YamlValidator [ObjectMapper] Update Map attribute PHPDoc to match TransformCallableInterface signature [HtmlSanitizer] Remove `srcdoc` from allowed attributes
2 parents 57500fe + 8432118 commit ab862f4

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)