mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-17 21:38:22 +01:00
Updated Rector to commit d246d27a9442cc08a419e899e07c2c19a680eb80
d246d27a94
[CodeQuality] Skip multiple lines on JoinStringConcatRector (#6404)
This commit is contained in:
parent
ef924604ad
commit
6aa0ede384
@ -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_
|
||||
|
@ -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
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user