Closed31

PHP Composer と Symfony、PHP バージョンに関するメモ

Daichi TamakiDaichi Tamaki

Continue Targeting Switch issues Warning ¶
continue statements targeting switch control flow structures will now generate a warning. In PHP such continue statements are equivalent to break, while they behave as continue 2 in other languages.

https://www.php.net/manual/en/migration73.incompatible.php

PHP 7.3 breaks composer with continue/targeting error (solution: downgrade to 7.2)

https://github.com/composer/composer/issues/7783

BC Break: the minimum PHP version is now 7.2.5+, use the Composer 2.2 LTS if you are stuck with an older PHP (#10343)

https://github.com/composer/composer/releases/tag/2.3.0

Daichi TamakiDaichi Tamaki
$ make -f docker.mk clean build install PHP_VERSION=72 COMPOSER_VERSION=2.2.9
...

Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Nothing to install, update or remove
Package symfony/assetic-bundle is abandoned, you should avoid using it. Use symfony/webpack-encore-pack instead.
Generating autoload files
> Incenteev\ParameterHandler\ScriptHandler::buildParameters
Updating the "app/config/parameters.yml" file
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache
Clearing the cache for the dev environment with debug true
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::installAssets
Trying to install assets as symbolic links.
Installing assets for Symfony\Bundle\FrameworkBundle into web/bundles/framework
The assets were installed using symbolic links.
Installing assets for Sensio\Bundle\DistributionBundle into web/bundles/sensiodistribution
The assets were installed using symbolic links.
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::installRequirementsFile
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::prepareDeploymentTarget
$ make -f docker.mk clean build install PHP_VERSION=73 COMPOSER_VERSION=2.2.9
...

  [Symfony\Component\Debug\Exception\ContextErrorException]
  Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?

Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache handling the symfony-scripts event terminated with an exception

  [RuntimeException]
  An error occurred when executing the "'cache:clear --no-warmup'" command:

    [Symfony\Component\Debug\Exception\ContextErrorException]

    Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue
   2"?

install [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--dry-run] [--dev] [--no-suggest] [--no-dev] [--no-autoloader] [--no-progress] [--no-install] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--] [<packages>]...

ERROR: 1
$ make -f docker.mk clean build install PHP_VERSION=72 COMPOSER_VERSION=2.4.2
...

Generating autoload files
> Incenteev\ParameterHandler\ScriptHandler::buildParameters
Updating the "app/config/parameters.yml" file
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap

In Process.php line 143:

  [TypeError]
  Argument 1 passed to Symfony\Component\Process\Process::__construct() must be of the type array, string given, called in /app/tamakiii-sandbox/init-symfony/vendor/sensio/distribution-bundle/Sensio/Bundle
  /DistributionBundle/Composer/ScriptHandler.php on line 342

Exception trace:
  at phar:///usr/bin/composer/vendor/symfony/process/Process.php:143
 Symfony\Component\Process\Process->__construct() at /app/tamakiii-sandbox/init-symfony/vendor/sensio/distribution-bundle/Sensio/Bundle/DistributionBundle/Composer/ScriptHandler.php:342
 Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::executeBuildBootstrap() at /app/tamakiii-sandbox/init-symfony/vendor/sensio/distribution-bundle/Sensio/Bundle/DistributionBundle/Composer/ScriptHandler.php:82
 Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap() at phar:///usr/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:386
 Composer\EventDispatcher\EventDispatcher->executeEventPhpScript() at phar:///usr/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:246
 Composer\EventDispatcher\EventDispatcher->doDispatch() at phar:///usr/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:107
 Composer\EventDispatcher\EventDispatcher->dispatch() at phar:///usr/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:226
 Composer\EventDispatcher\EventDispatcher->doDispatch() at phar:///usr/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:123
 Composer\EventDispatcher\EventDispatcher->dispatchScript() at phar:///usr/bin/composer/src/Composer/Installer.php:374
 Composer\Installer->run() at phar:///usr/bin/composer/src/Composer/Command/InstallCommand.php:144
 Composer\Command\InstallCommand->execute() at phar:///usr/bin/composer/vendor/symfony/console/Command/Command.php:298
 Symfony\Component\Console\Command\Command->run() at phar:///usr/bin/composer/vendor/symfony/console/Application.php:1028
 Symfony\Component\Console\Application->doRunCommand() at phar:///usr/bin/composer/vendor/symfony/console/Application.php:299
 Symfony\Component\Console\Application->doRun() at phar:///usr/bin/composer/src/Composer/Console/Application.php:370
 Composer\Console\Application->doRun() at phar:///usr/bin/composer/vendor/symfony/console/Application.php:171
 Symfony\Component\Console\Application->run() at phar:///usr/bin/composer/src/Composer/Console/Application.php:138
 Composer\Console\Application->run() at phar:///usr/bin/composer/bin/composer:88
 require() at /usr/bin/composer:29

install [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--dry-run] [--dev] [--no-suggest] [--no-dev] [--no-autoloader] [--no-progress] [--no-install] [--audit] [--audit-format AUDIT-FORMAT] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--] [<packages>...]

ERROR: dial unix docker.raw.sock: connect: connection refused
$ make -f docker.mk clean build install PHP_VERSION=73 COMPOSER_VERSION=2.3.10
...

Generating autoload files
> Incenteev\ParameterHandler\ScriptHandler::buildParameters
Updating the "app/config/parameters.yml" file
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap

In Process.php line 143:

  [TypeError]
  Argument 1 passed to Symfony\Component\Process\Process::__construct() must be of the type array, string given, called in /app/tamakiii-sandbox/init-symfony/vendor/sensio/distribution-bundle/Sensio/Bundle
  /DistributionBundle/Composer/ScriptHandler.php on line 342


Exception trace:
  at phar:///usr/bin/composer/vendor/symfony/process/Process.php:143
 Symfony\Component\Process\Process->__construct() at /app/tamakiii-sandbox/init-symfony/vendor/sensio/distribution-bundle/Sensio/Bundle/DistributionBundle/Composer/ScriptHandler.php:342
 Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::executeBuildBootstrap() at /app/tamakiii-sandbox/init-symfony/vendor/sensio/distribution-bundle/Sensio/Bundle/DistributionBundle/Composer/ScriptHandler.php:82
 Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap() at phar:///usr/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:398
 Composer\EventDispatcher\EventDispatcher->executeEventPhpScript() at phar:///usr/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:248
 Composer\EventDispatcher\EventDispatcher->doDispatch() at phar:///usr/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:108
 Composer\EventDispatcher\EventDispatcher->dispatch() at phar:///usr/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:228
 Composer\EventDispatcher\EventDispatcher->doDispatch() at phar:///usr/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:125
 Composer\EventDispatcher\EventDispatcher->dispatchScript() at phar:///usr/bin/composer/src/Composer/Installer.php:372
 Composer\Installer->run() at phar:///usr/bin/composer/src/Composer/Command/InstallCommand.php:137
 Composer\Command\InstallCommand->execute() at phar:///usr/bin/composer/vendor/symfony/console/Command/Command.php:298
 Symfony\Component\Console\Command\Command->run() at phar:///usr/bin/composer/vendor/symfony/console/Application.php:1024
 Symfony\Component\Console\Application->doRunCommand() at phar:///usr/bin/composer/vendor/symfony/console/Application.php:299
 Symfony\Component\Console\Application->doRun() at phar:///usr/bin/composer/src/Composer/Console/Application.php:335
 Composer\Console\Application->doRun() at phar:///usr/bin/composer/vendor/symfony/console/Application.php:171
 Symfony\Component\Console\Application->run() at phar:///usr/bin/composer/src/Composer/Console/Application.php:130
 Composer\Console\Application->run() at phar:///usr/bin/composer/bin/composer:88
 require() at /usr/bin/composer:29

install [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--dry-run] [--dev] [--no-suggest] [--no-dev] [--no-autoloader] [--no-progress] [--no-install] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--] [<packages>...]

ERROR: 1
Daichi TamakiDaichi Tamaki
bash-4.2# yum info php73-php-pecl-xdebug php73-php-pecl-xdebug3
Loaded plugins: ovl, priorities
286 packages excluded due to repository priority protections
Available Packages
Name        : php73-php-pecl-xdebug
Arch        : x86_64
Version     : 2.9.8
Release     : 1.el7.remi
Size        : 175 k
Repo        : remi-safe
Summary     : PECL package for debugging PHP scripts
URL         : https://xdebug.org/
License     : BSD
Description : The Xdebug extension helps you debugging your script by providing a lot of
            : valuable debug information. The debug information that Xdebug can provide
            : includes the following:
            :
            : * stack and function traces in error messages with:
            :   o full parameter display for user defined functions
            :   o function name, file name and line indications
            :   o support for member functions
            : * memory allocation
            : * protection for infinite recursions
            :
            : Xdebug also provides:
            :
            : * profiling information for PHP scripts
            : * code coverage analysis
            : * capabilities to debug your scripts interactively with a debug client
            :
            : Documentation: https://xdebug.org/docs/
            :
            : Package built for PHP 7.3 as Software Collection (php73 by remi).

Name        : php73-php-pecl-xdebug3
Arch        : x86_64
Version     : 3.1.5
Release     : 1.el7.remi
Size        : 198 k
Repo        : remi-safe
Summary     : Provides functions for function traces and profiling
URL         : https://xdebug.org/
License     : BSD
Description : The Xdebug extension helps you debugging your script by providing a lot of
            : valuable debug information. The debug information that Xdebug can provide
            : includes the following:
            :
            : * stack and function traces in error messages with:
            :   o full parameter display for user defined functions
            :   o function name, file name and line indications
            :   o support for member functions
            : * memory allocation
            : * protection for infinite recursions
            :
            : Xdebug also provides:
            :
            : * profiling information for PHP scripts
            : * code coverage analysis
            : * capabilities to debug your scripts interactively with a debug client
            :
            : Documentation: https://xdebug.org/docs/
            :
            : Package built for PHP 7.3 as Software Collection (php73 by remi).
Daichi TamakiDaichi Tamaki
yum install -y php${PHP_VERSION}-php-pecl-xdebug
--- /dev/fd/12	2022-09-19 15:36:47.000000000 +0900
+++ /dev/fd/14	2022-09-19 15:36:47.000000000 +0900
@@ -1,7 +1,7 @@
 phpinfo()
 PHP Version => 7.2.34
 
-System => Linux 242c38430e70 5.10.76-linuxkit #1 SMP Mon Nov 8 10:21:19 UTC 2021 x86_64
+System => Linux 749376406cf0 5.10.76-linuxkit #1 SMP Mon Nov 8 10:21:19 UTC 2021 x86_64
 Build Date => Jun  7 2022 12:45:43
 Build System => Red Hat Enterprise Linux Server release 7.9 (Maipo)
 Build Provider => Remi's RPM repository <https://rpms.remirepo.net/>
@@ -11,6 +11,7 @@
 Loaded Configuration File => /etc/opt/remi/php72/php.ini
 Scan this dir for additional .ini files => /etc/opt/remi/php72/php.d
 Additional .ini files parsed => /etc/opt/remi/php72/php.d/10-opcache.ini,
+/etc/opt/remi/php72/php.d/15-xdebug.ini,
 /etc/opt/remi/php72/php.d/20-bz2.ini,
 /etc/opt/remi/php72/php.d/20-calendar.ini,
 /etc/opt/remi/php72/php.d/20-ctype.ini,
@@ -62,6 +63,7 @@
 This program makes use of the Zend Scripting Language Engine:
 Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
     with Zend OPcache v7.2.34, Copyright (c) 1999-2018, by Zend Technologies
+    with Xdebug v2.9.8, Copyright (c) 2002-2020, by Derick Rethans
 
 
  _______________________________________________________________________
@@ -525,6 +527,80 @@
 WDDX Support => enabled
 WDDX Session Serializer => enabled
 
+xdebug
+
+xdebug support => enabled
+Version => 2.9.8
+Support Xdebug on Patreon, GitHub, or as a business: https://xdebug.org/support
+
+Debugger => enabled
+IDE Key =>  
+
+Directive => Local Value => Master Value
+xdebug.auto_trace => Off => Off
+xdebug.cli_color => 0 => 0
+xdebug.collect_assignments => Off => Off
+xdebug.collect_includes => On => On
+xdebug.collect_params => 0 => 0
+xdebug.collect_return => Off => Off
+xdebug.collect_vars => Off => Off
+xdebug.coverage_enable => On => On
+xdebug.default_enable => On => On
+xdebug.dump.COOKIE => no value => no value
+xdebug.dump.ENV => no value => no value
+xdebug.dump.FILES => no value => no value
+xdebug.dump.GET => no value => no value
+xdebug.dump.POST => no value => no value
+xdebug.dump.REQUEST => no value => no value
+xdebug.dump.SERVER => no value => no value
+xdebug.dump.SESSION => no value => no value
+xdebug.dump_globals => On => On
+xdebug.dump_once => On => On
+xdebug.dump_undefined => Off => Off
+xdebug.file_link_format => no value => no value
+xdebug.filename_format => no value => no value
+xdebug.force_display_errors => Off => Off
+xdebug.force_error_reporting => 0 => 0
+xdebug.gc_stats_enable => Off => Off
+xdebug.gc_stats_output_dir => /tmp => /tmp
+xdebug.gc_stats_output_name => gcstats.%p => gcstats.%p
+xdebug.halt_level => 0 => 0
+xdebug.idekey => no value => no value
+xdebug.max_nesting_level => 256 => 256
+xdebug.max_stack_frames => -1 => -1
+xdebug.overload_var_dump => 2 => 2
+xdebug.profiler_append => Off => Off
+xdebug.profiler_enable => Off => Off
+xdebug.profiler_enable_trigger => Off => Off
+xdebug.profiler_enable_trigger_value => no value => no value
+xdebug.profiler_output_dir => /tmp => /tmp
+xdebug.profiler_output_name => cachegrind.out.%p => cachegrind.out.%p
+xdebug.remote_addr_header => no value => no value
+xdebug.remote_autostart => Off => Off
+xdebug.remote_connect_back => Off => Off
+xdebug.remote_cookie_expire_time => 3600 => 3600
+xdebug.remote_enable => Off => Off
+xdebug.remote_host => localhost => localhost
+xdebug.remote_log => no value => no value
+xdebug.remote_log_level => 7 => 7
+xdebug.remote_mode => req => req
+xdebug.remote_port => 9000 => 9000
+xdebug.remote_timeout => 200 => 200
+xdebug.scream => Off => Off
+xdebug.show_error_trace => Off => Off
+xdebug.show_exception_trace => Off => Off
+xdebug.show_local_vars => Off => Off
+xdebug.show_mem_delta => Off => Off
+xdebug.trace_enable_trigger => Off => Off
+xdebug.trace_enable_trigger_value => no value => no value
+xdebug.trace_format => 0 => 0
+xdebug.trace_options => 0 => 0
+xdebug.trace_output_dir => /tmp => /tmp
+xdebug.trace_output_name => trace.%c => trace.%c
+xdebug.var_display_max_children => 128 => 128
+xdebug.var_display_max_data => 512 => 512
+xdebug.var_display_max_depth => 3 => 3
+
 xml
 
 XML Support => active
@@ -611,7 +687,7 @@
 
 Variable => Value
 PATH => /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
-HOSTNAME => 242c38430e70
+HOSTNAME => 749376406cf0
 TERM => xterm
 HOME => /root
 
@@ -619,7 +695,7 @@
 
 Variable => Value
 $_SERVER['PATH'] => /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
-$_SERVER['HOSTNAME'] => 242c38430e70
+$_SERVER['HOSTNAME'] => 749376406cf0
 $_SERVER['TERM'] => xterm
 $_SERVER['HOME'] => /root
 $_SERVER['PHP_SELF'] => 
@@ -627,8 +703,8 @@
 $_SERVER['SCRIPT_FILENAME'] => 
 $_SERVER['PATH_TRANSLATED'] => 
 $_SERVER['DOCUMENT_ROOT'] => 
-$_SERVER['REQUEST_TIME_FLOAT'] => 1663569225.6088
-$_SERVER['REQUEST_TIME'] => 1663569225
+$_SERVER['REQUEST_TIME_FLOAT'] => 1663569190.8646
+$_SERVER['REQUEST_TIME'] => 1663569190
 $_SERVER['argv'] => Array
 (
 )
Generating autoload files
> Incenteev\ParameterHandler\ScriptHandler::buildParameters
Updating the "app/config/parameters.yml" file
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap
Cannot load Zend OPcache - it was already loaded
PHP Warning:  Module 'bz2' already loaded in Unknown on line 0
PHP Warning:  Module 'calendar' already loaded in Unknown on line 0
PHP Warning:  Module 'ctype' already loaded in Unknown on line 0
PHP Warning:  Module 'curl' already loaded in Unknown on line 0
PHP Warning:  Module 'dom' already loaded in Unknown on line 0
PHP Warning:  Module 'exif' already loaded in Unknown on line 0
PHP Warning:  Module 'fileinfo' already loaded in Unknown on line 0
PHP Warning:  Module 'ftp' already loaded in Unknown on line 0
PHP Warning:  Module 'gettext' already loaded in Unknown on line 0
PHP Warning:  Module 'iconv' already loaded in Unknown on line 0
PHP Warning:  Module 'intl' already loaded in Unknown on line 0
PHP Warning:  Module 'json' already loaded in Unknown on line 0
PHP Warning:  Module 'mbstring' already loaded in Unknown on line 0
PHP Warning:  Module 'PDO' already loaded in Unknown on line 0
PHP Warning:  Module 'Phar' already loaded in Unknown on line 0
PHP Warning:  Module 'posix' already loaded in Unknown on line 0
PHP Warning:  Module 'shmop' already loaded in Unknown on line 0
PHP Warning:  Module 'SimpleXML' already loaded in Unknown on line 0
PHP Warning:  Module 'sockets' already loaded in Unknown on line 0
PHP Warning:  Module 'sqlite3' already loaded in Unknown on line 0
PHP Warning:  Module 'sysvmsg' already loaded in Unknown on line 0
PHP Warning:  Module 'sysvsem' already loaded in Unknown on line 0
PHP Warning:  Module 'sysvshm' already loaded in Unknown on line 0
PHP Warning:  Module 'tokenizer' already loaded in Unknown on line 0
PHP Warning:  Module 'xml' already loaded in Unknown on line 0
PHP Warning:  Module 'xmlwriter' already loaded in Unknown on line 0
PHP Warning:  Module 'xsl' already loaded in Unknown on line 0
PHP Warning:  Module 'pdo_sqlite' already loaded in Unknown on line 0
PHP Warning:  Module 'wddx' already loaded in Unknown on line 0
PHP Warning:  Module 'xmlreader' already loaded in Unknown on line 0
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache
Cannot load Zend OPcache - it was already loaded
PHP Warning:  Module 'bz2' already loaded in Unknown on line 0
PHP Warning:  Module 'calendar' already loaded in Unknown on line 0
PHP Warning:  Module 'ctype' already loaded in Unknown on line 0
PHP Warning:  Module 'curl' already loaded in Unknown on line 0
PHP Warning:  Module 'dom' already loaded in Unknown on line 0
PHP Warning:  Module 'exif' already loaded in Unknown on line 0
PHP Warning:  Module 'fileinfo' already loaded in Unknown on line 0
PHP Warning:  Module 'ftp' already loaded in Unknown on line 0
PHP Warning:  Module 'gettext' already loaded in Unknown on line 0
PHP Warning:  Module 'iconv' already loaded in Unknown on line 0
PHP Warning:  Module 'intl' already loaded in Unknown on line 0
PHP Warning:  Module 'json' already loaded in Unknown on line 0
PHP Warning:  Module 'mbstring' already loaded in Unknown on line 0
PHP Warning:  Module 'PDO' already loaded in Unknown on line 0
PHP Warning:  Module 'Phar' already loaded in Unknown on line 0
PHP Warning:  Module 'posix' already loaded in Unknown on line 0
PHP Warning:  Module 'shmop' already loaded in Unknown on line 0
PHP Warning:  Module 'SimpleXML' already loaded in Unknown on line 0
PHP Warning:  Module 'sockets' already loaded in Unknown on line 0
PHP Warning:  Module 'sqlite3' already loaded in Unknown on line 0
PHP Warning:  Module 'sysvmsg' already loaded in Unknown on line 0
PHP Warning:  Module 'sysvsem' already loaded in Unknown on line 0
PHP Warning:  Module 'sysvshm' already loaded in Unknown on line 0
PHP Warning:  Module 'tokenizer' already loaded in Unknown on line 0
PHP Warning:  Module 'xml' already loaded in Unknown on line 0
PHP Warning:  Module 'xmlwriter' already loaded in Unknown on line 0
PHP Warning:  Module 'xsl' already loaded in Unknown on line 0
PHP Warning:  Module 'pdo_sqlite' already loaded in Unknown on line 0
PHP Warning:  Module 'wddx' already loaded in Unknown on line 0
PHP Warning:  Module 'xmlreader' already loaded in Unknown on line 0


  [Symfony\Component\DependencyInjection\Exception\InvalidArgumentException]
  Unable to parse file "/app/tamakiii-sandbox/init-symfony/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/../Resources/config/web.xml".



  [InvalidArgumentException]
  The XML file "/app/tamakiii-sandbox/init-symfony/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/../Resources/config/web.xml" is not valid.



  [Symfony\Component\Debug\Exception\ContextErrorException]
  Notice: Undefined property: DOMDocument::$documentElement


Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache handling the post-install-cmd event terminated with an exception


  [RuntimeException]
  An error occurred when executing the "'cache:clear --no-warmup'" command:



  Cannot load Zend OPcache - it was already loaded
  PHP Warning:  Module 'bz2' already loaded in Unknown on line 0
  PHP Warning:  Module 'calendar' already loaded in Unknown on line 0
  PHP Warning:  Module 'ctype' already loaded in Unknown on line 0
  PHP Warning:  Module 'curl' already loaded in Unknown on line 0
  PHP Warning:  Module 'dom' already loaded in Unknown on line 0
  PHP Warning:  Module 'exif' already loaded in Unknown on line 0
  PHP Warning:  Module 'fileinfo' already loaded in Unknown on line 0
  PHP Warning:  Module 'ftp' already loaded in Unknown on line 0
  PHP Warning:  Module 'gettext' already loaded in Unknown on line 0
  PHP Warning:  Module 'iconv' already loaded in Unknown on line 0
  PHP Warning:  Module 'intl' already loaded in Unknown on line 0
  PHP Warning:  Module 'json' already loaded in Unknown on line 0
  PHP Warning:  Module 'mbstring' already loaded in Unknown on line 0
  PHP Warning:  Module 'PDO' already loaded in Unknown on line 0
  PHP Warning:  Module 'Phar' already loaded in Unknown on line 0
  PHP Warning:  Module 'posix' already loaded in Unknown on line 0
  PHP Warning:  Module 'shmop' already loaded in Unknown on line 0
  PHP Warning:  Module 'SimpleXML' already loaded in Unknown on line 0
  PHP Warning:  Module 'sockets' already loaded in Unknown on line 0
  PHP Warning:  Module 'sqlite3' already loaded in Unknown on line 0
  PHP Warning:  Module 'sysvmsg' already loaded in Unknown on line 0
  PHP Warning:  Module 'sysvsem' already loaded in Unknown on line 0
  PHP Warning:  Module 'sysvshm' already loaded in Unknown on line 0
  PHP Warning:  Module 'tokenizer' already loaded in Unknown on line 0
  PHP Warning:  Module 'xml' already loaded in Unknown on line 0
  PHP Warning:  Module 'xmlwriter' already loaded in Unknown on line 0
  PHP Warning:  Module 'xsl' already loaded in Unknown on line 0
  PHP Warning:  Module 'pdo_sqlite' already loaded in Unknown on line 0
  PHP Warning:  Module 'wddx' already loaded in Unknown on line 0
  PHP Warning:  Module 'xmlreader' already loaded in Unknown on line 0


    [Symfony\Component\DependencyInjection\Exception\InvalidArgumentException]
    Unable to parse file "/app/tamakiii-sandbox/init-symfony/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/../Resources/config/web.xml".



    [InvalidArgumentException]
    The XML file "/app/tamakiii-sandbox/init-symfony/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/../Resources/config/web.xml" is not valid.



    [Symfony\Component\Debug\Exception\ContextErrorException]
    Notice: Undefined property: DOMDocument::$documentElement


  .


install [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--dry-run] [--dev] [--no-suggest] [--no-dev] [--no-autoloader] [--no-progress] [--no-install] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--] [<packages>]...

ERROR: 1
Daichi TamakiDaichi Tamaki
$ docker-compose run --rm php cat /etc/opt/remi/php72/php.d/15-xdebug.ini | grep -v '^;' | grep -v '^\s$'
Creating symfony-development_php_run ... done
zend_extension=xdebug.so

$ docker-compose run --rm php find / -name xdebug.so
Creating symfony-development_php_run ... done
/opt/remi/php72/root/usr/lib64/php/modules/xdebug.so

$ docker-compose run --rm php grep -Ri --color 'xdebug.so' /etc/opt/remi/php72
Creating symfony-development_php_run ... done
/etc/opt/remi/php72/php.d/15-xdebug.ini:zend_extension=xdebug.so
Daichi TamakiDaichi Tamaki
bash-4.2# composer install
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Nothing to install, update or remove
Package sensio/distribution-bundle is abandoned, you should avoid using it. No replacement was suggested.
Generating autoload files
> Incenteev\ParameterHandler\ScriptHandler::buildParameters
Updating the "app/config/parameters.yml" file
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache

 // Clearing the cache for the dev environment with debug true                                             

                                                                                                           
 [OK] Cache for the "dev" environment (debug=true) was successfully cleared.                               
                                                                                                           

> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::installAssets

 Trying to install assets as relative symbolic links.

 --- ----------------- ------------------
      Bundle            Method / Error
 --- ----------------- ------------------
  ✔   FrameworkBundle   relative symlink
 --- ----------------- ------------------

                                                                                                           
 [OK] All assets were successfully installed.                                                              
                                                                                                           

> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::installRequirementsFile
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::prepareDeploymentTarget
Daichi TamakiDaichi Tamaki
$ make clean setup install VERSION=4.4
...

$ make -f docker.mk build install PHP_VERSION=73 COMPOSER_VERSION=2.3.10 TARGET=debug
...

Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Your lock file does not contain a compatible set of packages. Please run composer update.

  Problem 1
    - doctrine/dbal is locked to version 3.4.3 and an update of this package was not requested.
    - doctrine/dbal 3.4.3 requires php ^7.4 || ^8.0 -> your php version (7.3.33) does not satisfy that requirement.
  Problem 2
    - doctrine/migrations is locked to version 3.5.2 and an update of this package was not requested.
    - doctrine/migrations 3.5.2 requires php ^7.4 || ^8.0 -> your php version (7.3.33) does not satisfy that requirement.
  Problem 3
    - laminas/laminas-code is locked to version 4.6.0 and an update of this package was not requested.
    - laminas/laminas-code 4.6.0 requires php >=7.4, <8.2 -> your php version (7.3.33) does not satisfy that requirement.
  Problem 4
    - psr/cache is locked to version 2.0.0 and an update of this package was not requested.
    - psr/cache 2.0.0 requires php >=8.0.0 -> your php version (7.3.33) does not satisfy that requirement.
  Problem 5
    - psr/container is locked to version 1.1.2 and an update of this package was not requested.
    - psr/container 1.1.2 requires php >=7.4.0 -> your php version (7.3.33) does not satisfy that requirement.
  Problem 6
    - psr/link is locked to version 1.1.1 and an update of this package was not requested.
    - psr/link 1.1.1 requires php >=8.0.0 -> your php version (7.3.33) does not satisfy that requirement.
  Problem 7
    - symfony/deprecation-contracts is locked to version v3.1.1 and an update of this package was not requested.
    - symfony/deprecation-contracts v3.1.1 requires php >=8.1 -> your php version (7.3.33) does not satisfy that requirement.
  Problem 8
    - psr/cache 2.0.0 requires php >=8.0.0 -> your php version (7.3.33) does not satisfy that requirement.
    - doctrine/orm 2.13.1 requires psr/cache ^1 || ^2 || ^3 -> satisfiable by psr/cache[2.0.0].
    - doctrine/orm is locked to version 2.13.1 and an update of this package was not requested.

ERROR: 2
Daichi TamakiDaichi Tamaki
$ make -f docker.mk build install PHP_VERSION=74 COMPOSER_VERSION=2.3.10 TARGET=debug
...

Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Your lock file does not contain a compatible set of packages. Please run composer update.

  Problem 1
    - psr/cache is locked to version 2.0.0 and an update of this package was not requested.
    - psr/cache 2.0.0 requires php >=8.0.0 -> your php version (7.4.30) does not satisfy that requirement.
  Problem 2
    - psr/link is locked to version 1.1.1 and an update of this package was not requested.
    - psr/link 1.1.1 requires php >=8.0.0 -> your php version (7.4.30) does not satisfy that requirement.
  Problem 3
    - symfony/deprecation-contracts is locked to version v3.1.1 and an update of this package was not requested.
    - symfony/deprecation-contracts v3.1.1 requires php >=8.1 -> your php version (7.4.30) does not satisfy that requirement.
  Problem 4
    - psr/cache 2.0.0 requires php >=8.0.0 -> your php version (7.4.30) does not satisfy that requirement.
    - doctrine/orm 2.13.1 requires psr/cache ^1 || ^2 || ^3 -> satisfiable by psr/cache[2.0.0].
    - doctrine/orm is locked to version 2.13.1 and an update of this package was not requested.

ERROR: 2
Daichi TamakiDaichi Tamaki
$ make -f docker.mk build install PHP_VERSION=80 COMPOSER_VERSION=2.3.10 TARGET=debug
...

Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Your lock file does not contain a compatible set of packages. Please run composer update.

  Problem 1
    - symfony/deprecation-contracts is locked to version v3.1.1 and an update of this package was not requested.
    - symfony/deprecation-contracts v3.1.1 requires php >=8.1 -> your php version (8.0.23) does not satisfy that requirement.
  Problem 2
    - symfony/deprecation-contracts v3.1.1 requires php >=8.1 -> your php version (8.0.23) does not satisfy that requirement.
    - symfony/maker-bundle v1.39.0 requires symfony/deprecation-contracts ^2.2|^3 -> satisfiable by symfony/deprecation-contracts[v3.1.1].
    - symfony/maker-bundle is locked to version v1.39.0 and an update of this package was not requested.

ERROR: 2
Daichi TamakiDaichi Tamaki
$ make -f docker.mk build install PHP_VERSION=81 COMPOSER_VERSION=2.3.10 TARGET=debug
...

Generating autoload files
108 packages you are using are looking for funding.
Use the `composer fund` command to find out more!

Run composer recipes at any time to see the status of your Symfony recipes.

Executing script cache:clear [OK]
Executing script assets:install public [OK]
Daichi TamakiDaichi Tamaki
$ make clean setup install VERSION=4.0

$ make -f docker.mk build install PHP_VERSION=72 COMPOSER_VERSION=2.2.10 TARGET=debug
...

Generating autoload files
12 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
> Incenteev\ParameterHandler\ScriptHandler::buildParameters
Creating the "app/config/parameters.yml" file
Some parameters are missing. Please provide them.
database_host (127.0.0.1):
database_port (null):
database_name (symfony):
database_user (root):
database_password (null):
mailer_transport (smtp):
mailer_host (127.0.0.1):
mailer_user (null):
mailer_password (null):
secret (ThisTokenIsNotSoSecretChangeIt):
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache

 // Clearing the cache for the dev environment with debug
 // true


 [OK] Cache for the "dev" environment (debug=true) was successfully cleared.


> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::installAssets

 Trying to install assets as relative symbolic links.


 [OK] No assets were provided by any bundle.


> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::installRequirementsFile
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::prepareDeploymentTarget
$ make -f docker.mk build install PHP_VERSION=73 COMPOSER_VERSION=2.2.10 TARGET=debug
...

Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Nothing to install, update or remove
Package sensio/distribution-bundle is abandoned, you should avoid using it. No replacement was suggested.
Package sensio/generator-bundle is abandoned, you should avoid using it. Use symfony/maker-bundle instead.
Generating autoload files
12 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
> Incenteev\ParameterHandler\ScriptHandler::buildParameters
Updating the "app/config/parameters.yml" file
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache

 // Clearing the cache for the dev environment with debug
 // true


 [OK] Cache for the "dev" environment (debug=true) was successfully cleared.


> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::installAssets

 Trying to install assets as relative symbolic links.


 [OK] No assets were provided by any bundle.


> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::installRequirementsFile
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::prepareDeploymentTarget
$ make -f docker.mk build install PHP_VERSION=73 COMPOSER_VERSION=2.3.10 TARGET=debug
...

Generating autoload files
12 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
> Incenteev\ParameterHandler\ScriptHandler::buildParameters
Updating the "app/config/parameters.yml" file
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap

In Process.php line 143:

  [TypeError]
  Argument 1 passed to Symfony\Component\Process\Process::__construct() must be of the type array, string given, called in /app/tamakiii-sandbox/init-symfony/vendor/sensio/distribution-bundle/Composer/Scri
  ptHandler.php on line 310


Exception trace:
  at phar:///usr/bin/composer/vendor/symfony/process/Process.php:143
 Symfony\Component\Process\Process->__construct() at /app/tamakiii-sandbox/init-symfony/vendor/sensio/distribution-bundle/Composer/ScriptHandler.php:310
 Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::executeBuildBootstrap() at /app/tamakiii-sandbox/init-symfony/vendor/sensio/distribution-bundle/Composer/ScriptHandler.php:88
 Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap() at phar:///usr/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:398
 Composer\EventDispatcher\EventDispatcher->executeEventPhpScript() at phar:///usr/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:248
 Composer\EventDispatcher\EventDispatcher->doDispatch() at phar:///usr/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:108
 Composer\EventDispatcher\EventDispatcher->dispatch() at phar:///usr/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:228
 Composer\EventDispatcher\EventDispatcher->doDispatch() at phar:///usr/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:125
 Composer\EventDispatcher\EventDispatcher->dispatchScript() at phar:///usr/bin/composer/src/Composer/Installer.php:372
 Composer\Installer->run() at phar:///usr/bin/composer/src/Composer/Command/InstallCommand.php:137
 Composer\Command\InstallCommand->execute() at phar:///usr/bin/composer/vendor/symfony/console/Command/Command.php:298
 Symfony\Component\Console\Command\Command->run() at phar:///usr/bin/composer/vendor/symfony/console/Application.php:1024
 Symfony\Component\Console\Application->doRunCommand() at phar:///usr/bin/composer/vendor/symfony/console/Application.php:299
 Symfony\Component\Console\Application->doRun() at phar:///usr/bin/composer/src/Composer/Console/Application.php:335
 Composer\Console\Application->doRun() at phar:///usr/bin/composer/vendor/symfony/console/Application.php:171
 Symfony\Component\Console\Application->run() at phar:///usr/bin/composer/src/Composer/Console/Application.php:130
 Composer\Console\Application->run() at phar:///usr/bin/composer/bin/composer:88
 require() at /usr/bin/composer:29

install [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--dry-run] [--dev] [--no-suggest] [--no-dev] [--no-autoloader] [--no-progress] [--no-install] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--] [<packages>...]

ERROR: 1
Daichi TamakiDaichi Tamaki
$ make clean setup install VERSION=4.4

$ make -f docker.mk build install PHP_VERSION=81 COMPOSER_VERSION=2.2.10 TARGET=debug
...

Generating autoload files
108 packages you are using are looking for funding.
Use the `composer fund` command to find out more!

Run composer recipes at any time to see the status of your Symfony recipes.

Executing script cache:clear [OK]
Executing script assets:install public [OK]
$ make -f docker.mk build install PHP_VERSION=81 COMPOSER_VERSION=2.3.10 TARGET=debug
...

Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Nothing to install, update or remove
Package symfony/debug is abandoned, you should avoid using it. Use symfony/error-handler instead.
Package symfony/inflector is abandoned, you should avoid using it. Use EnglishInflector from the String component instead.
Generating autoload files
108 packages you are using are looking for funding.
Use the `composer fund` command to find out more!

Run composer recipes at any time to see the status of your Symfony recipes.

Executing script cache:clear [OK]
Executing script assets:install public [OK]
Daichi TamakiDaichi Tamaki
$ make -f docker.mk build install PHP_VERSION=82 COMPOSER_VERSION=2.3.10 TARGET=debug
...

Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Your lock file does not contain a compatible set of packages. Please run composer update.

  Problem 1
    - laminas/laminas-code is locked to version 4.6.0 and an update of this package was not requested.
    - laminas/laminas-code 4.6.0 requires php >=7.4, <8.2 -> your php version (8.2.0RC2) does not satisfy that requirement.
  Problem 2
    - laminas/laminas-code 4.6.0 requires php >=7.4, <8.2 -> your php version (8.2.0RC2) does not satisfy that requirement.
    - friendsofphp/proxy-manager-lts v1.0.12 requires laminas/laminas-code ~3.4.1|^4.0 -> satisfiable by laminas/laminas-code[4.6.0].
    - friendsofphp/proxy-manager-lts is locked to version v1.0.12 and an update of this package was not requested.

ERROR: 2
make: *** [docker.mk:21: install] Error 2
Daichi TamakiDaichi Tamaki
$ make clean setup install VERSION=5.1
$ make -f docker.mk build install PHP_VERSION=81 COMPOSER_VERSION=2.3.10 TARGET=debug
...

Generating optimized autoload files
112 packages you are using are looking for funding.
Use the `composer fund` command to find out more!

Run composer recipes at any time to see the status of your Symfony recipes.

Executing script cache:clear [OK]
Executing script assets:install public [OK]
$ make -f docker.mk build install PHP_VERSION=82 COMPOSER_VERSION=2.3.10 TARGET=debug
...

Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Your lock file does not contain a compatible set of packages. Please run composer update.

  Problem 1
    - laminas/laminas-code is locked to version 4.6.0 and an update of this package was not requested.
    - laminas/laminas-code 4.6.0 requires php >=7.4, <8.2 -> your php version (8.2.0RC2) does not satisfy that requirement.
  Problem 2
    - laminas/laminas-code 4.6.0 requires php >=7.4, <8.2 -> your php version (8.2.0RC2) does not satisfy that requirement.
    - friendsofphp/proxy-manager-lts v1.0.12 requires laminas/laminas-code ~3.4.1|^4.0 -> satisfiable by laminas/laminas-code[4.6.0].
    - friendsofphp/proxy-manager-lts is locked to version v1.0.12 and an update of this package was not requested.

ERROR: 2
make: *** [docker.mk:21: install] Error 2
Daichi TamakiDaichi Tamaki
$ make clean setup install VERSION=5.4

$ make -f docker.mk build install PHP_VERSION=81 COMPOSER_VERSION=2.3.10 TARGET=debug
...

Generating optimized autoload files
114 packages you are using are looking for funding.
Use the `composer fund` command to find out more!

Run composer recipes at any time to see the status of your Symfony recipes.

Executing script cache:clear [OK]
Executing script assets:install public [OK]
$ make -f docker.mk build install PHP_VERSION=82 COMPOSER_VERSION=2.3.10 TARGET=debug
...

Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Your lock file does not contain a compatible set of packages. Please run composer update.

  Problem 1
    - laminas/laminas-code is locked to version 4.6.0 and an update of this package was not requested.
    - laminas/laminas-code 4.6.0 requires php >=7.4, <8.2 -> your php version (8.2.0RC2) does not satisfy that requirement.
  Problem 2
    - laminas/laminas-code 4.6.0 requires php >=7.4, <8.2 -> your php version (8.2.0RC2) does not satisfy that requirement.
    - friendsofphp/proxy-manager-lts v1.0.12 requires laminas/laminas-code ~3.4.1|^4.0 -> satisfiable by laminas/laminas-code[4.6.0].
    - friendsofphp/proxy-manager-lts is locked to version v1.0.12 and an update of this package was not requested.

ERROR: 2
Daichi TamakiDaichi Tamaki
$ make clean setup install VERSION=6.0

$ make -f docker.mk build install PHP_VERSION=81 COMPOSER_VERSION=2.3.10 TARGET=debug
...

Generating optimized autoload files
109 packages you are using are looking for funding.
Use the `composer fund` command to find out more!

Run composer recipes at any time to see the status of your Symfony recipes.

Executing script cache:clear [OK]
Executing script assets:install public [OK]
$ make -f docker.mk build install PHP_VERSION=82 COMPOSER_VERSION=2.3.10 TARGET=debug
...

Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Your lock file does not contain a compatible set of packages. Please run composer update.

  Problem 1
    - laminas/laminas-code is locked to version 4.6.0 and an update of this package was not requested.
    - laminas/laminas-code 4.6.0 requires php >=7.4, <8.2 -> your php version (8.2.0RC2) does not satisfy that requirement.
  Problem 2
    - laminas/laminas-code 4.6.0 requires php >=7.4, <8.2 -> your php version (8.2.0RC2) does not satisfy that requirement.
    - friendsofphp/proxy-manager-lts v1.0.12 requires laminas/laminas-code ~3.4.1|^4.0 -> satisfiable by laminas/laminas-code[4.6.0].
    - friendsofphp/proxy-manager-lts is locked to version v1.0.12 and an update of this package was not requested.

ERROR: 2
make: *** [docker.mk:21: install] Error 2
Daichi TamakiDaichi Tamaki

init-symfony-4.0 is uso

🧸 Sarabi-Mastiff.local:init-symfony-4.0
$ cat composer.json | grep '"symfony/symfony"'
        "symfony/symfony": "4.0.*",
Daichi TamakiDaichi Tamaki
$ make clean setup install VERSION=6.1

$ make -f docker.mk build install PHP_VERSION=81 COMPOSER_VERSION=2.3.10 TARGET=debug
...

Generating optimized autoload files
108 packages you are using are looking for funding.
Use the `composer fund` command to find out more!

Run composer recipes at any time to see the status of your Symfony recipes.

Executing script cache:clear [OK]
Executing script assets:install public [OK]
Daichi TamakiDaichi Tamaki
$ make -f docker.mk build install PHP_VERSION=82 COMPOSER_VERSION=2.3.10 TARGET=debug
...

Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Your lock file does not contain a compatible set of packages. Please run composer update.

  Problem 1
    - laminas/laminas-code is locked to version 4.6.0 and an update of this package was not requested.
    - laminas/laminas-code 4.6.0 requires php >=7.4, <8.2 -> your php version (8.2.0RC2) does not satisfy that requirement.
  Problem 2
    - laminas/laminas-code 4.6.0 requires php >=7.4, <8.2 -> your php version (8.2.0RC2) does not satisfy that requirement.
    - friendsofphp/proxy-manager-lts v1.0.12 requires laminas/laminas-code ~3.4.1|^4.0 -> satisfiable by laminas/laminas-code[4.6.0].
    - friendsofphp/proxy-manager-lts is locked to version v1.0.12 and an update of this package was not requested.

ERROR: 2
make: *** [docker.mk:21: install] Error 2
Daichi TamakiDaichi Tamaki
$ make clean setup install VERSION=4.0

$ make -f docker.mk build install PHP_VERSION=72 COMPOSER_VERSION=2.2.10 TARGET=debug
...

Generating autoload files
12 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
> Incenteev\ParameterHandler\ScriptHandler::buildParameters
Creating the "app/config/parameters.yml" file
Some parameters are missing. Please provide them.
database_host (127.0.0.1):
database_port (null):
database_name (symfony):
database_user (root):
database_password (null):
mailer_transport (smtp):
mailer_host (127.0.0.1):
mailer_user (null):
mailer_password (null):
secret (ThisTokenIsNotSoSecretChangeIt):
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache

 // Clearing the cache for the dev environment with debug
 // true


 [OK] Cache for the "dev" environment (debug=true) was successfully cleared.


> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::installAssets

 Trying to install assets as relative symbolic links.


 [OK] No assets were provided by any bundle.


> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::installRequirementsFile
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::prepareDeploymentTarget
Daichi TamakiDaichi Tamaki
$ make -f docker.mk build install PHP_VERSION=71 COMPOSER_VERSION=2.2.10 TARGET=debug
...

Loading composer repositories with package information
Info from https://repo.packagist.org: #StandWithUkraine
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - sensio/generator-bundle is locked to version v3.1.7 and an update of this package was not requested.
    - Conclusion: don't install symfony/symfony v4.0.2 (conflict analysis result)
    - Conclusion: don't install symfony/symfony v4.0.3 (conflict analysis result)
    - Conclusion: don't install symfony/symfony v4.0.4 (conflict analysis result)
    - Conclusion: don't install symfony/symfony v4.0.5 (conflict analysis result)
    - Conclusion: don't install symfony/symfony v4.0.6 (conflict analysis result)
    - Conclusion: don't install symfony/symfony v4.0.7 (conflict analysis result)
    - Conclusion: don't install symfony/symfony v4.0.8 (conflict analysis result)
    - Conclusion: don't install symfony/symfony v4.0.9 (conflict analysis result)
    - Conclusion: don't install symfony/symfony v4.0.10 (conflict analysis result)
    - Conclusion: don't install symfony/symfony v4.0.11 (conflict analysis result)
    - Conclusion: don't install symfony/symfony v4.0.12 (conflict analysis result)
    - Conclusion: don't install symfony/symfony v4.0.13 (conflict analysis result)
    - Conclusion: don't install symfony/symfony v4.0.14 (conflict analysis result)
    - Conclusion: don't install symfony/symfony v4.0.15 (conflict analysis result)
    - Conclusion: don't install symfony/symfony v4.0.1 (conflict analysis result)
    - sensio/generator-bundle v3.1.7 requires symfony/yaml ~2.7|~3.0 -> satisfiable by symfony/yaml[v2.7.0, ..., v2.8.52, v3.0.0, ..., v3.4.47].
    - Only one of these can be installed: symfony/symfony[v4.0.0, ..., v4.0.15], symfony/yaml[v2.7.0, ..., v2.8.52, v3.0.0, ..., v3.4.47]. symfony/symfony replaces symfony/yaml and thus cannot coexist with it.
    - Root composer.json requires symfony/symfony 4.0.* -> satisfiable by symfony/symfony[v4.0.0, ..., v4.0.15].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
ERROR: 2

This bundle does not support Symfony 4 and 5.Use the Maker bundle instead.
maker bundle :
https://symfony.com/doc/current/bundles/SymfonyMakerBundle/index.html

https://stackoverflow.com/questions/64506371/symfony-5-cant-install-sensio-generator-bundle

Daichi TamakiDaichi Tamaki

😕

$ git diff
diff --git a/composer.json b/composer.json
index 98e7f7c..b280c1b 100644
--- a/composer.json
+++ b/composer.json
@@ -21,7 +21,7 @@
         "sensio/framework-extra-bundle": "^5.0.0",
         "symfony/monolog-bundle": "^3.1.0",
         "symfony/polyfill-apcu": "^1.0",
-        "symfony/swiftmailer-bundle": "^2.6.4",
+        "symfony/mailer": "4.3.*",
         "symfony/symfony": "4.0.*",
         "twig/twig": "^1.0||^2.0"
     },
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Conclusion: don't install symfony/mailer v4.3.3 (conflict analysis result)
    - Conclusion: don't install symfony/mailer v4.3.11 (conflict analysis result)
    - Root composer.json requires symfony/mailer 4.3.* -> satisfiable by symfony/mailer[v4.3.0, ..., v4.3.11].
    - Conclusion: don't install symfony/symfony v4.0.2 (conflict analysis result)
    - Conclusion: don't install symfony/symfony v4.0.3 (conflict analysis result)
    - Conclusion: don't install symfony/symfony v4.0.4 (conflict analysis result)
    - Conclusion: don't install symfony/symfony v4.0.5 (conflict analysis result)
    - Conclusion: don't install symfony/symfony v4.0.6 (conflict analysis result)
    - Conclusion: don't install symfony/symfony v4.0.7 (conflict analysis result)
    - Conclusion: don't install symfony/symfony v4.0.8 (conflict analysis result)
    - Conclusion: don't install symfony/symfony v4.0.9 (conflict analysis result)
    - Conclusion: don't install symfony/symfony v4.0.10 (conflict analysis result)
    - Conclusion: don't install symfony/symfony v4.0.11 (conflict analysis result)
    - Conclusion: don't install symfony/symfony v4.0.12 (conflict analysis result)
    - Conclusion: don't install symfony/symfony v4.0.13 (conflict analysis result)
    - Conclusion: don't install symfony/symfony v4.0.14 (conflict analysis result)
    - Conclusion: don't install symfony/symfony v4.0.15 (conflict analysis result)
    - Conclusion: don't install symfony/symfony v4.0.1 (conflict analysis result)
    - symfony/mailer[v4.3.0, ..., v4.3.2] require symfony/event-dispatcher ^4.3 -> satisfiable by symfony/event-dispatcher[v4.3.0, ..., v4.4.44].
    - Only one of these can be installed: symfony/event-dispatcher[v2.7.0, ..., v2.8.52, v3.0.0, ..., v3.4.47, v4.0.0, ..., v4.4.44], symfony/symfony[v4.0.0, ..., v4.0.15]. symfony/symfony replaces symfony/event-dispatcher and thus cannot coexist with it.
    - Root composer.json requires symfony/symfony 4.0.* -> satisfiable by symfony/symfony[v4.0.0, ..., v4.0.15].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
ERROR: 2
Daichi TamakiDaichi Tamaki

Loadmap?

  • Step 1
    • Symfony 2.8 -> 3.4
  • Step 2
    • Symfony 3.4 -> 4.0
    • php71 -> php72
    • php72 -> php73
    • Composer 2.2 -> 2.3
    • Composer 2.3 -> 2.4
  • Step 3
    • php73 -> php74
    • php74 -> php80
    • php80 -> php81
  • Step 4
    • Symfony 4.0 -> 4.4
  • Step 5
  • Symfony 4.4 -> 5.0
  • Symfony 5.0 -> 5.4
  • Step 5
    • Symfony 5.4 -> 6.1
    • Symfony 6.1 -> 6.2
    • php81 -> php82 ???
このスクラップは2022/09/21にクローズされました