Commit 7df3157
authored
chore(deps-dev): bump rector/rector from 2.4.5 to 2.5.2 (#1166)
Bumps [rector/rector](https://github.com/rectorphp/rector) from 2.4.5 to
2.5.2.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/rectorphp/rector/releases">rector/rector's
releases</a>.</em></p>
<blockquote>
<h2>Released Rector 2.5.2</h2>
<h2>Bugfixes 🐛</h2>
<ul>
<li><strong>Match class + path in unused-skip reporting</strong> — fix
combined <code>class => [paths]</code> skips being wrongly flagged as
unused (<a
href="https://redirect.github.com/rectorphp/rector-src/pull/8073">#8073</a>)</li>
<li><strong>Mark skip used only when rule would change the file</strong>
— a class/path skip counts as "used" only if the rule would
actually touch that file, killing false "used" hits (<a
href="https://redirect.github.com/rectorphp/rector-src/pull/8076">#8076</a>)</li>
<li><strong>Improve unused-skip resolver methods</strong> — cleaner
resolution internals (<a
href="https://redirect.github.com/rectorphp/rector-src/pull/8072">#8072</a>)</li>
<li><strong>Track used skips as <code>class => [paths]</code>
map</strong> — richer per-path skip tracking backing the report (<a
href="https://redirect.github.com/rectorphp/rector-src/pull/8074">#8074</a>)</li>
</ul>
<h2>Released Rector 2.5.1</h2>
<h2>Bugfixes 🐛</h2>
<ul>
<li><strong>Skip unused-skip reporting on narrowed runs</strong> - no
more false "unused skip" noise when running Rector on a subset
of paths (<a
href="https://redirect.github.com/rectorphp/rector-src/pull/8069">#8069</a>)</li>
<li><strong>Display skips only on uncached run</strong> - skip report
shows on real runs, not when results come from cache (<a
href="https://redirect.github.com/rectorphp/rector-src/pull/8071">#8071</a>)</li>
<li><strong><code>RemoveAlwaysTrueIfConditionRector</code></strong> —
avoid scanning whole new statements on dynamic variable checks; moved
logic to <code>ExprAnalyzer</code> and bail early on defined variables
(<a
href="https://redirect.github.com/rectorphp/rector-src/pull/8057">#8057</a>)</li>
</ul>
<h2>Released Rector 2.5</h2>
<h2>New Features 🥳 🎉 🎉 🎉</h2>
<p>This release has 3 interesting new features. Let's look at them:</p>
<h3>[dx] Report skips that never matched (<a
href="https://redirect.github.com/rectorphp/rector-src/pull/8058">#8058</a>)</h3>
<ul>
<li>
<p><strong>What?</strong> - like PHPStan's
<code>reportUnusedIgnores</code>, but for Rector
<code>->withSkip()</code>. Flags skip entries that never matched
anything during the run, so you can delete stale skips.</p>
</li>
<li>
<p><strong>Why?</strong> - skips rot. You skip a path/rule to dodge a
problem, later the file moves or the rule stops firing there — the skip
lingers forever,
silently masking nothing. This surfaces dead skips so config stays
honest.</p>
</li>
</ul>
<pre lang="php"><code>// rector.php
return RectorConfig::configure()
->withSkip([
SimplifyUselessVariableRector::class => [
'*/src/Legacy/*', // still matches — fine
'*/NonexistentUnused/*', // matches nothing — stale
],
])
->reportUnusedSkips();
</code></pre>
<p>Run output:</p>
<pre lang="bash"><code> [OK] Rector is done!
<p>[WARNING] This skip is unused, it never matched any element.
You can remove it from "->withSkip()"</p>
<ul>
<li>Rector\CodeQuality\Rector\FunctionLike\SimplifyUselessVariableRector
=> <em>/NonexistentUnused/</em>
</code></pre></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/rectorphp/rector/commit/49ff6339174bdbdf50b0b35ecbcff14a05ac9e24"><code>49ff633</code></a>
Rector 2.5.2</li>
<li><a
href="https://github.com/rectorphp/rector/commit/56d179b88d55b6b4e757d07f2fd3ff7de336d45a"><code>56d179b</code></a>
Updated Rector to commit dd21759b1194fe28cd266337124fd3035c62ead9</li>
<li><a
href="https://github.com/rectorphp/rector/commit/228203d25dff9b865fa8bedac6aafda1def8091d"><code>228203d</code></a>
Updated Rector to commit 2328ea6338d2496c409aaf2d8a001052e323feda</li>
<li><a
href="https://github.com/rectorphp/rector/commit/d7cb788ef1af3aa0cadd959ffe8d80d8431b92b5"><code>d7cb788</code></a>
Updated Rector to commit 19dcdb7816f10cb502a1b2ef5a6628185f74e49d</li>
<li><a
href="https://github.com/rectorphp/rector/commit/76d81c5d3d9af21f8ab69f679addcba6e0b59a1e"><code>76d81c5</code></a>
Updated Rector to commit aea1570424613c9a0acbf80c3abeb41d7dd33dbe</li>
<li><a
href="https://github.com/rectorphp/rector/commit/34a9124ece04df818e6b4be4ecd0a4e23f4c0c64"><code>34a9124</code></a>
Rector 2.5.1</li>
<li><a
href="https://github.com/rectorphp/rector/commit/6502d601badc21dc76d1beb7b2f06c50290fb489"><code>6502d60</code></a>
Updated Rector to commit df98b3b4e5f024d2260edc233dc9cb4adfe6a3e0</li>
<li><a
href="https://github.com/rectorphp/rector/commit/b74237ccb0d58262373951230569a92454d191ae"><code>b74237c</code></a>
Updated Rector to commit 84ab911ef53267aa1c4a9466064def614e486eea</li>
<li><a
href="https://github.com/rectorphp/rector/commit/e3c4ee736319c72d8076f44e065947dd875f05cf"><code>e3c4ee7</code></a>
Updated Rector to commit 3893ea422afa3fb801ae64fa546c8a2cb24b0f97</li>
<li><a
href="https://github.com/rectorphp/rector/commit/bdd26a9967eaa72a14b78a1077ba274d80377cbf"><code>bdd26a9</code></a>
Updated Rector to commit 580b374ea3638fd50cf9b98b84445cd9fe53768e</li>
<li>Additional commits viewable in <a
href="https://github.com/rectorphp/rector/compare/2.4.5...2.5.2">compare
view</a></li>
</ul>
</details>
<br />
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>1 parent 7f60f37 commit 7df3157
1 file changed
Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments