Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d40f37e

Browse files
committedDec 11, 2023
Fix & config for SF > 7
1 parent cc9f052 commit d40f37e

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed
 

‎phpstan-baseline.neon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ parameters:
441441
path: tests/Functional/Controller/GraphControllerTest.php
442442

443443
-
444-
message: "#^Method Overblog\\\\GraphQLBundle\\\\Tests\\\\Functional\\\\TestCase\\:\\:createKernel\\(\\) should return Symfony\\\\Component\\\\HttpKernel\\\\KernelInterface but returns object\\.$#"
444+
message: "#^Method Overblog\\\\GraphQLBundle\\\\Tests\\\\Functional\\\\BaseTestCase\\:\\:createKernel\\(\\) should return Symfony\\\\Component\\\\HttpKernel\\\\KernelInterface but returns object\\.$#"
445445
count: 1
446446
path: tests/Functional/BaseTestCase.php
447447

‎tests/Functional/App/TestKernel.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,15 @@ public function registerContainerConfiguration(LoaderInterface $loader): void
7474
}
7575

7676
// @phpstan-ignore-next-line
77-
if (Kernel::VERSION < 60200) {
77+
if (Kernel::VERSION_ID < 60200) {
7878
$loader->load(__DIR__.'/config/config_pre_62.yml');
7979
}
8080

81+
// @phpstan-ignore-next-line
82+
if (Kernel::VERSION_ID >= 70000) {
83+
$loader->load(__DIR__.'/config/config_post_70.yml');
84+
}
85+
8186
$loader->load(function (ContainerBuilder $container): void {
8287
$container->addCompilerPass($this);
8388
});
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
framework:
2+
handle_all_throwables: false

‎tests/Functional/App/config/validator/config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@ imports:
22
- { resource: ../config.yml }
33

44
framework:
5+
#annotations: true
56
validation:
67
enabled: true
8+
#enable_annotations: true
79

810
overblog_graphql:
911
definitions:

0 commit comments

Comments
 (0)
Please sign in to comment.