Updated Rector to commit d246d27a9442cc08a419e899e07c2c19a680eb80

d246d27a94 [CodeQuality] Skip multiple lines on JoinStringConcatRector (#6404)
This commit is contained in:
Tomas Votruba 2024-10-29 23:20:09 +00:00
parent ef924604ad
commit 6aa0ede384
2 changed files with 7 additions and 2 deletions

View File

@ -66,6 +66,11 @@ CODE_SAMPLE
if (!$node->right instanceof String_) {
return null;
}
$leftStartLine = $node->left->getStartLine();
$rightStartLine = $node->right->getStartLine();
if ($leftStartLine > 0 && $rightStartLine > 0 && $rightStartLine > $leftStartLine) {
return null;
}
return $this->joinConcatIfStrings($node->left, $node->right);
}
private function joinConcatIfStrings(String_ $leftString, String_ $rightString) : ?String_

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '61ebcc53b5c50f244ce0f7dfb626ded8d371c0a5';
public const PACKAGE_VERSION = 'd246d27a9442cc08a419e899e07c2c19a680eb80';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2024-10-27 15:15:12';
public const RELEASE_DATE = '2024-10-30 00:17:39';
/**
* @var int
*/