Tests on Symfony 8 stable

This commit is contained in:
Hugo Alliaume
2025-11-27 14:49:11 +01:00
parent df30d0c255
commit 88fc7f29df
2 changed files with 3 additions and 2 deletions

View File

@@ -33,7 +33,7 @@
},
"require-dev": {
"doctrine/collections": "^1.6.8|^2.0",
"doctrine/doctrine-bundle": "^2.4.3|^3.0.0",
"doctrine/doctrine-bundle": "^2.4.3|^3.0|^4.0",
"doctrine/orm": "^2.9.4|^3.0",
"fakerphp/faker": "^1.22",
"mtdowling/jmespath.php": "^2.6",

View File

@@ -138,7 +138,8 @@ final class Kernel extends BaseKernel
$doctrineConfig['orm']['controller_resolver']['auto_mapping'] = true;
}
}
if (\PHP_VERSION_ID >= 80400 && version_compare($doctrineBundleVersion, '2.15.0', '>=')) {
if (\PHP_VERSION_ID >= 80400 && version_compare($doctrineBundleVersion, '2.15.0', '>=') && version_compare($doctrineBundleVersion, '4.0.0', '<')) {
$doctrineConfig['orm']['enable_native_lazy_objects'] = true;
}
}