mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-17 21:38:22 +01:00
Updated Rector to commit 174adf163cad4e588e5da961a7972c64a24d2615
174adf163c
[AutoImport] Do not add cast on valid Integer type on Name Node on auto import enabled (#6236)
This commit is contained in:
parent
39ddc0f654
commit
c643bd2810
8
vendor/composer/installed.json
vendored
8
vendor/composer/installed.json
vendored
@ -1810,12 +1810,12 @@
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https:\/\/github.com\/rectorphp\/rector-phpunit.git",
|
||||
"reference": "455b0c7d0b7db079661e00ebe538cccfd66e63dc"
|
||||
"reference": "93f7e723c693dee3673aac54d3149f9c5e93030a"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-phpunit\/zipball\/455b0c7d0b7db079661e00ebe538cccfd66e63dc",
|
||||
"reference": "455b0c7d0b7db079661e00ebe538cccfd66e63dc",
|
||||
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-phpunit\/zipball\/93f7e723c693dee3673aac54d3149f9c5e93030a",
|
||||
"reference": "93f7e723c693dee3673aac54d3149f9c5e93030a",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@ -1839,7 +1839,7 @@
|
||||
"tomasvotruba\/class-leak": "^0.2",
|
||||
"tracy\/tracy": "^2.10"
|
||||
},
|
||||
"time": "2024-08-15T07:50:43+00:00",
|
||||
"time": "2024-08-16T17:32:59+00:00",
|
||||
"default-branch": true,
|
||||
"type": "rector-extension",
|
||||
"extra": {
|
||||
|
2
vendor/composer/installed.php
vendored
2
vendor/composer/installed.php
vendored
File diff suppressed because one or more lines are too long
@ -9,7 +9,7 @@ namespace Rector\RectorInstaller;
|
||||
*/
|
||||
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 657d715'), '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 ceccbe4'), '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 455b0c7'), '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 d11e7da'));
|
||||
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 657d715'), '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 ceccbe4'), '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 93f7e72'), '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 d11e7da'));
|
||||
private function __construct()
|
||||
{
|
||||
}
|
||||
|
@ -110,7 +110,7 @@ CODE_SAMPLE
|
||||
if ($name === null) {
|
||||
return null;
|
||||
}
|
||||
$this->identifierManipulator->renameNodeWithMap($node, [AssertMethod::ASSERT_TRUE => 'assertObjectHasAttribute', AssertMethod::ASSERT_FALSE => 'assertObjectNotHasAttribute']);
|
||||
$this->identifierManipulator->renameNodeWithMap($node, [AssertMethod::ASSERT_TRUE => 'assertObjectHasProperty', AssertMethod::ASSERT_FALSE => 'assertObjectNotHasProperty']);
|
||||
$oldArgs = $node->getArgs();
|
||||
unset($oldArgs[0]);
|
||||
$newArgs = $this->nodeFactory->createArgs([new String_($name), $issetExpr->var]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user