Skip to content

Commit 51a045d

Browse files
committed
minor #133 add CI jobs for Symfony 6.4 (xabbuh)
This PR was merged into the 0.2-dev branch. Discussion ---------- add CI jobs for Symfony 6.4 Commits ------- 2bc5efd add CI jobs for Symfony 6.4
2 parents fffcaa7 + 2bc5efd commit 51a045d

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

.github/workflows/ci.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,18 @@ jobs:
101101
- php-version: '8.1'
102102
composer-options: '--prefer-stable'
103103
symfony-version: '6.3.*'
104+
- php-version: '8.1'
105+
composer-options: '--prefer-stable'
106+
symfony-version: '6.4.*'
104107
- php-version: '8.2'
105108
composer-options: '--prefer-stable'
106109
symfony-version: '5.4.*'
107110
- php-version: '8.2'
108111
composer-options: '--prefer-stable'
109112
symfony-version: '6.3.*'
113+
- php-version: '8.2'
114+
composer-options: '--prefer-stable'
115+
symfony-version: '6.4.*'
110116

111117
steps:
112118
- name: 'Check out'

tests/Fixtures/DependencyInjection/Kernel.php

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
use Qossmic\RichModelForms\RichModelFormsBundle;
1919
use Symfony\Bundle\FrameworkBundle\FrameworkBundle;
20+
use Symfony\Bundle\FrameworkBundle\Test\NotificationAssertionsTrait;
2021
use Symfony\Component\Config\Loader\LoaderInterface;
2122
use Symfony\Component\DependencyInjection\Compiler\PassConfig;
2223
use Symfony\Component\DependencyInjection\ContainerBuilder;
@@ -35,11 +36,20 @@ public function registerBundles(): array
3536
public function registerContainerConfiguration(LoaderInterface $loader): void
3637
{
3738
$loader->load(function (ContainerBuilder $container): void {
39+
$frameworkConfig = [
40+
'http_method_override' => false,
41+
'php_errors' => [
42+
'log' => false,
43+
],
44+
];
45+
46+
if (trait_exists(NotificationAssertionsTrait::class)) {
47+
$frameworkConfig['handle_all_throwables'] = false;
48+
}
49+
3850
$container->addCompilerPass(new PublicTestAliasPass(), PassConfig::TYPE_BEFORE_OPTIMIZATION, 1000);
3951
$container->setParameter('kernel.secret', __FILE__);
40-
$container->loadFromExtension('framework', [
41-
'http_method_override' => false,
42-
]);
52+
$container->loadFromExtension('framework', $frameworkConfig);
4353
});
4454
}
4555

0 commit comments

Comments
 (0)