From 30b1f7b74c36bca96c069fd9aef7b63f96cb01b0 Mon Sep 17 00:00:00 2001 From: Kevin Mian Kraiker Date: Thu, 3 Oct 2024 18:44:31 -0300 Subject: [PATCH] Update CI for PHP 8.2+ --- .github/workflows/ci.yml | 10 +- .idea/php.xml | 407 +++++++++++++++++++++++++++++++++++---- tests/Kernel.php | 9 +- 3 files changed, 385 insertions(+), 41 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c63a373..04a59b0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,7 +22,7 @@ jobs: strategy: fail-fast: false matrix: - php: ['7.4', '8.0', '8.1'] + php: ['8.0', '8.1', '8.2', '8.3'] composer-version: [''] composer: [''] phpunit: [''] @@ -32,10 +32,10 @@ jobs: include: # Minimum supported dependencies with the latest and oldest PHP version - - php: 8.1 + - php: 8.3 composer: --prefer-stable --prefer-lowest deprecation: max[direct]=0 - - php: 7.4 + - php: 8.0 composer: --prefer-stable --prefer-lowest deprecation: max[direct]=0 @@ -44,6 +44,10 @@ jobs: symfony: '^5.0' - php: 8.1 symfony: '^6.0' + - php: 8.2 + symfony: '^6.0' + - php: 8.3 + symfony: '^6.0' # dev - php: 8.1 diff --git a/.idea/php.xml b/.idea/php.xml index d7e50b9..6359c63 100644 --- a/.idea/php.xml +++ b/.idea/php.xml @@ -74,38 +74,7 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -124,22 +93,388 @@ - - + + - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + /usr/local/etc/php/conf.d/docker-php-ext-bcmath.ini, /usr/local/etc/php/conf.d/docker-php-ext-intl.ini, /usr/local/etc/php/conf.d/docker-php-ext-opcache.ini, /usr/local/etc/php/conf.d/docker-php-ext-pcntl.ini, /usr/local/etc/php/conf.d/docker-php-ext-pcov.ini, /usr/local/etc/php/conf.d/docker-php-ext-soap.ini, /usr/local/etc/php/conf.d/docker-php-ext-sockets.ini, /usr/local/etc/php/conf.d/docker-php-ext-sodium.ini, /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini, /usr/local/etc/php/conf.d/docker-php-ext-xsl.ini, /usr/local/etc/php/conf.d/docker-php-ext-zip.ini + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + /usr/local/etc/php/conf.d/docker-php-ext-bcmath.ini, /usr/local/etc/php/conf.d/docker-php-ext-intl.ini, /usr/local/etc/php/conf.d/docker-php-ext-opcache.ini, /usr/local/etc/php/conf.d/docker-php-ext-pcntl.ini, /usr/local/etc/php/conf.d/docker-php-ext-pcov.ini, /usr/local/etc/php/conf.d/docker-php-ext-soap.ini, /usr/local/etc/php/conf.d/docker-php-ext-sockets.ini, /usr/local/etc/php/conf.d/docker-php-ext-sodium.ini, /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini, /usr/local/etc/php/conf.d/docker-php-ext-xsl.ini, /usr/local/etc/php/conf.d/docker-php-ext-zip.ini + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + /usr/local/etc/php/conf.d/docker-php-ext-bcmath.ini, /usr/local/etc/php/conf.d/docker-php-ext-intl.ini, /usr/local/etc/php/conf.d/docker-php-ext-opcache.ini, /usr/local/etc/php/conf.d/docker-php-ext-pcntl.ini, /usr/local/etc/php/conf.d/docker-php-ext-pcov.ini, /usr/local/etc/php/conf.d/docker-php-ext-soap.ini, /usr/local/etc/php/conf.d/docker-php-ext-sockets.ini, /usr/local/etc/php/conf.d/docker-php-ext-sodium.ini, /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini, /usr/local/etc/php/conf.d/docker-php-ext-xsl.ini, /usr/local/etc/php/conf.d/docker-php-ext-zip.ini + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + /usr/local/etc/php/conf.d/docker-php-ext-bcmath.ini, /usr/local/etc/php/conf.d/docker-php-ext-intl.ini, /usr/local/etc/php/conf.d/docker-php-ext-opcache.ini, /usr/local/etc/php/conf.d/docker-php-ext-pcntl.ini, /usr/local/etc/php/conf.d/docker-php-ext-pcov.ini, /usr/local/etc/php/conf.d/docker-php-ext-soap.ini, /usr/local/etc/php/conf.d/docker-php-ext-sockets.ini, /usr/local/etc/php/conf.d/docker-php-ext-sodium.ini, /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini, /usr/local/etc/php/conf.d/docker-php-ext-xsl.ini, /usr/local/etc/php/conf.d/docker-php-ext-zip.ini + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/Kernel.php b/tests/Kernel.php index d720d79..6fe94a6 100644 --- a/tests/Kernel.php +++ b/tests/Kernel.php @@ -73,7 +73,7 @@ public function registerContainerConfiguration(LoaderInterface $loader): void { $loader->load(function (ContainerBuilder $container) { $container->setParameter('kernel.project_dir', Path::canonicalize(__DIR__.'/..')); - $container->loadFromExtension('framework', [ + $frameworkConfig = [ 'test' => true, 'secret' => 'test', 'router' => [ @@ -82,7 +82,12 @@ public function registerContainerConfiguration(LoaderInterface $loader): void 'utf8' => true, ], 'http_method_override' => false, - ]); + ]; + if (self::MAJOR_VERSION >= 6) { + $frameworkConfig['handle_all_throwables'] = false; + $frameworkConfig['php_errors']['log'] = false; + } + $container->loadFromExtension('framework', $frameworkConfig); $sailorBundleConfigs = []; if (null !== $this->configPath) { $sailorBundleConfigs['config_path'] = $this->configPath;