Skip to content

Commit a60c0af

Browse files
committed
minor symfony#38408 Fix type annotation in ExpressionLanguage\Token (m-vo)
This PR was merged into the 3.4 branch. Discussion ---------- Fix type annotation in ExpressionLanguage\Token | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - The expected argument `$type` should be a string - the strict comparison would always fail with the current annotated types (`array|int`). See the constructor + constants for reference: https://github.com/symfony/symfony/blob/7db7dcc431cfafff38123e835ca6754980f5dab6/src/Symfony/Component/ExpressionLanguage/Token.php#L33 https://github.com/symfony/symfony/blob/7db7dcc431cfafff38123e835ca6754980f5dab6/src/Symfony/Component/ExpressionLanguage/Token.php#L25-L30 Commits ------- bfde15b Fix type annotation
2 parents bfcf65f + bfde15b commit a60c0af

File tree

1 file changed

+1
-1
lines changed
  • src/Symfony/Component/ExpressionLanguage

1 file changed

+1
-1
lines changed

src/Symfony/Component/ExpressionLanguage/Token.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function __toString()
5454
/**
5555
* Tests the current token for a type and/or a value.
5656
*
57-
* @param array|int $type The type to test
57+
* @param string $type The type to test
5858
* @param string|null $value The token value
5959
*
6060
* @return bool

0 commit comments

Comments
 (0)