Skip to content

Commit 2739f4f

Browse files
authored
fix(core): do not redefine TEMPEST_START (#806)
1 parent e966ecb commit 2739f4f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Tempest/Core/src/Kernel.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ public static function boot(
3939
array $discoveryLocations = [],
4040
?Container $container = null,
4141
): self {
42-
define('TEMPEST_START', value: hrtime(true));
42+
if (! defined('TEMPEST_START')) {
43+
define('TEMPEST_START', value: hrtime(true));
44+
}
4345

4446
return (new self(
4547
root: $root,

0 commit comments

Comments
 (0)