mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-17 13:28:18 +01:00
Updated Rector to commit 967e983203f45c47ca154df85d47f08f54b5cafb
967e983203
✨ `withRootFiles` now apply rector for dotfiles too (#6592)
This commit is contained in:
parent
8c7e2073d6
commit
0dbd7f432e
@ -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
|
||||
*/
|
||||
|
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user