Updated Rector to commit 00ae805d747e43b7d279a17d9e14ec4a374894a8

00ae805d74 Replace ambiguous wrapped_with_brackets with existing attribute wrapped_in_parentheses (#6691)
This commit is contained in:
Tomas Votruba 2025-01-22 18:58:18 +00:00
parent cc97278bff
commit 699d1b7dd4
5 changed files with 9 additions and 9 deletions

View File

@ -67,7 +67,7 @@ CODE_SAMPLE
$node->if = $else;
if ($node->if instanceof Ternary) {
$ternary = $node->if;
$ternary->setAttribute(AttributeKey::KIND, 'wrapped_with_brackets');
$ternary->setAttribute(AttributeKey::KIND, AttributeKey::WRAPPED_IN_PARENTHESES);
$ternary->setAttribute(AttributeKey::ORIGINAL_NODE, null);
}
if ($node->else instanceof Ternary) {

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = 'd5d3bcd946dc0565312a46e5941c033615373ce0';
public const PACKAGE_VERSION = '00ae805d747e43b7d279a17d9e14ec4a374894a8';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2025-01-22 10:31:14';
public const RELEASE_DATE = '2025-01-23 01:55:44';
/**
* @var int
*/

View File

@ -270,7 +270,7 @@ final class BetterStandardPrinter extends Standard
protected function pExpr_Ternary(Ternary $ternary, int $precedence, int $lhsPrecedence) : string
{
$kind = $ternary->getAttribute(AttributeKey::KIND);
if ($kind === 'wrapped_with_brackets') {
if ($kind === AttributeKey::WRAPPED_IN_PARENTHESES) {
$pExprTernary = parent::pExpr_Ternary($ternary, $precedence, $lhsPrecedence);
return '(' . $pExprTernary . ')';
}

View File

@ -512,8 +512,8 @@
},
{
"name": "illuminate\/container",
"version": "v11.39.0",
"version_normalized": "11.39.0.0",
"version": "v11.39.1",
"version_normalized": "11.39.1.0",
"source": {
"type": "git",
"url": "https:\/\/github.com\/illuminate\/container.git",
@ -569,8 +569,8 @@
},
{
"name": "illuminate\/contracts",
"version": "v11.39.0",
"version_normalized": "11.39.0.0",
"version": "v11.39.1",
"version_normalized": "11.39.1.0",
"source": {
"type": "git",
"url": "https:\/\/github.com\/illuminate\/contracts.git",

File diff suppressed because one or more lines are too long