docker4drupal icon indicating copy to clipboard operation
docker4drupal copied to clipboard

Drush doesn't work on drupal 10?

Open arrubiu opened this issue 1 year ago • 5 comments

Hi! I've downloaded drupal 10.0.0 source code with composer and I add in the document root the docker-compose.yml default version. I've added only the port.

I've installed without problem drupal but I can't use drush.

If I try to run this command from the document root:

docker-compose exec --user 82 php drush --version

I obtain this errors:

Drush Launcher Version: 0.10.1
[23-Dec-2022 09:38:45 UTC] PHP Deprecated:  Use of "static" in callables is deprecated in phar:///usr/local/bin/drush/vendor/webmozart/assert/src/Assert.php on line 1973

Deprecated: Use of "static" in callables is deprecated in phar:///usr/local/bin/drush/vendor/webmozart/assert/src/Assert.php on line 1973
[23-Dec-2022 09:41:50 UTC] PHP Deprecated:  Using ${var} in strings is deprecated, use {$var} instead in /home/wodby/.composer/vendor/consolidation/config/src/Util/ArrayUtil.php on line 78

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home/wodby/.composer/vendor/consolidation/config/src/Util/ArrayUtil.php on line 78
[23-Dec-2022 09:41:50 UTC] PHP Deprecated:  Using ${var} in strings is deprecated, use {$var} instead in /home/wodby/.composer/vendor/consolidation/config/src/Util/ArrayUtil.php on line 86

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home/wodby/.composer/vendor/consolidation/config/src/Util/ArrayUtil.php on line 86
[23-Dec-2022 09:41:50 UTC] PHP Fatal error:  Declaration of Drush\Symfony\DrushArgvInput::getFirstArgument() must be compatible with Symfony\Component\Console\Input\ArgvInput::getFirstArgument(): ?string in /home/wodby/.composer/vendor/drush/drush/src/Symfony/DrushArgvInput.php on line 267

Fatal error: Declaration of Drush\Symfony\DrushArgvInput::getFirstArgument() must be compatible with Symfony\Component\Console\Input\ArgvInput::getFirstArgument(): ?string in /home/wodby/.composer/vendor/drush/drush/src/Symfony/DrushArgvInput.php on line 267

The fatal error seems the last.

What's wrong?

Thanks, Sergio

arrubiu avatar Dec 23 '22 09:12 arrubiu