File tree Expand file tree Collapse file tree 2 files changed +19
-3
lines changed
tests/Fixtures/DependencyInjection Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Original file line number Diff line number Diff 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'
Original file line number Diff line number Diff line change 1717
1818use Qossmic \RichModelForms \RichModelFormsBundle ;
1919use Symfony \Bundle \FrameworkBundle \FrameworkBundle ;
20+ use Symfony \Bundle \FrameworkBundle \Test \NotificationAssertionsTrait ;
2021use Symfony \Component \Config \Loader \LoaderInterface ;
2122use Symfony \Component \DependencyInjection \Compiler \PassConfig ;
2223use 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
You can’t perform that action at this time.
0 commit comments