Updated Rector to commit 84639e6aa9c5daa4958121e9aa19e36b5b6bb9b6

84639e6aa9 [Php83] Add support +/- value on constant on AddTypeToConstRector (#5694)
This commit is contained in:
Tomas Votruba 2024-03-05 22:49:19 +00:00
parent ff1845ce1a
commit bd3297e237
6 changed files with 18 additions and 13 deletions

View File

@ -9,6 +9,8 @@ use PhpParser\Node\Expr;
use PhpParser\Node\Expr\Array_; use PhpParser\Node\Expr\Array_;
use PhpParser\Node\Expr\BinaryOp\Concat; use PhpParser\Node\Expr\BinaryOp\Concat;
use PhpParser\Node\Expr\ConstFetch; use PhpParser\Node\Expr\ConstFetch;
use PhpParser\Node\Expr\UnaryMinus;
use PhpParser\Node\Expr\UnaryPlus;
use PhpParser\Node\Identifier; use PhpParser\Node\Identifier;
use PhpParser\Node\Scalar\DNumber; use PhpParser\Node\Scalar\DNumber;
use PhpParser\Node\Scalar\LNumber; use PhpParser\Node\Scalar\LNumber;
@ -119,6 +121,9 @@ CODE_SAMPLE
} }
private function findValueType(Expr $expr) : ?Identifier private function findValueType(Expr $expr) : ?Identifier
{ {
if ($expr instanceof UnaryPlus || $expr instanceof UnaryMinus) {
return $this->findValueType($expr->expr);
}
if ($expr instanceof String_) { if ($expr instanceof String_) {
return new Identifier('string'); return new Identifier('string');
} }

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api * @api
* @var string * @var string
*/ */
public const PACKAGE_VERSION = '10c7bc6a4114dddde311e49efcd9c441ea92babc'; public const PACKAGE_VERSION = '84639e6aa9c5daa4958121e9aa19e36b5b6bb9b6';
/** /**
* @api * @api
* @var string * @var string
*/ */
public const RELEASE_DATE = '2024-03-05 18:34:08'; public const RELEASE_DATE = '2024-03-06 05:46:53';
/** /**
* @var int * @var int
*/ */

View File

@ -504,8 +504,8 @@
}, },
{ {
"name": "illuminate\/container", "name": "illuminate\/container",
"version": "v10.46.0", "version": "v10.47.0",
"version_normalized": "10.46.0.0", "version_normalized": "10.47.0.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https:\/\/github.com\/illuminate\/container.git", "url": "https:\/\/github.com\/illuminate\/container.git",
@ -561,8 +561,8 @@
}, },
{ {
"name": "illuminate\/contracts", "name": "illuminate\/contracts",
"version": "v10.46.0", "version": "v10.47.0",
"version_normalized": "10.46.0.0", "version_normalized": "10.47.0.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https:\/\/github.com\/illuminate\/contracts.git", "url": "https:\/\/github.com\/illuminate\/contracts.git",
@ -1866,12 +1866,12 @@
"source": { "source": {
"type": "git", "type": "git",
"url": "https:\/\/github.com\/rectorphp\/rector-symfony.git", "url": "https:\/\/github.com\/rectorphp\/rector-symfony.git",
"reference": "ee8ef7f01861c3958e6e96432e3d9374d8426b6b" "reference": "5ce789ddc9f145d4d93496db165ef9daa9be4424"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-symfony\/zipball\/ee8ef7f01861c3958e6e96432e3d9374d8426b6b", "url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-symfony\/zipball\/5ce789ddc9f145d4d93496db165ef9daa9be4424",
"reference": "ee8ef7f01861c3958e6e96432e3d9374d8426b6b", "reference": "5ce789ddc9f145d4d93496db165ef9daa9be4424",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -1900,7 +1900,7 @@
"tomasvotruba\/class-leak": "^0.2.6", "tomasvotruba\/class-leak": "^0.2.6",
"tracy\/tracy": "^2.10" "tracy\/tracy": "^2.10"
}, },
"time": "2024-03-04T11:24:00+00:00", "time": "2024-03-05T20:50:16+00:00",
"default-branch": true, "default-branch": true,
"type": "rector-extension", "type": "rector-extension",
"extra": { "extra": {

File diff suppressed because one or more lines are too long

View File

@ -9,7 +9,7 @@ namespace Rector\RectorInstaller;
*/ */
final class GeneratedConfig final class GeneratedConfig
{ {
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')); 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'));
private function __construct() private function __construct()
{ {
} }

View File

@ -22,7 +22,7 @@ use Rector\Config\RectorConfig;
use Rector\Symfony\Set\SymfonySetList; use Rector\Symfony\Set\SymfonySetList;
return RectorConfig::configure() return RectorConfig::configure()
->withSymfonyContainerXml((__DIR__ . '/var/cache/dev/App_KernelDevDebugContainer.xml') ->withSymfonyContainerXml(__DIR__ . '/var/cache/dev/App_KernelDevDebugContainer.xml')
->withSets([ ->withSets([
SymfonySetList::SYMFONY_62, SymfonySetList::SYMFONY_62,
SymfonySetList::SYMFONY_CODE_QUALITY, SymfonySetList::SYMFONY_CODE_QUALITY,