shopware icon indicating copy to clipboard operation
shopware copied to clipboard

bin/console debug:container --env-vars not working

Open wannevancamp opened this issue 1 year ago • 1 comments

PHP Version

8.2

Shopware Version

6.5.7.1

Expected behaviour

Show all environment variables, with their values, referenced in Symfony's container configuration. See: https://symfony.com/doc/current/configuration.html#listing-environment-variables

Actual behaviour

The following error is shown:

[Symfony\Component\DependencyInjection\Exception\RuntimeException]
  The default value of an env() parameter must be a string or null, but "int" given to "env(SHOPWARE_DBAL_TIMEZONE_SUPPORT_ENABLED)".

There are other env variables with the same issue:

  • env(SHOPWARE_ES_INDEXING_BATCH_SIZE)
  • env(APP_URL_CHECK_DISABLED)
  • ...

How to reproduce

Run the following command: php bin/console debug:container --env-vars

wannevancamp avatar Nov 23 '23 07:11 wannevancamp