nunomaduro/collision

Undefined constant "NunoMaduro\Collision\STDOUT"

jackkitley opened this issue · 0 comments

Hello, ive recently started getting this error on production. ive got it in the past but not sure what it actually means and why it would be undefined.

This one seems to have fired because max execution time somewhere in code.

Thanks

[2024-04-24 12:01:58] production.ERROR: Undefined constant "NunoMaduro\Collision\STDOUT" {"exception":"[object] (Error(code: 0): Undefined constant "NunoMaduro\Collision\STDOUT" at /var/www/html/vendor/nunomaduro/collision/src/ConsoleColor.php:182)
[stacktrace]
#0 /var/www/html/vendor/nunomaduro/collision/src/ConsoleColor.php(86): NunoMaduro\Collision\ConsoleColor->isSupported()
#1 /var/www/html/vendor/nunomaduro/collision/src/Highlighter.php(241): NunoMaduro\Collision\ConsoleColor->apply('token_comment', ' * Closes t...')
#2 /var/www/html/vendor/nunomaduro/collision/src/Highlighter.php(120): NunoMaduro\Collision\Highlighter->colorLines(Array)
#3 /var/www/html/vendor/nunomaduro/collision/src/Highlighter.php(105): NunoMaduro\Collision\Highlighter->getCodeSnippet('<?php\n\ndeclare(...', 74, 4, 4)
#4 /var/www/html/vendor/nunomaduro/collision/src/Writer.php(265): NunoMaduro\Collision\Highlighter->highlight('<?php\n\ndeclare(...', 74)
#5 /var/www/html/vendor/nunomaduro/collision/src/Writer.php(108): NunoMaduro\Collision\Writer->renderEditor(Object(Whoops\Exception\Frame))
#6 /var/www/html/vendor/nunomaduro/collision/src/Handler.php(35): NunoMaduro\Collision\Writer->write(Object(Whoops\Exception\Inspector))
#7 /var/www/html/vendor/filp/whoops/src/Whoops/Run.php(398): NunoMaduro\Collision\Handler->handle(Object(Whoops\Exception\ErrorException))
#8 /var/www/html/vendor/filp/whoops/src/Whoops/Run.php(482): Whoops\Run->handleException(Object(Whoops\Exception\ErrorException))
#9 /var/www/html/vendor/filp/whoops/src/Whoops/Run.php(510): Whoops\Run->handleError(1, 'Maximum executi...', '/var/www/html/v...', 74)
#10 [internal function]: Whoops\Run->handleShutdown()
#11 {main}
"}