Skip to content

Commit bd3297e

Browse files
committed
Updated Rector to commit 84639e6aa9c5daa4958121e9aa19e36b5b6bb9b6
rectorphp/rector-src@84639e6 [Php83] Add support +/- value on constant on AddTypeToConstRector (#5694)
1 parent ff1845c commit bd3297e

File tree

6 files changed

+18
-13
lines changed

6 files changed

+18
-13
lines changed

rules/Php83/Rector/ClassConst/AddTypeToConstRector.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
use PhpParser\Node\Expr\Array_;
1010
use PhpParser\Node\Expr\BinaryOp\Concat;
1111
use PhpParser\Node\Expr\ConstFetch;
12+
use PhpParser\Node\Expr\UnaryMinus;
13+
use PhpParser\Node\Expr\UnaryPlus;
1214
use PhpParser\Node\Identifier;
1315
use PhpParser\Node\Scalar\DNumber;
1416
use PhpParser\Node\Scalar\LNumber;
@@ -119,6 +121,9 @@ public function isConstGuardedByParents(Const_ $const, array $parentClassReflect
119121
}
120122
private function findValueType(Expr $expr) : ?Identifier
121123
{
124+
if ($expr instanceof UnaryPlus || $expr instanceof UnaryMinus) {
125+
return $this->findValueType($expr->expr);
126+
}
122127
if ($expr instanceof String_) {
123128
return new Identifier('string');
124129
}

src/Application/VersionResolver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ final class VersionResolver
1919
* @api
2020
* @var string
2121
*/
22-
public const PACKAGE_VERSION = '10c7bc6a4114dddde311e49efcd9c441ea92babc';
22+
public const PACKAGE_VERSION = '84639e6aa9c5daa4958121e9aa19e36b5b6bb9b6';
2323
/**
2424
* @api
2525
* @var string
2626
*/
27-
public const RELEASE_DATE = '2024-03-05 18:34:08';
27+
public const RELEASE_DATE = '2024-03-06 05:46:53';
2828
/**
2929
* @var int
3030
*/

vendor/composer/installed.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -504,8 +504,8 @@
504504
},
505505
{
506506
"name": "illuminate\/container",
507-
"version": "v10.46.0",
508-
"version_normalized": "10.46.0.0",
507+
"version": "v10.47.0",
508+
"version_normalized": "10.47.0.0",
509509
"source": {
510510
"type": "git",
511511
"url": "https:\/\/github.com\/illuminate\/container.git",
@@ -561,8 +561,8 @@
561561
},
562562
{
563563
"name": "illuminate\/contracts",
564-
"version": "v10.46.0",
565-
"version_normalized": "10.46.0.0",
564+
"version": "v10.47.0",
565+
"version_normalized": "10.47.0.0",
566566
"source": {
567567
"type": "git",
568568
"url": "https:\/\/github.com\/illuminate\/contracts.git",
@@ -1866,12 +1866,12 @@
18661866
"source": {
18671867
"type": "git",
18681868
"url": "https:\/\/github.com\/rectorphp\/rector-symfony.git",
1869-
"reference": "ee8ef7f01861c3958e6e96432e3d9374d8426b6b"
1869+
"reference": "5ce789ddc9f145d4d93496db165ef9daa9be4424"
18701870
},
18711871
"dist": {
18721872
"type": "zip",
1873-
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-symfony\/zipball\/ee8ef7f01861c3958e6e96432e3d9374d8426b6b",
1874-
"reference": "ee8ef7f01861c3958e6e96432e3d9374d8426b6b",
1873+
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-symfony\/zipball\/5ce789ddc9f145d4d93496db165ef9daa9be4424",
1874+
"reference": "5ce789ddc9f145d4d93496db165ef9daa9be4424",
18751875
"shasum": ""
18761876
},
18771877
"require": {
@@ -1900,7 +1900,7 @@
19001900
"tomasvotruba\/class-leak": "^0.2.6",
19011901
"tracy\/tracy": "^2.10"
19021902
},
1903-
"time": "2024-03-04T11:24:00+00:00",
1903+
"time": "2024-03-05T20:50:16+00:00",
19041904
"default-branch": true,
19051905
"type": "rector-extension",
19061906
"extra": {

vendor/composer/installed.php

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

vendor/rector/extension-installer/src/GeneratedConfig.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*/
1010
final class GeneratedConfig
1111
{
12-
public const EXTENSIONS = array('rector/rector-doctrine' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-doctrine', 'relative_install_path' => '../../rector-doctrine', 'extra' => NULL, 'version' => 'dev-main 0df09cf'), 'rector/rector-downgrade-php' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-downgrade-php', 'relative_install_path' => '../../rector-downgrade-php', 'extra' => NULL, 'version' => 'dev-main 68e0635'), 'rector/rector-phpunit' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-phpunit', 'relative_install_path' => '../../rector-phpunit', 'extra' => NULL, 'version' => 'dev-main e065c40'), 'rector/rector-symfony' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-symfony', 'relative_install_path' => '../../rector-symfony', 'extra' => NULL, 'version' => 'dev-main ee8ef7f'));
12+
public const EXTENSIONS = array('rector/rector-doctrine' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-doctrine', 'relative_install_path' => '../../rector-doctrine', 'extra' => NULL, 'version' => 'dev-main 0df09cf'), 'rector/rector-downgrade-php' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-downgrade-php', 'relative_install_path' => '../../rector-downgrade-php', 'extra' => NULL, 'version' => 'dev-main 68e0635'), 'rector/rector-phpunit' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-phpunit', 'relative_install_path' => '../../rector-phpunit', 'extra' => NULL, 'version' => 'dev-main e065c40'), 'rector/rector-symfony' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-symfony', 'relative_install_path' => '../../rector-symfony', 'extra' => NULL, 'version' => 'dev-main 5ce789d'));
1313
private function __construct()
1414
{
1515
}

vendor/rector/rector-symfony/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ use Rector\Config\RectorConfig;
2222
use Rector\Symfony\Set\SymfonySetList;
2323

2424
return RectorConfig::configure()
25-
->withSymfonyContainerXml((__DIR__ . '/var/cache/dev/App_KernelDevDebugContainer.xml')
25+
->withSymfonyContainerXml(__DIR__ . '/var/cache/dev/App_KernelDevDebugContainer.xml')
2626
->withSets([
2727
SymfonySetList::SYMFONY_62,
2828
SymfonySetList::SYMFONY_CODE_QUALITY,

0 commit comments

Comments
 (0)