Uncaught Error: Unknown named parameter $value in AbstractLoader.php during Sylius installation in Docker [closed]

I am trying to install Sylius CE in a Docker environment following the official documentation. I am using the make init command to initialize the environment, but during the installation process, I encounter an error while clearing the cache:

// Clearing the cache for the dev environment with debug true                   
[1] [Config] INFO: Trigger value for 'XDEBUG_TRIGGER' not found, falling back to 'XDEBUG_SESSION'
[1] [Config] INFO: Trigger value for 'XDEBUG_SESSION' not found, so not activating
[20] CRITICAL  [php] Uncaught Error: Unknown named parameter $value ["exception" => Error { …}]
In AbstractLoader.php line 104:
Unknown named parameter $value

Additional Information:

  • Docker containers are running (including MySQL, PHP, Nginx, etc.).
  • PHP version in the container is 8.3.17.
  • I am using the Sylius-Standard image.
  • The error occurs during the cache clearing step.

Steps I have taken:

  • Clone project from official repository git clone [email protected]:Sylius/Sylius-Standard.git
  • Ran make init in the terminal to initialize the environment.
  • Installed all dependencies, but the error occurs during cache clearing.
  • The error message refers to the $value parameter in the AbstractLoader.php file.

What I have tried:

  • Updated the dependencies in the project using composer install.
  • Checked the PHP version in the container (PHP 8.3.17, which should be compatible).
  • Cleared the cache using php bin/console cache:clear.
  • Restarted Docker containers.

Additional Error Information:

The error points to an unknown $value parameter in a function in the AbstractLoader.php file. I couldn’t find a clear solution after researching.

Question:
Has anyone encountered a similar issue with Sylius and knows how to resolve it? What could be the cause of this error, and how can I fix it?