Closed misterboe closed 2 months ago
@sabbelasichon In this case the rule should extend the line to an existing file instead of overwriting the whole file. I would just append the line at EOF if file exists.
That's what i would expect. Not good. Have to look at Flysystem
@misterboe Good catch. My bad. Could you test the new release 2.4.1
@sabbelasichon Works now - Thanks for the quick fix
Hello,
I recently updated my TYPO3 project from version 11 to 12 LTS and encountered an issue when running
rector
version 2.4 as part of the update process. My project includes a custom extension created with the ExtensionBuilder. To extend its functionality, I have modified files inConfiguration/TCA/Overrides
.The specific file paths affected are:
/Configuration/TCA/tx_[extensionName]_domain_model_[modelName].php
/Configuration/TCA/Overrides/tx_[extensionName]_domain_model_[modelName].php
For example, I had the following configuration in my Overrides file:
However, after running
rector
, the Overrides file was completely overwritten with this content:It appears that
rector
does not respect the existing content within the Overrides file.Here is my
rector
config for reference: