Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@
"laminas/laminas-permissions-rbac": "^3.4",
"laminas/laminas-servicemanager": "^3.18 || ^4.0",
"laminas/laminas-stdlib": "^3.1",
"doctrine/persistence": "^2.0 || ^3.0"
"doctrine/persistence": "^3.0 || ^4.0"
},
"require-dev": {
"laminas/laminas-coding-standard": "^3.1",
"phpunit/phpunit": "^11.5",
"doctrine/orm": "^3.5",
"symfony/cache": "^6.4",
"symfony/cache": "^6.4 || ^7.0 || ^8.0",
"psalm/plugin-phpunit": "^0.19.0",
"vimeo/psalm": "^6.13"
},
Expand Down
77 changes: 39 additions & 38 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 11 additions & 1 deletion test/Role/ObjectRepositoryRoleProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@

use function count;
use function is_array;
use function sys_get_temp_dir;

use const PHP_VERSION_ID;

#[CoversClass(ObjectRepositoryRoleProvider::class)]
class ObjectRepositoryRoleProviderTest extends TestCase
Expand Down Expand Up @@ -226,10 +229,17 @@ public function testObjectRepositoryProviderForHierarchicalRole()

private function getObjectManager(): ObjectManager|EntityManager
{
$config = ORMSetup::createAttributeMetadataConfiguration(
$config = ORMSetup::createAttributeMetadataConfiguration(
paths: [__DIR__ . '/../Asset'],
isDevMode: true
);

if (PHP_VERSION_ID >= 80400) {
$config->enableNativeLazyObjects(true);
$config->setProxyDir(sys_get_temp_dir());
$config->setProxyNamespace('Proxies');
}

$connection = DriverManager::getConnection([
'driverClass' => Driver::class,
'path' => null,
Expand Down