Updated Rector to commit 967e983203f45c47ca154df85d47f08f54b5cafb

967e983203  `withRootFiles` now apply rector for dotfiles too (#6592)
This commit is contained in:
Tomas Votruba 2024-12-15 18:18:09 +00:00
parent 8c7e2073d6
commit 0dbd7f432e
2 changed files with 5 additions and 5 deletions

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = 'fa88e970e6317d59586339c8fdce086050ca3b61';
public const PACKAGE_VERSION = '967e983203f45c47ca154df85d47f08f54b5cafb';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2024-12-15 00:27:19';
public const RELEASE_DATE = '2024-12-15 19:15:41';
/**
* @var int
*/

View File

@ -265,8 +265,8 @@ final class RectorConfigBuilder
return $this->withSkip([$skipPath]);
}
/**
* Include PHP files from the root directory,
* typically ecs.php, rector.php etc.
* Include PHP files from the root directory (including hidden ones),
* typically ecs.php, rector.php, .php-cs-fixer.dist.php etc.
*/
public function withRootFiles() : self
{
@ -298,7 +298,7 @@ final class RectorConfigBuilder
return \realpath($string);
}, $gitIgnoreContents);
}
$rootPhpFilesFinder = (new Finder())->files()->in(\getcwd())->depth(0)->name('*.php');
$rootPhpFilesFinder = (new Finder())->files()->in(\getcwd())->depth(0)->ignoreDotFiles(\false)->name('*.php')->name('.*.php');
foreach ($rootPhpFilesFinder as $rootPhpFileFinder) {
$path = $rootPhpFileFinder->getRealPath();
if (\in_array($path, $gitIgnoreContents, \true)) {