Skip to content

Commit 4e74830

Browse files
[12.x] Define LARAVEL_START if not already defined (#57222)
* Define LARAVEL_START if not already defined * Update ComposerScripts.php --------- Co-authored-by: Taylor Otwell <[email protected]>
1 parent 5dcd293 commit 4e74830

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Illuminate/Foundation/ComposerScripts.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ public static function prePackageUninstall(PackageEvent $event)
6363

6464
require_once $vendorDir.'/autoload.php';
6565

66-
define('LARAVEL_START', microtime(true));
66+
if (! defined('LARAVEL_START')) {
67+
define('LARAVEL_START', microtime(true));
68+
}
6769

6870
/** @var Application $app */
6971
$app = require_once $bootstrapFile;

0 commit comments

Comments
 (0)