Skip to content

Commit

Permalink
Updated Rector to commit a26bfd9d12ee70f47ed522356d4fcad248a548a0
Browse files Browse the repository at this point in the history
rectorphp/rector-src@a26bfd9 [BetterPhpDocParser] Use str_contains() for DoctrineAnnotationDecorator (#6671) (#6674)
  • Loading branch information
TomasVotruba committed Jan 16, 2025
1 parent 1ac80cb commit ae6ddaf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Application/VersionResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -313,10 +313,10 @@ private function isClosedContent(string $composedContent) : bool
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();
Expand Down

0 comments on commit ae6ddaf

Please sign in to comment.