mirror of
https://github.com/rectorphp/rector.git
synced 2025-04-14 12:32:00 +02:00
Updated Rector to commit c59c83a99fdb883dbcf6fead62b7cd9961fae034
c59c83a99f
[Php83] Handle concat in first argument on CombineHostPortLdapUriRector (#6661)
This commit is contained in:
parent
b47878ee33
commit
f3e9cbef7a
@ -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;
|
||||
}
|
||||
|
@ -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
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user