Skip to content

Commit

Permalink
Use spl_object_id() instead of spl_object_hash()
Browse files Browse the repository at this point in the history
  • Loading branch information
rosier authored Jan 25, 2025
1 parent bedc1c5 commit 47a72dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Persistence/Mapping/Driver/MappingDriverChain.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use Doctrine\Persistence\Mapping\MappingException;

use function array_keys;
use function spl_object_hash;
use function spl_object_id;
use function strpos;

/**
Expand Down Expand Up @@ -98,7 +98,7 @@ public function getAllClassNames()
$driverClasses = [];

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

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

0 comments on commit 47a72dc

Please sign in to comment.