matomo icon indicating copy to clipboard operation
matomo copied to clipboard

Updates Symfony components to 5.4.x

Open sgiehl opened this issue 2 years ago • 6 comments

Description:

We are currently still using Symfony Console (and other components) in version 2.6. This one is quite outdated and has some issues with PHP 8.1 (deprecation warnings).

This PR will update all components to the last available version 5.4.x.

So far there were two issues I have identified after the update:

  • The monolog class ConsoleFormatter does not longer have multiple constructor parameters, but takes an option array instead. This was adjusted in plugins/Monolog/config/cli.php

  • The execute method of a console command is now kind of forced to return an integer. Before that was kind of expected, but all other values were silently treated as 0. I have adjusted our command class, so it will catch and log that error and return 0 in that case. That way commands that may not yet be adjusted won't fail. I have nevertheless changed all commands in core here and already created PRs for the submodule plugins.

  • The DialogHelper has been deprecated and removed meanwhile. I've added it back for BC, but we need to migrate our usage to the QuestionsHelper instead.

Review

sgiehl avatar Nov 16 '21 14:11 sgiehl

Thanks for the comments @mickaelandrieu. This PR and the symfony updates are now scheduled for the 5.0.0 milestone as our initial look suggests it will require BC breaks.

justinvelluppillai avatar Dec 03 '21 00:12 justinvelluppillai

If you don't want this PR to be closed automatically in 28 days then you need to assign the label 'Do not close'.

github-actions[bot] avatar Dec 19 '21 01:12 github-actions[bot]

Updated the PR so it will require Symfony 5.4 instead. Once I've fixed all tests, this one should be ready to review.

sgiehl avatar Aug 23 '22 15:08 sgiehl

This issue is in "needs review" but there has been no activity for 7 days. ping @matomo-org/core-reviewers

github-actions[bot] avatar Sep 02 '22 02:09 github-actions[bot]

This issue is in "needs review" but there has been no activity for 7 days. ping @matomo-org/core-reviewers

github-actions[bot] avatar Sep 10 '22 02:09 github-actions[bot]

This issue is in "needs review" but there has been no activity for 7 days. ping @matomo-org/core-reviewers

github-actions[bot] avatar Sep 19 '22 02:09 github-actions[bot]

This issue is in "needs review" but there has been no activity for 7 days. ping @matomo-org/core-reviewers

github-actions[bot] avatar Sep 27 '22 02:09 github-actions[bot]

This issue is in "needs review" but there has been no activity for 7 days. ping @matomo-org/core-reviewers

github-actions[bot] avatar Oct 05 '22 02:10 github-actions[bot]

This issue is in "needs review" but there has been no activity for 7 days. ping @matomo-org/core-reviewers

github-actions[bot] avatar Oct 18 '22 02:10 github-actions[bot]

Is this ready for review/merge now @sgiehl ? Maybe if you fix the conflicts we can push it along

justinvelluppillai avatar Nov 29 '22 22:11 justinvelluppillai

Conflicts solved. Should be ready to review again.

sgiehl avatar Nov 30 '22 14:11 sgiehl

This issue is in "needs review" but there has been no activity for 7 days. ping @matomo-org/core-reviewers

github-actions[bot] avatar Dec 08 '22 01:12 github-actions[bot]