build(deps-dev): bump rector/rector from 2.3.0 to 2.3.1#5236
build(deps-dev): bump rector/rector from 2.3.0 to 2.3.1#5236dependabot[bot] wants to merge 2 commits intomainfrom
Conversation
Bumps [rector/rector](https://github.com/rectorphp/rector) from 2.3.0 to 2.3.1. - [Release notes](https://github.com/rectorphp/rector/releases) - [Commits](rectorphp/rector@2.3.0...2.3.1) --- updated-dependencies: - dependency-name: rector/rector dependency-version: 2.3.1 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
|
magento-lts/lib/Varien/Data/Tree.php Lines 149 to 159 in 0ff7816 imo the case for Varien_Data_Tree_Node doesn't make any sense? (that's since 1.1.1) |
|
|
The Rector run highlighted an odd construct in public function getPath($node)
{
if ($node instanceof Varien_Data_Tree_Node) {
} elseif (is_numeric($node)) {
if ($_node = $this->getNodeById($node)) {
return $_node->getPath();
}
}
return null;
}That means passing a A more reasonable implementation would be: /**
* Return path for node parameter
*
* @param Varien_Data_Tree_Node|int|string $node
* @return string|null
*/
public function getPath($node)
{
if ($node instanceof Varien_Data_Tree_Node) {
return $node->getPath();
}
if (is_numeric($node)) {
if ($_node = $this->getNodeById($node)) {
return $_node->getPath();
}
}
return null;
}This keeps the existing behavior for numeric IDs and only makes the However, since this changes runtime behavior (even if it is likely fixing a long‑standing bug), the issues revealed by Rector should be addressed in a separate follow‑up PR, not in this Rector bump. |
|
A newer version of rector/rector exists, but since this PR has been edited by someone other than Dependabot I haven't updated it. You'll get a PR for the updated version as normal once this PR is merged. |



Bumps rector/rector from 2.3.0 to 2.3.1.
Release notes
Sourced from rector/rector's releases.
Commits
9afc1bbRector 2.3.1cab5db4Updated Rector to commit 184dd0296b2bdcb7165a0879b0a830f5c77bcc44cffe29bUpdated Rector to commit 7891d874ac7cc0f7b3a0dc2dc128085f9038bfa991bfe39Updated Rector to commit 936a5e4c3b04a0c1d1ec2ffbd7536616508880def8b90eeUpdated Rector to commit 679e314c916c0c61ef41ca1e40d39694c0ec10b6274878fUpdated Rector to commit 9548641518f579776d75d5f0a4a1c1ea2cc615a8d69a8edUpdated Rector to commit 2681751795bc580f4bab291b42cb7a6adbba03b869f087cUpdated Rector to commit ee36fdd7f17a8da512450f07aa1c41455602d9525c090b3Updated Rector to commit f06b3589a61e31c31beef9374c4d83aaa40e61932d1139bUpdated Rector to commit e72e68284d82dcb8beb0f5bac1c1ec2f8a88494aYou can trigger a rebase of this PR by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)