Skip to content

Commit

Permalink
Handle 6.4 deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean85 committed Jan 16, 2024
1 parent 2e0c667 commit d0c90c6
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/Functional/TestApp/TestKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ public function registerContainerConfiguration(LoaderInterface $loader)
$version = '_61';
}

if (version_compare(Kernel::VERSION, '6.4.0') >= 0) {
$version = '_64';
}

$configFile = sprintf('/config_test%s%s.yml', $version, $suffix);
$loader->load(__DIR__ . $configFile);
}
Expand Down
7 changes: 7 additions & 0 deletions tests/Functional/TestApp/config_test_64.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
imports:
- { resource: ./config_test_61.yml }

framework:
handle_all_throwables: true
php_errors:
log: true
6 changes: 6 additions & 0 deletions tests/Functional/TestApp/config_test_64_docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
imports:
- { resource: ./config_test_61_docker.yml }

framework:
handle_all_throwables: true
php_errors: true

0 comments on commit d0c90c6

Please sign in to comment.