Kuba Werłos 3 лет назад
Родитель
Сommit
22510eacd3
4 измененных файлов с 10 добавлено и 4 удалено
  1. 1 1
      .php-cs-fixer.dist.php
  2. 4 1
      .php-cs-fixer.php-highest.php
  3. 4 1
      .php-cs-fixer.php-lowest.php
  4. 1 1
      dev-tools/install.sh

+ 1 - 1
.php-cs-fixer.dist.php

@@ -23,13 +23,13 @@ with this source code in the file LICENSE.
 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__,
     ])
 ;
 

+ 4 - 1
.php-cs-fixer.php-highest.php

@@ -1,5 +1,7 @@
 <?php
 
+declare(strict_types=1);
+
 /*
  * This file is part of PHP CS Fixer.
  *
@@ -13,10 +15,11 @@
 if (PHP_VERSION_ID < 80100 || PHP_VERSION_ID >= 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,

+ 4 - 1
.php-cs-fixer.php-lowest.php

@@ -1,5 +1,7 @@
 <?php
 
+declare(strict_types=1);
+
 /*
  * This file is part of PHP CS Fixer.
  *
@@ -13,10 +15,11 @@
 if (PHP_VERSION_ID < 70205 || PHP_VERSION_ID >= 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

+ 1 - 1
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