Updated Rector to commit 2d862a7c7750c79e4c16be6e7c4e87ba324abfa7

2d862a7c77 [CodingStyle] Skip equal modifier on direct parent method compatible on MakeInheritedMethodVisibilitySameAsParentRector (#6406)
This commit is contained in:
Tomas Votruba 2024-11-04 13:19:01 +00:00
parent 3e0ec27b2b
commit 27c9f323a3
4 changed files with 12 additions and 8 deletions

View File

@ -1811,12 +1811,12 @@
"source": {
"type": "git",
"url": "https:\/\/github.com\/rectorphp\/rector-phpunit.git",
"reference": "5ec3977b2e1c7ebb0808014ceda5cec6f3477a90"
"reference": "962bfa29c4d28acb1c6bbea96dcd8920028f6386"
},
"dist": {
"type": "zip",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-phpunit\/zipball\/5ec3977b2e1c7ebb0808014ceda5cec6f3477a90",
"reference": "5ec3977b2e1c7ebb0808014ceda5cec6f3477a90",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-phpunit\/zipball\/962bfa29c4d28acb1c6bbea96dcd8920028f6386",
"reference": "962bfa29c4d28acb1c6bbea96dcd8920028f6386",
"shasum": ""
},
"require": {
@ -1840,7 +1840,7 @@
"tomasvotruba\/class-leak": "^1.0",
"tracy\/tracy": "^2.10"
},
"time": "2024-11-03T23:47:15+00:00",
"time": "2024-11-04T10:11:12+00:00",
"default-branch": true,
"type": "rector-extension",
"extra": {

File diff suppressed because one or more lines are too long

View File

@ -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 e75008c'), '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 d9cef57'), '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 5ec3977'), '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 799b454'));
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 e75008c'), '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 d9cef57'), '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 962bfa2'), '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 799b454'));
private function __construct()
{
}

View File

@ -88,11 +88,15 @@ CODE_SAMPLE
if (!$classStmt instanceof Property) {
continue;
}
$property = $classStmt;
// possibly used by child
if (!$isFinalClass && !$classStmt->isPrivate()) {
if (!$isFinalClass && !$property->isPrivate()) {
continue;
}
// possibly used for caching or re-use
if ($property->isStatic()) {
continue;
}
$property = $classStmt;
if ($this->isPropertyUsedOutsideSetUpClassMethod($node, $setUpClassMethod, $property)) {
continue;
}