Updated Rector to commit a26bfd9d12ee70f47ed522356d4fcad248a548a0

a26bfd9d12 [BetterPhpDocParser] Use str_contains() for DoctrineAnnotationDecorator (#6671) (#6674)
This commit is contained in:
Tomas Votruba 2025-01-16 13:56:00 +00:00
parent 1ac80cb7b6
commit ae6ddaf282
2 changed files with 4 additions and 4 deletions

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '8bcb2c5ce9808dabff49b100df978c1aa601e592';
public const PACKAGE_VERSION = 'a26bfd9d12ee70f47ed522356d4fcad248a548a0';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2025-01-16 13:32:11';
public const RELEASE_DATE = '2025-01-16 20:53:28';
/**
* @var int
*/

View File

@ -313,10 +313,10 @@ final class DoctrineAnnotationDecorator implements PhpDocNodeDecoratorInterface
return \true;
}
do {
if ($composedTokenIterator->isCurrentTokenType(Lexer::TOKEN_OPEN_CURLY_BRACKET, Lexer::TOKEN_OPEN_PARENTHESES) || \strncmp($composedTokenIterator->currentTokenValue(), '{', \strlen('{')) === 0 || \strncmp($composedTokenIterator->currentTokenValue(), '(', \strlen('(')) === 0) {
if ($composedTokenIterator->isCurrentTokenType(Lexer::TOKEN_OPEN_CURLY_BRACKET, Lexer::TOKEN_OPEN_PARENTHESES) || \strpos($composedTokenIterator->currentTokenValue(), '{') !== \false || \strpos($composedTokenIterator->currentTokenValue(), '(') !== \false) {
++$openBracketCount;
}
if ($composedTokenIterator->isCurrentTokenType(Lexer::TOKEN_CLOSE_CURLY_BRACKET, Lexer::TOKEN_CLOSE_PARENTHESES) || \substr_compare($composedTokenIterator->currentTokenValue(), '}', -\strlen('}')) === 0 || \substr_compare($composedTokenIterator->currentTokenValue(), ')', -\strlen(')')) === 0) {
if ($composedTokenIterator->isCurrentTokenType(Lexer::TOKEN_CLOSE_CURLY_BRACKET, Lexer::TOKEN_CLOSE_PARENTHESES) || \strpos($composedTokenIterator->currentTokenValue(), '}') !== \false || \strpos($composedTokenIterator->currentTokenValue(), ')') !== \false) {
++$closeBracketCount;
}
$composedTokenIterator->next();