Skip to content

Commit 8c215d1

Browse files
committed
micro: use spl_object_id()
1 parent 304d67e commit 8c215d1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/DependencyInjection/ContainerFactory.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
use function is_dir;
4747
use function is_file;
4848
use function is_readable;
49-
use function spl_object_hash;
49+
use function spl_object_id;
5050
use function sprintf;
5151
use function str_ends_with;
5252
use function substr;
@@ -64,7 +64,7 @@ class ContainerFactory
6464

6565
private string $configDirectory;
6666

67-
private static ?string $lastInitializedContainerId = null;
67+
private static ?int $lastInitializedContainerId = null;
6868

6969
/** @api */
7070
public function __construct(private string $currentWorkingDirectory, private bool $checkDuplicateFiles = false)
@@ -154,7 +154,7 @@ public function create(
154154
/** @internal */
155155
public static function postInitializeContainer(Container $container): void
156156
{
157-
$containerId = spl_object_hash($container);
157+
$containerId = spl_object_id($container);
158158
if ($containerId === self::$lastInitializedContainerId) {
159159
return;
160160
}

0 commit comments

Comments
 (0)