Files
opensourcepos/app/Views/errors/cli/error_php.php
BudsieBuds e83c23cf0c Improve code style and PSR-12 compliance (#4204)
* Improve code style and PSR-12 compliance
- refactored code formatting to adhere to PSR-12 guidelines
- standardized coding conventions across the codebase
- added missing framework files and reverted markup changes
- reformatted arrays for enhanced readability
- updated language files for consistent styling and clarity
- minor miscellaneous improvements
2025-05-02 19:37:06 +02:00

27 lines
733 B
PHP

<?php
/**
* @var string $severity
* @var string $message
* @var string $filepath
* @var int $line
*/
?>
A PHP Error was encountered
Severity: <?= esc($severity), "\n" ?>
Message: <?= esc($message), "\n" ?>
Filename: <?= esc($filepath), "\n" ?>
Line Number: <?= $line ?>
<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE): ?>
Backtrace:
<?php foreach (debug_backtrace() as $error): ?>
<?php if (isset($error['file']) && strpos($error['file'], realpath(ROOTPATH)) !== 0): ?>
File: <?= esc($error['file']), "\n" ?>
Line: <?= $error['line'], "\n" ?>
Function: <?= esc($error['function']), "\n\n" ?>
<?php endif ?>
<?php endforeach ?>
<?php endif ?>