We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
in TYPO3 extension Upgrade Wizard:
protected function cleanupXmlArray(array $row): array { $this->flexformTools->cleanFlexFormXML('tt_content', 'pi_flexform', $row); $xmlArray = $this->flexformTools->cleanFlexFormXML; return $xmlArray; }
FlexFormToolsArrayValueByPathRector
with changelog: https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/11.5/Deprecation-95254-TwoFlexFormToolsMethods.html
The code is changed like this:
protected function cleanupXmlArray(array $row): array { - $this->flexformTools->cleanFlexFormXML('tt_content', 'pi_flexform', $row); + $dataArray = \TYPO3\CMS\Core\Utility\ArrayUtility::setValueByPath('pi_flexform', 'tt_content', $row); $xmlArray = $this->flexformTools->cleanFlexFormXML; return $xmlArray; }
I think rector should (if in doubt) skip this code. cleanFlexFormXML is AFAIK not deprecated yet. Also, the change in code is not as intended:
FlexFormTools::cleanFlexFormXML()
$this->cleanFlexFormXML
$dataArray
$this->flexformTools->cleanFlexFormXML
2.6.0
8.2.20
11.5.38
No response
The text was updated successfully, but these errors were encountered:
[BUGFIX] Prvent incorrect flexformtools method refactor
34a90b4
Resolves: #4279
[BUGFIX] Prevent incorrect flexformtools method refactor
a5b6c46
6e362ca
Successfully merging a pull request may close this issue.
Minimal PHP Code Causing Issue
in TYPO3 extension Upgrade Wizard:
Applied rules
FlexFormToolsArrayValueByPathRector
with changelog: https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/11.5/Deprecation-95254-TwoFlexFormToolsMethods.html
The code is changed like this:
Expected Behaviour
I think rector should (if in doubt) skip this code. cleanFlexFormXML is AFAIK not deprecated yet. Also, the change in code is not as intended:
FlexFormTools::cleanFlexFormXML()
sets$this->cleanFlexFormXML
$dataArray
assigned, but not used$this->flexformTools->cleanFlexFormXML
is returned (which is not initialized)Package Version
2.6.0
PHP Version
8.2.20
TYPO3 Version
11.5.38
Notes
No response
The text was updated successfully, but these errors were encountered: