Updated Rector to commit c59c83a99fdb883dbcf6fead62b7cd9961fae034

c59c83a99f [Php83] Handle concat in first argument on CombineHostPortLdapUriRector (#6661)
This commit is contained in:
Tomas Votruba 2025-01-07 16:25:29 +00:00
parent b47878ee33
commit f3e9cbef7a
2 changed files with 9 additions and 3 deletions

View File

@ -4,6 +4,7 @@ declare (strict_types=1);
namespace Rector\Php83\Rector\FuncCall;
use PhpParser\Node;
use PhpParser\Node\Expr\BinaryOp\Concat;
use PhpParser\Node\Expr\FuncCall;
use PhpParser\Node\InterpolatedStringPart;
use PhpParser\Node\Scalar\Int_;
@ -66,7 +67,12 @@ CODE_SAMPLE
if ($firstArg instanceof String_ && $secondArg instanceof Int_) {
$args[0]->value = new String_($firstArg->value . ':' . $secondArg->value);
} elseif ($this->exprAnalyzer->isDynamicExpr($firstArg) && $this->exprAnalyzer->isDynamicExpr($secondArg)) {
$args[0]->value = new InterpolatedString([$firstArg, new InterpolatedStringPart(':'), $secondArg]);
if ($firstArg instanceof Concat && !$secondArg instanceof Concat) {
$args[0]->value = new Concat($firstArg, new String_(':'));
$args[0]->value = new Concat($args[0]->value, $secondArg);
} else {
$args[0]->value = new InterpolatedString([$firstArg, new InterpolatedStringPart(':'), $secondArg]);
}
} else {
return null;
}

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = 'b6deb2906c86fa45cf27a26d2cb21dd1fd55e238';
public const PACKAGE_VERSION = 'c59c83a99fdb883dbcf6fead62b7cd9961fae034';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2025-01-07 10:46:56';
public const RELEASE_DATE = '2025-01-07 23:22:40';
/**
* @var int
*/