You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: index.html
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -89,6 +89,9 @@ <h3>Installation<a class="headerlink" href="#installation" title="Permalink to t
89
89
<h3>Run with Docker<aclass="headerlink" href="#run-with-docker" title="Permalink to this heading">¶</a></h3>
90
90
<p>PHP CS Fixer can be run in a Docker container.</p>
91
91
<p>You can use pre-built Docker images to run <codeclass="docutils literal notranslate"><spanclass="pre">php-cs-fixer</span></code>.</p>
92
+
<divclass="highlight-console notranslate"><divclass="highlight"><pre><span></span><spanclass="go">docker run -v $(pwd):/code ghcr.io/php-cs-fixer/php-cs-fixer:${FIXER_VERSION:-3-php8.3} fix src</span>
93
+
</pre></div>
94
+
</div>
92
95
<p><codeclass="docutils literal notranslate"><spanclass="pre">$FIXER_VERSION</span></code> used in example above is an identifier of a release you want to use, which is based on Fixer and PHP versions combined. There are different tags for each Fixer’s SemVer level and PHP version with syntax <codeclass="docutils literal notranslate"><spanclass="pre"><php-cs-fixer-version>-php<php-version></span></code>. For example:</p>
0 commit comments