Skip to content

Commit 3787b82

Browse files
authored
Merge pull request #413 from rosier/patch-1
Use spl_object_id() instead of spl_object_hash()
2 parents 462a2da + fd9afc4 commit 3787b82

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Persistence/Mapping/Driver/MappingDriverChain.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use Doctrine\Persistence\Mapping\MappingException;
99

1010
use function array_keys;
11-
use function spl_object_hash;
11+
use function spl_object_id;
1212
use function str_starts_with;
1313

1414
/**
@@ -81,7 +81,7 @@ public function getAllClassNames(): array
8181
$driverClasses = [];
8282

8383
foreach ($this->drivers as $namespace => $driver) {
84-
$oid = spl_object_hash($driver);
84+
$oid = spl_object_id($driver);
8585

8686
if (! isset($driverClasses[$oid])) {
8787
$driverClasses[$oid] = $driver->getAllClassNames();

0 commit comments

Comments
 (0)