Skip to content

Commit aecd0a5

Browse files
fix(config): Update logo font class conditionally
- Update the logo font class to be conditional based on class existence - Use `class_exists` to check for the existence of the `FigletString` class
1 parent 88b41c7 commit aecd0a5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

config/logo.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
* This source file is subject to the MIT license that is bundled.
1111
*/
1212

13+
use LaravelZero\Framework\Components\Logo\FigletString;
14+
1315
/** @noinspection PhpInternalEntityUsedInspection */
1416
return [
1517
/*
@@ -36,7 +38,7 @@
3638
|
3739
*/
3840

39-
'font' => LaravelZero\Framework\Components\Logo\FigletString::DEFAULT_FONT,
41+
'font' => class_exists(FigletString::class) ? FigletString::DEFAULT_FONT : null,
4042

4143
/*
4244
|--------------------------------------------------------------------------

0 commit comments

Comments
 (0)