Skip to content

Commit d2d3fa2

Browse files
committed
docs: better downgrade prompt
1 parent 60a1590 commit d2d3fa2

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

agents/downgrade-to-symfony-7-4-LTS.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,25 @@ Follow the next steps in order to downgrade MicroSymfony from Symfony 8 to Symfo
1010
In the `composer.json` file:
1111

1212
* Replace the required PHP version from `>=8.4` to `>=8.2`
13-
* Replace all Symfony `8.0` constraints by `7.4`
13+
* Replace all Symfony `~8.0.0` version constraints with `~7.4.0`
1414
* Update the `extra.symfony.require` constraint from `"8.0.*"` to `"7.4.*"`
1515
* Run `composer update` and verify that it completes without errors, that no dependency
1616
conflicts are reported, and that Symfony packages are resolved to version `7.4.*`
1717

1818

19+
## Compatibility Fixes
20+
21+
* In `src/Entity/User.php`, add the `eraseCredentials(): void` method required by
22+
Symfony 7.4's `UserInterface` (this method was removed from the interface in 8.0)
23+
* Add test coverage for the new method in the corresponding unit test
24+
25+
1926
## Checks
2027

2128
* Run `bin/console --version` and check that `Symfony 7.4` is returned
2229
* Run `make ci` and capture the logs in a temporary `ci.log` file
23-
* Ensure that all the tests pass
24-
* Gather the Symfony deprecations logs from the `make ci` logs to the `deprecations.log` file
30+
* Ensure that all tests pass and the full CI pipeline succeeds (tests, coverage,
31+
PHPStan, CS-Fixer, linting)
32+
* Extract the Symfony deprecation warnings from the PHPUnit output in `ci.log`
33+
into a `deprecations.log` file
2534
* Delete the `ci.log` file

0 commit comments

Comments
 (0)