Updated Rector to commit 6d5ffbe7d62fba226b0b49c613092c0741b2ba34

6d5ffbe7d6 [TypeDeclaration] Handle skipped by file path on DeclareStrictTypesRector due to use beforeTraverse() (#5191)
This commit is contained in:
Tomas Votruba 2023-10-23 07:51:12 +00:00
parent c6f40053b8
commit 7c5eefbc15
6 changed files with 13 additions and 9 deletions

View File

@ -44,6 +44,10 @@ CODE_SAMPLE
public function beforeTraverse(array $nodes) : ?array
{
parent::beforeTraverse($nodes);
$filePath = $this->file->getFilePath();
if ($this->skipper->shouldSkipElementAndFilePath(self::class, $filePath)) {
return null;
}
$newStmts = $this->file->getNewStmts();
if ($newStmts === []) {
return null;

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = 'a0d324465a4cbccb9236bc69f41069da89d01baf';
public const PACKAGE_VERSION = '6d5ffbe7d62fba226b0b49c613092c0741b2ba34';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-10-22 12:09:33';
public const RELEASE_DATE = '2023-10-23 09:47:25';
/**
* @var int
*/

View File

@ -85,7 +85,7 @@ CODE_SAMPLE;
/**
* @var \Rector\Skipper\Skipper\Skipper
*/
private $skipper;
protected $skipper;
/**
* @var \Rector\Core\Provider\CurrentFileProvider
*/

View File

@ -1679,12 +1679,12 @@
"source": {
"type": "git",
"url": "https:\/\/github.com\/rectorphp\/rector-doctrine.git",
"reference": "a846e7f2380c13e6847faee90e8b955826fba3eb"
"reference": "9de7d58cb2b3438a469a609457a92dd37a310acc"
},
"dist": {
"type": "zip",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-doctrine\/zipball\/a846e7f2380c13e6847faee90e8b955826fba3eb",
"reference": "a846e7f2380c13e6847faee90e8b955826fba3eb",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-doctrine\/zipball\/9de7d58cb2b3438a469a609457a92dd37a310acc",
"reference": "9de7d58cb2b3438a469a609457a92dd37a310acc",
"shasum": ""
},
"require": {
@ -1710,7 +1710,7 @@
"tomasvotruba\/type-coverage": "^0.2",
"tomasvotruba\/unused-public": "^0.3"
},
"time": "2023-09-29T13:29:14+00:00",
"time": "2023-10-22T17:44:32+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 a846e7f'), '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 2d20783'), '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 7a0a6db'), '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 5c5530a'));
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 9de7d58'), '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 2d20783'), '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 7a0a6db'), '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 5c5530a'));
private function __construct()
{
}