Don't remove still-referenced files when updating recipes

by @wouterj

Some issues have been detected in this pull request

Issues that can be fixed by applying a patch

Review the proposed patch then download it to apply it manually or execute the following command from the repository root directory:

curl https://fabbot.io/patch/symfony/flex/1057/03ac318cd752cd87a51847949823a7798850b7aa/cs.diff | patch -p0
diff -ru tests/Update/RecipePatcherTest.php tests/Update/RecipePatcherTest.php
--- tests/Update/RecipePatcherTest.php	2025-07-05 12:55:14.351390164 +0000
+++ tests/Update/RecipePatcherTest.php	2025-07-05 12:55:16.641393881 +0000
@@ -246,7 +246,6 @@
         (new Process(['git', 'add', '-A'], FLEX_TEST_DIR))->mustRun();
         (new Process(['git', 'commit', '-m', 'Committing original files'], FLEX_TEST_DIR))->mustRun();
 
-
         $lock = $this->createMock(Lock::class);
         $lock->expects($this->any())->method('all')->willReturn([
             'symfony/security-bundle' => ['files' => ['config/packages/security.yaml']],

0
Common Typos

0
File Permissions

0
Merge Commits

0
Exception Messages Formatting

0
Usage of void in test files

0
Use ::class whenever possible

0
Deprecation Messages