Skip to content

Commit b0ea0bb

Browse files
committed
add support for Symfony 8
1 parent 7498a1c commit b0ea0bb

2 files changed

Lines changed: 16 additions & 15 deletions

File tree

composer.json

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
"doctrine/orm": "^2.14 || ^3.0",
1717
"doctrine/persistence": "^3.0 || ^4.0",
1818
"psr/clock": "^1.0",
19-
"symfony/config": "^6.4 || ^7.1",
20-
"symfony/dependency-injection": "^6.4 || ^7.1",
21-
"symfony/http-kernel": "^6.4 || ^7.1",
22-
"symfony/security-core": "^6.4 || ^7.1",
19+
"symfony/config": "^6.4 || ^7.3 || ^8.0",
20+
"symfony/dependency-injection": "^6.4 || ^7.3 || ^8.0",
21+
"symfony/http-kernel": "^6.4 || ^7.3 || ^8.0",
22+
"symfony/security-core": "^6.4 || ^7.3 || ^8.0",
2323
"twig/twig": "^3.0"
2424
},
2525
"require-dev": {
@@ -38,24 +38,22 @@
3838
"psalm/plugin-phpunit": "^0.18 || ^0.19",
3939
"psalm/plugin-symfony": "^5.0",
4040
"rector/rector": "^1.1 || ^2.0",
41-
"symfony/browser-kit": "^6.4 || ^7.1",
42-
"symfony/cache": "^6.4 || ^7.1",
43-
"symfony/filesystem": "^6.4 || ^7.1",
44-
"symfony/framework-bundle": "^6.4 || ^7.1",
45-
"symfony/http-foundation": "^6.4 || ^7.1",
46-
"symfony/security-bundle": "^6.4 || ^7.1",
47-
"symfony/twig-bundle": "^6.4 || ^7.1",
48-
"symfony/var-dumper": "^6.4 || ^7.1",
41+
"symfony/browser-kit": "^6.4 || ^7.3 || ^8.0",
42+
"symfony/cache": "^6.4 || ^7.3 || ^8.0",
43+
"symfony/filesystem": "^6.4 || ^7.3 || ^8.0",
44+
"symfony/framework-bundle": "^6.4 || ^7.3 || ^8.0",
45+
"symfony/http-foundation": "^6.4 || ^7.3 || ^8.0",
46+
"symfony/security-bundle": "^6.4 || ^7.3 || ^8.0",
47+
"symfony/twig-bundle": "^6.4 || ^7.3 || ^8.0",
48+
"symfony/var-dumper": "^6.4 || ^7.3 || ^8.0",
4949
"vimeo/psalm": "^5.7 || ^6.10"
5050
},
5151
"conflict": {
52-
"doctrine/doctrine-bundle": "<2.7",
5352
"gedmo/doctrine-extensions": "<3.7",
54-
"symfony/framework-bundle": "<5.4",
5553
"symfony/string": "5.4.0-BETA1 || 5.4.0-RC1"
5654
},
5755
"minimum-stability": "dev",
58-
"prefer-stable": true,
56+
"prefer-stable": false,
5957
"autoload": {
6058
"psr-4": {
6159
"SimpleThings\\EntityAudit\\": "src"

tests/BaseTestCase.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@ protected function getEntityManager(): EntityManager
9696
}
9797

9898
$config = ORMSetup::createAttributeMetadataConfiguration($mappingPaths, true);
99+
if (PHP_VERSION_ID >= 80400) {
100+
$config->enableNativeLazyObjects(true);
101+
}
99102
$config->setSchemaManagerFactory(new DefaultSchemaManagerFactory());
100103
$connection = $this->_getConnection($config);
101104

0 commit comments

Comments
 (0)