mirror of
https://github.com/rectorphp/rector.git
synced 2025-03-25 01:39:49 +01:00
Updated Rector to commit 00ae805d747e43b7d279a17d9e14ec4a374894a8
00ae805d74
Replace ambiguous wrapped_with_brackets with existing attribute wrapped_in_parentheses (#6691)
This commit is contained in:
parent
cc97278bff
commit
699d1b7dd4
@ -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) {
|
||||
|
@ -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
|
||||
*/
|
||||
|
@ -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 . ')';
|
||||
}
|
||||
|
8
vendor/composer/installed.json
vendored
8
vendor/composer/installed.json
vendored
@ -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",
|
||||
|
2
vendor/composer/installed.php
vendored
2
vendor/composer/installed.php
vendored
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user