Skip to content

Commit 412cbab

Browse files
committed
Avoid overwriting constant
1 parent 9c8f156 commit 412cbab

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/BlueprintServiceProvider.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ class BlueprintServiceProvider extends ServiceProvider implements DeferrableProv
1515
public function boot()
1616
{
1717
// ...
18-
define('STUBS_PATH', dirname(__DIR__) . '/stubs');
18+
if (!defined('STUBS_PATH')) {
19+
define('STUBS_PATH', dirname(__DIR__) . '/stubs');
20+
}
1921
}
2022

2123
/**

0 commit comments

Comments
 (0)