File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 4646use function is_dir ;
4747use function is_file ;
4848use function is_readable ;
49- use function spl_object_hash ;
49+ use function spl_object_id ;
5050use function sprintf ;
5151use function str_ends_with ;
5252use 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 }
You can’t perform that action at this time.
0 commit comments