Closed MdNadimHossain closed 1 year ago
Confirming this issue - Drupal 9.4 uses Symfony 4 but this change to site-alias requiring Filesystem/Path (only available in Symfony 5) has now broken drush sql:sync with the same error as above.
Drupal 9.4.8 PHP 7.4 Drush 10.6.2
We reverted the switch from Symfony/Filesystem/Path and went back to using webmozart/path-util for the 3.x branch. Released 3.1.7 to address this. A new 4.x branch was created to continue forward using Symfony/Filesystem/Path instead of webmosart/path-util. This new branch is not compatible with symfony/filesystem 4.x.
Drush will also need some changes to retain compatibility with symfony/filesystem 4.x; that will be next. For now, though, you should be able to use Drupal 9 with consolidation/site-alias:3.1.7 and an older version of Drush 11.
Steps to reproduce
Used consolidation/site-alias 3.1.6 (latest release) with the symfony/filesystem 4.4 version, cause other packages in composer has this version dependency.
Expected behavior
The build should work, as it is mentioned in the composer.json it should work with 4.4 - https://github.com/consolidation/site-alias/compare/3.1.5...3.1.6#diff-d2ab9925cad7eac58e0ff4cc0d251a937ecf49e4b6bf57f8b95aab76648a9d34R29
Actual behavior
I get the following error, because symfony/filesystem 4.4 version does not have the Symfony\Component\Filesystem\Path
System Configuration
Which O.S. and PHP version are you using?