Skip to content

Commit 3427d14

Browse files
author
github-actions
committed
bump to v3.90.0
1 parent c6b842b commit 3427d14

File tree

405 files changed

+1433
-1022
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

405 files changed

+1433
-1022
lines changed

404.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<div class="clearfix">
3232
<div class="logo_header"><a href="/">PHP Coding Standards Fixer</a></div>
3333
<h1 class="title_header">
34-
<strong>Folding Bike (v3.89.2)</strong> edition
34+
<strong>Folding Bike (v3.90.0)</strong> edition
3535
</h1>
3636
</div>
3737
</div>

doc/config.html

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<div class="clearfix">
2828
<div class="logo_header"><a href="/">PHP Coding Standards Fixer</a></div>
2929
<h1 class="title_header">
30-
<strong>Folding Bike (v3.89.2)</strong> edition
30+
<strong>Folding Bike (v3.90.0)</strong> edition
3131
</h1>
3232
</div>
3333
</div>
@@ -54,18 +54,22 @@ <h1 class="title_header">
5454
<h1>Config file<a class="headerlink" href="#config-file" title="Permalink to this heading"></a></h1>
5555
<section id="no-config">
5656
<h2>No config<a class="headerlink" href="#no-config" title="Permalink to this heading"></a></h2>
57-
<p>It is possible to <em>not</em> have the config file. In that case, the default rule set (&#64;PSR12) will be applied, yet the path will need to be provided via CLI.</p>
57+
<p>It is possible to <em>not</em> have the config file. In that case, the default rule set (<code class="docutils literal notranslate"><span class="pre">&#64;PSR12</span></code> for v3, <code class="docutils literal notranslate"><span class="pre">&#64;auto</span></code> for v4) will be applied,
58+
and under v3, the path will need to be provided via CLI (defaults to <code class="docutils literal notranslate"><span class="pre">.</span></code> under v4).</p>
5859
<div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="go">php php-cs-fixer.phar fix .</span>
5960
</pre></div>
6061
</div>
61-
<p>It is also possible to provide command line options to customize rules, yet instead of using them,
62+
<p>While it is possible to provide command line options to configure rules,
6263
it’s recommended to save the project configuration in a <code class="docutils literal notranslate"><span class="pre">.php-cs-fixer.dist.php</span></code> file in the root directory of your project.
63-
The file must return an instance of <a class="reference external" href="https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/v3.89.2/src/ConfigInterface.php">PhpCsFixer\ConfigInterface</a>
64-
which lets you configure the rules, the files and directories that
65-
need to be analysed. You may also create <code class="docutils literal notranslate"><span class="pre">.php-cs-fixer.php</span></code> file, which is
66-
the local configuration that will be used instead of the project configuration. It
67-
is a good practice to add that file into your <code class="docutils literal notranslate"><span class="pre">.gitignore</span></code> file.
68-
With the <code class="docutils literal notranslate"><span class="pre">--config</span></code> option you can specify the path to the config file.</p>
64+
The file must return an instance of <a class="reference external" href="https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/v3.90.0/src/ConfigInterface.php">PhpCsFixer\ConfigInterface</a>,
65+
which lets you configure the rules, finder (the files and directories that
66+
need to be analysed), select output format and even configure path to <code class="docutils literal notranslate"><span class="pre">PHP</span></code>.</p>
67+
<p>You may also create <code class="docutils literal notranslate"><span class="pre">.php-cs-fixer.php</span></code> file, which is
68+
the local configuration that will be used instead of the project configuration.
69+
You can use it to customize for your environment (like path to <code class="docutils literal notranslate"><span class="pre">PHP</span></code>) or preference (like output format or progress indicator),
70+
while ruleset / finder shall be re-imported from project configuration.
71+
It is a good practice to add that file into your <code class="docutils literal notranslate"><span class="pre">.gitignore</span></code> file.</p>
72+
<p>With the <code class="docutils literal notranslate"><span class="pre">--config</span></code> option you can specify the path to the config file, when it is named differently.</p>
6973
</section>
7074
<section id="the-simplest-config">
7175
<h2>The simplest config<a class="headerlink" href="#the-simplest-config" title="Permalink to this heading"></a></h2>

doc/cookbook_fixers.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<div class="clearfix">
2828
<div class="logo_header"><a href="/">PHP Coding Standards Fixer</a></div>
2929
<h1 class="title_header">
30-
<strong>Folding Bike (v3.89.2)</strong> edition
30+
<strong>Folding Bike (v3.90.0)</strong> edition
3131
</h1>
3232
</div>
3333
</div>
@@ -66,8 +66,8 @@ <h2>Background<a class="headerlink" href="#background" title="Permalink to this
6666
discouraged - it is meant only to give more people more chance to
6767
contribute, and to detect bugs (<a class="reference external" href="https://en.wikipedia.org/wiki/Linus%27s_Law">Linus’s Law</a>).</p>
6868
<p>If possible, try to get acquainted with the public interface for the
69-
<a class="reference external" href="https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/v3.89.2/src/Tokenizer/Tokens.php">PhpCsFixer\Tokenizer\Tokens</a> and
70-
<a class="reference external" href="https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/v3.89.2/src/Tokenizer/Token.php">PhpCsFixer\Tokenizer\Token</a> classes.</p>
69+
<a class="reference external" href="https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/v3.90.0/src/Tokenizer/Tokens.php">PhpCsFixer\Tokenizer\Tokens</a> and
70+
<a class="reference external" href="https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/v3.90.0/src/Tokenizer/Token.php">PhpCsFixer\Tokenizer\Token</a> classes.</p>
7171
</section>
7272
<section id="assumptions">
7373
<h2>Assumptions<a class="headerlink" href="#assumptions" title="Permalink to this heading"></a></h2>
@@ -81,8 +81,8 @@ <h2>Assumptions<a class="headerlink" href="#assumptions" title="Permalink to thi
8181
</ul>
8282
<p>In case you want to create a custom fixer for your own use, you can
8383
follow this guide as well, but you will need to apply some changes on the go,
84-
for example use <a class="reference external" href="https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/v3.89.2/src/Fixer/FixerInterface.php">PhpCsFixer\Fixer\FixerInterface</a>
85-
instead of <a class="reference external" href="https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/v3.89.2/src/AbstractFixer.php">PhpCsFixer\AbstractFixer</a> (which is internal
84+
for example use <a class="reference external" href="https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/v3.90.0/src/Fixer/FixerInterface.php">PhpCsFixer\Fixer\FixerInterface</a>
85+
instead of <a class="reference external" href="https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/v3.90.0/src/AbstractFixer.php">PhpCsFixer\AbstractFixer</a> (which is internal
8686
and not covered with BC promise).</p>
8787
</section>
8888
<section id="step-by-step">
@@ -137,8 +137,8 @@ <h3>Step 1 - Creating files<a class="headerlink" href="#step-1-creating-files" t
137137
</pre></div>
138138
</div>
139139
<p>Note how the class and file name match. Also keep in mind that all
140-
fixers must implement <a class="reference external" href="https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/v3.89.2/src/Fixer/FixerInterface.php">PhpCsFixer\Fixer\FixerInterface</a>. In this case, the fixer is
141-
inheriting from <a class="reference external" href="https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/v3.89.2/src/AbstractFixer.php">PhpCsFixer\AbstractFixer</a>, which fulfills the interface with some
140+
fixers must implement <a class="reference external" href="https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/v3.90.0/src/Fixer/FixerInterface.php">PhpCsFixer\Fixer\FixerInterface</a>. In this case, the fixer is
141+
inheriting from <a class="reference external" href="https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/v3.90.0/src/AbstractFixer.php">PhpCsFixer\AbstractFixer</a>, which fulfills the interface with some
142142
default behaviour.</p>
143143
<p>Now let us create the test file at
144144
<code class="docutils literal notranslate"><span class="pre">tests/Fixer/Comment/RemoveCommentsFixerTest.php</span></code>. Put this content inside:</p>

doc/custom_rules.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<div class="clearfix">
2828
<div class="logo_header"><a href="/">PHP Coding Standards Fixer</a></div>
2929
<h1 class="title_header">
30-
<strong>Folding Bike (v3.89.2)</strong> edition
30+
<strong>Folding Bike (v3.90.0)</strong> edition
3131
</h1>
3232
</div>
3333
</div>
@@ -55,7 +55,7 @@ <h1>Creating custom rules<a class="headerlink" href="#creating-custom-rules" tit
5555
<p>If you need to enforce some specific code style rules, you can implement your
5656
own fixers. There is a <a class="reference internal" href="cookbook_fixers.html"><span class="doc">cookbook</span></a> with basic instructions on how to build a new fixer.</p>
5757
<p>For each rule you want to add, create a class that implements
58-
<a class="reference external" href="https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/v3.89.2/src/Fixer/FixerInterface.php">PhpCsFixer\Fixer\FixerInterface</a>.
58+
<a class="reference external" href="https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/v3.90.0/src/Fixer/FixerInterface.php">PhpCsFixer\Fixer\FixerInterface</a>.
5959
Note that there is a specific constraint
6060
regarding custom rules names: they must match the pattern
6161
<code class="docutils literal notranslate"><span class="pre">/^[A-Z][a-zA-Z0-9]*\/[a-z][a-z0-9_]*$/</span></code>.</p>
@@ -78,9 +78,9 @@ <h1>Creating custom rules<a class="headerlink" href="#creating-custom-rules" tit
7878
</div>
7979
<p>There are several interfaces that your fixers can also implement if needed:</p>
8080
<ul class="simple">
81-
<li><p><a class="reference external" href="https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/v3.89.2/src/Fixer/WhitespacesAwareFixerInterface.php">PhpCsFixer\Fixer\WhitespacesAwareFixerInterface</a>: for fixers that need to know the configured indentation and line endings;</p></li>
82-
<li><p><a class="reference external" href="https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/v3.89.2/src/Fixer/ConfigurableFixerInterface.php">PhpCsFixer\Fixer\ConfigurableFixerInterface</a>: to create a configurable fixer;</p></li>
83-
<li><p><a class="reference external" href="https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/v3.89.2/src/Fixer/DeprecatedFixerInterface.php">PhpCsFixer\Fixer\DeprecatedFixerInterface</a>: to deprecate a fixer.</p></li>
81+
<li><p><a class="reference external" href="https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/v3.90.0/src/Fixer/WhitespacesAwareFixerInterface.php">PhpCsFixer\Fixer\WhitespacesAwareFixerInterface</a>: for fixers that need to know the configured indentation and line endings;</p></li>
82+
<li><p><a class="reference external" href="https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/v3.90.0/src/Fixer/ConfigurableFixerInterface.php">PhpCsFixer\Fixer\ConfigurableFixerInterface</a>: to create a configurable fixer;</p></li>
83+
<li><p><a class="reference external" href="https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/v3.90.0/src/Fixer/DeprecatedFixerInterface.php">PhpCsFixer\Fixer\DeprecatedFixerInterface</a>: to deprecate a fixer.</p></li>
8484
</ul>
8585
</section>
8686

doc/installation.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<div class="clearfix">
2828
<div class="logo_header"><a href="/">PHP Coding Standards Fixer</a></div>
2929
<h1 class="title_header">
30-
<strong>Folding Bike (v3.89.2)</strong> edition
30+
<strong>Folding Bike (v3.90.0)</strong> edition
3131
</h1>
3232
</div>
3333
</div>

doc/ruleSets/Auto.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<div class="clearfix">
2828
<div class="logo_header"><a href="/">PHP Coding Standards Fixer</a></div>
2929
<h1 class="title_header">
30-
<strong>Folding Bike (v3.89.2)</strong> edition
30+
<strong>Folding Bike (v3.90.0)</strong> edition
3131
</h1>
3232
</div>
3333
</div>
@@ -52,7 +52,7 @@ <h1 class="title_header">
5252

5353
<section id="rule-set-auto">
5454
<h1>Rule set <code class="docutils literal notranslate"><span class="pre">&#64;auto</span></code><a class="headerlink" href="#rule-set-auto" title="Permalink to this heading"></a></h1>
55-
<p>Default rule set. Applies newest PER-CS and optimizations for PHP, based on project’s composer.json file.</p>
55+
<p>Default rule set. Applies newest <code class="docutils literal notranslate"><span class="pre">PER-CS</span></code> and optimizations for <code class="docutils literal notranslate"><span class="pre">PHP</span></code>, based on project’s <code class="docutils literal notranslate"><span class="pre">composer.json</span></code> file.</p>
5656
<section id="warning">
5757
<h2>Warning<a class="headerlink" href="#warning" title="Permalink to this heading"></a></h2>
5858
<section id="automatic-rule-set">

doc/ruleSets/AutoPHPMigration.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<div class="clearfix">
2828
<div class="logo_header"><a href="/">PHP Coding Standards Fixer</a></div>
2929
<h1 class="title_header">
30-
<strong>Folding Bike (v3.89.2)</strong> edition
30+
<strong>Folding Bike (v3.90.0)</strong> edition
3131
</h1>
3232
</div>
3333
</div>
@@ -52,7 +52,7 @@ <h1 class="title_header">
5252

5353
<section id="rule-set-autophpmigration">
5454
<h1>Rule set <code class="docutils literal notranslate"><span class="pre">&#64;autoPHPMigration</span></code><a class="headerlink" href="#rule-set-autophpmigration" title="Permalink to this heading"></a></h1>
55-
<p>Rules to improve code for PHP. Target version is automatically detected from project’s “composer.json file.</p>
55+
<p>Migration rules to improve code towards the minimum <code class="docutils literal notranslate"><span class="pre">PHP</span></code> supported by your project (taken from <code class="docutils literal notranslate"><span class="pre">composer.json</span></code> file).</p>
5656
<section id="warning">
5757
<h2>Warning<a class="headerlink" href="#warning" title="Permalink to this heading"></a></h2>
5858
<section id="automatic-rule-set">

doc/ruleSets/AutoPHPMigrationRisky.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<div class="clearfix">
2828
<div class="logo_header"><a href="/">PHP Coding Standards Fixer</a></div>
2929
<h1 class="title_header">
30-
<strong>Folding Bike (v3.89.2)</strong> edition
30+
<strong>Folding Bike (v3.90.0)</strong> edition
3131
</h1>
3232
</div>
3333
</div>
@@ -52,7 +52,7 @@ <h1 class="title_header">
5252

5353
<section id="rule-set-autophpmigration-risky">
5454
<h1>Rule set <code class="docutils literal notranslate"><span class="pre">&#64;autoPHPMigration:risky</span></code><a class="headerlink" href="#rule-set-autophpmigration-risky" title="Permalink to this heading"></a></h1>
55-
<p>Rules to improve code for PHP. Target version is automatically detected from project’s “composer.json file.</p>
55+
<p>Migration rules to improve code towards the minimum <code class="docutils literal notranslate"><span class="pre">PHP</span></code> supported by your project (taken from <code class="docutils literal notranslate"><span class="pre">composer.json</span></code> file).</p>
5656
<section id="warnings">
5757
<h2>Warnings<a class="headerlink" href="#warnings" title="Permalink to this heading"></a></h2>
5858
<section id="this-set-contains-rules-that-are-risky">
@@ -72,7 +72,11 @@ <h2>Rules candidates<a class="headerlink" href="#rules-candidates" title="Permal
7272
<li><p><a class="reference internal" href="PHP7x1MigrationRisky.html"><span class="doc">&#64;PHP7x1Migration:risky</span></a></p></li>
7373
<li><p><a class="reference internal" href="PHP7x4MigrationRisky.html"><span class="doc">&#64;PHP7x4Migration:risky</span></a></p></li>
7474
<li><p><a class="reference internal" href="PHP8x0MigrationRisky.html"><span class="doc">&#64;PHP8x0Migration:risky</span></a></p></li>
75+
<li><p><a class="reference internal" href="PHP8x1MigrationRisky.html"><span class="doc">&#64;PHP8x1Migration:risky</span></a></p></li>
7576
<li><p><a class="reference internal" href="PHP8x2MigrationRisky.html"><span class="doc">&#64;PHP8x2Migration:risky</span></a></p></li>
77+
<li><p><a class="reference internal" href="PHP8x3MigrationRisky.html"><span class="doc">&#64;PHP8x3Migration:risky</span></a></p></li>
78+
<li><p><a class="reference internal" href="PHP8x4MigrationRisky.html"><span class="doc">&#64;PHP8x4Migration:risky</span></a></p></li>
79+
<li><p><a class="reference internal" href="PHP8x5MigrationRisky.html"><span class="doc">&#64;PHP8x5Migration:risky</span></a></p></li>
7680
</ul>
7781
</section>
7882
</section>

doc/ruleSets/AutoPHPUnitMigrationRisky.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<div class="clearfix">
2828
<div class="logo_header"><a href="/">PHP Coding Standards Fixer</a></div>
2929
<h1 class="title_header">
30-
<strong>Folding Bike (v3.89.2)</strong> edition
30+
<strong>Folding Bike (v3.90.0)</strong> edition
3131
</h1>
3232
</div>
3333
</div>
@@ -52,7 +52,7 @@ <h1 class="title_header">
5252

5353
<section id="rule-set-autophpunitmigration-risky">
5454
<h1>Rule set <code class="docutils literal notranslate"><span class="pre">&#64;autoPHPUnitMigration:risky</span></code><a class="headerlink" href="#rule-set-autophpunitmigration-risky" title="Permalink to this heading"></a></h1>
55-
<p>Rules to improve test code for PHPUnit. Target version is automatically detected from project’s “composer.json file.</p>
55+
<p>Migration rules to improve test code towards the minimum <code class="docutils literal notranslate"><span class="pre">PHPUnit</span></code> supported by your project (taken from <code class="docutils literal notranslate"><span class="pre">composer.json</span></code> file).</p>
5656
<section id="warnings">
5757
<h2>Warnings<a class="headerlink" href="#warnings" title="Permalink to this heading"></a></h2>
5858
<section id="this-set-contains-rules-that-are-risky">

doc/ruleSets/AutoRisky.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<div class="clearfix">
2828
<div class="logo_header"><a href="/">PHP Coding Standards Fixer</a></div>
2929
<h1 class="title_header">
30-
<strong>Folding Bike (v3.89.2)</strong> edition
30+
<strong>Folding Bike (v3.90.0)</strong> edition
3131
</h1>
3232
</div>
3333
</div>
@@ -52,7 +52,7 @@ <h1 class="title_header">
5252

5353
<section id="rule-set-auto-risky">
5454
<h1>Rule set <code class="docutils literal notranslate"><span class="pre">&#64;auto:risky</span></code><a class="headerlink" href="#rule-set-auto-risky" title="Permalink to this heading"></a></h1>
55-
<p>Default (risky) rule set. Applies newest PER-CS and optimizations for PHP and PHPUnit, based on project’s composer.json file.</p>
55+
<p>Default (risky) rule set. Applies newest <code class="docutils literal notranslate"><span class="pre">PER-CS</span></code> and optimizations for <code class="docutils literal notranslate"><span class="pre">PHP</span></code> and <code class="docutils literal notranslate"><span class="pre">PHPUnit</span></code>, based on project’s <code class="docutils literal notranslate"><span class="pre">composer.json</span></code> file.</p>
5656
<section id="warnings">
5757
<h2>Warnings<a class="headerlink" href="#warnings" title="Permalink to this heading"></a></h2>
5858
<section id="this-set-contains-rules-that-are-risky">

0 commit comments

Comments
 (0)