mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-17 13:28:18 +01:00
Updated Rector to commit a26bfd9d12ee70f47ed522356d4fcad248a548a0
a26bfd9d12
[BetterPhpDocParser] Use str_contains() for DoctrineAnnotationDecorator (#6671) (#6674)
This commit is contained in:
parent
1ac80cb7b6
commit
ae6ddaf282
@ -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
|
||||
*/
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user