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 46
46
use function is_dir ;
47
47
use function is_file ;
48
48
use function is_readable ;
49
- use function spl_object_hash ;
49
+ use function spl_object_id ;
50
50
use function sprintf ;
51
51
use function str_ends_with ;
52
52
use function substr ;
@@ -64,7 +64,7 @@ class ContainerFactory
64
64
65
65
private string $ configDirectory ;
66
66
67
- private static ?string $ lastInitializedContainerId = null ;
67
+ private static ?int $ lastInitializedContainerId = null ;
68
68
69
69
/** @api */
70
70
public function __construct (private string $ currentWorkingDirectory , private bool $ checkDuplicateFiles = false )
@@ -154,7 +154,7 @@ public function create(
154
154
/** @internal */
155
155
public static function postInitializeContainer (Container $ container ): void
156
156
{
157
- $ containerId = spl_object_hash ($ container );
157
+ $ containerId = spl_object_id ($ container );
158
158
if ($ containerId === self ::$ lastInitializedContainerId ) {
159
159
return ;
160
160
}
You can’t perform that action at this time.
0 commit comments