Files
opensourcepos/app/Views/errors/cli/error_php.php
objecttothis 7b224be665 PSR compliance and formatting changes
- Replaced TRUE/FALSE constants with true/false keywords
- Replaced NULL constant with null keyword
- Replaced `<?php echo` in views with shortened `<?=`
- Added missing variable declaration
- Added missing function return type in declaration
- replaced `== true`, `== false`, `=== true` and `=== false` in if statements with simplified forms
2024-06-15 17:19:15 +02:00

28 lines
685 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 ?>