diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php index 497445a2742..73099884eab 100644 --- a/.php-cs-fixer.dist.php +++ b/.php-cs-fixer.dist.php @@ -23,13 +23,13 @@ EOF; $finder = PhpCsFixer\Finder::create() + ->ignoreDotFiles(false) ->ignoreVCSIgnored(true) ->exclude('tests/Fixtures') ->in(__DIR__) ->append([ __DIR__.'/dev-tools/doc.php', // __DIR__.'/php-cs-fixer', disabled, as we want to be able to run bootstrap file even on lower PHP version, to show nice message - __FILE__, ]) ; diff --git a/.php-cs-fixer.php-highest.php b/.php-cs-fixer.php-highest.php index 230cc429968..0fe0d66171d 100644 --- a/.php-cs-fixer.php-highest.php +++ b/.php-cs-fixer.php-highest.php @@ -1,5 +1,7 @@ = 80200) { fwrite(STDERR, "PHP CS Fixer's config for PHP-HIGHEST can be executed only on highest supported PHP version - 8.1.*.\n"); fwrite(STDERR, "Running it on lower PHP version would prevent calling migration rules.\n"); + exit(1); } -$config = require '.php-cs-fixer.dist.php'; +$config = require __DIR__.'/.php-cs-fixer.dist.php'; $config->setRules(array_merge($config->getRules(), [ '@PHP81Migration' => true, diff --git a/.php-cs-fixer.php-lowest.php b/.php-cs-fixer.php-lowest.php index 84df08b1901..8b0a86ac69c 100644 --- a/.php-cs-fixer.php-lowest.php +++ b/.php-cs-fixer.php-lowest.php @@ -1,5 +1,7 @@ = 70300) { fwrite(STDERR, "PHP CS Fixer's config for PHP-LOWEST can be executed only on lowest supported PHP version - ~7.2.5.\n"); fwrite(STDERR, "Running it on higher PHP version would falsy expect more changes, eg `mixed` type on PHP 8.\n"); + exit(1); } -$config = require '.php-cs-fixer.dist.php'; +$config = require __DIR__.'/.php-cs-fixer.dist.php'; $config->getFinder()->notPath([ // @TODO 4.0 change interface to be fully typehinted and remove the exceptions from this list diff --git a/dev-tools/install.sh b/dev-tools/install.sh index 02885f639e2..af02f3d56aa 100755 --- a/dev-tools/install.sh +++ b/dev-tools/install.sh @@ -20,7 +20,7 @@ cd "$(dirname "$0")" mkdir -p bin -VERSION_CB="2.21.4" +VERSION_CB="2.21.7" VERSION_SC="stable" echo λλλ checkbashisms