Update to Symfony 4#86
Conversation
allows compoer install on php71 and php72
* Update implementation of `Cm\RedisSession\Handler\ConfigInterface` * Add Redis Sentinel config options to `setup:config:set` command
Replace references of `Symfony\Console\Helper\TableHelper` with `Symfony\Console\Helper\Table`. `new` was used instead of DI to mirror existing reference in https://github.com/magento/magento2/blob/a083717504f63fd22748fb42d74b63c2906226ef/app/code/Magento/Developer/Console/Command/DiInfoCommand.php#L84 Not sure which is preferred.
It is replaced with `Symfony\Console\Helper\QuestionHelper`
`Symfony\Component\Console\Helper\ProgressBar` has been declared Final and cannot be mocked.
The second constructor argument of parent class `Symfony\Component\Console\Output\Output` must be boolean.
composer.json
Outdated
| "magento/composer": "~1.2.0", | ||
| "colinmollenhour/php-redis-session-abstract": "~1.3.8", | ||
| "composer/composer": "~1.6.0", | ||
| "friendsofphp/php-cs-fixer": "~2.10.0", |
There was a problem hiding this comment.
Why is it moved to require from require-dev?
There was a problem hiding this comment.
No reason. Moved back to require-dev.
composer.json
Outdated
| "symfony/console": "~2.3, !=2.7.0", | ||
| "symfony/event-dispatcher": "~2.1", | ||
| "symfony/process": "~2.1", | ||
| "sebastian/phpcpd": "~3.0.0", |
There was a problem hiding this comment.
Why is it moved to require from require-dev?
There was a problem hiding this comment.
No reason. Moved back to require-dev.
| }, | ||
| "require": { | ||
| "php": "7.0.2|7.0.4|~7.0.6|~7.1.0", | ||
| "php": "~7.1.3||~7.2.0", |
| "composer/composer": "1.4.1", | ||
| "magento/composer": "~1.2.0", | ||
| "colinmollenhour/php-redis-session-abstract": "~1.3.8", | ||
| "composer/composer": "~1.6.0", |
There was a problem hiding this comment.
Please update Magento/Framework/composer.json with the new version.
Same for symfony/console and symfony/process
|
Confirmed: |
|
Docs needed:
@shrielenee, could you please help with this? See updated PHP versions https://github.com/magento-engcom/php-7.2-support/pull/86/files#diff-b5d0ee8c97c7abd7e3fa29b9a27d1780R15 |
Update to "~7.1.3||~7.2.0"
Match library versions with those in project composer.json
|
@buskamuza The requested changes have been made. I also updated |
|
Waiting for PRs to internal repositories before this one can be merged. |
| "require": { | ||
| "magento/magento2-functional-testing-framework": "1.0.0", | ||
| "php": "7.0.2|7.0.4|~7.0.6|~7.1.0" | ||
| "php": "~7.1.3||~7.2.0" |
There was a problem hiding this comment.
I just noticed that MFTF tests has been also updated. I think it's better to be done in a separate task.
MFTF tests are run separately from the Magento application, so they can still run on its own supported PHP version. In scope of updating MFTF dependencies we should verify that the framework is not broken, which increases scope for this task.
There was a problem hiding this comment.
Sounds good. I'll back those changes out.
| }, | ||
| "require": { | ||
| "php": "7.0.2|~7.0.6|~7.1.0", | ||
| "php": "~7.1.3||~7.2.0", |
There was a problem hiding this comment.
I propose to skip this one too for now, and make the update in a separate task.
Description
Updates libraries to versions supporting PHP 7.2. This includes the Symfony components and brings composer.lock to a state that allows
composer installon PHP ~7.1.3 and ~7.2.0Fixed Issues (if relevant)
Contribution checklist