Skip to content
This repository was archived by the owner on Nov 18, 2025. It is now read-only.

Commit f5114d1

Browse files
committed
🐛 fix return type for log_as() function
Signed-off-by: otengkwame <[email protected]>
1 parent b20e104 commit f5114d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

framework/core/Common.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ function log_message($level, $message)
483483
*
484484
* @param string the error level: 'error', 'debug' or 'info'
485485
* @param string the error message
486-
* @return void
486+
* @return object
487487
*/
488488
function log_as()
489489
{
@@ -704,7 +704,7 @@ function _error_handler($severity, $message, $filepath, $line)
704704
function _exception_handler($exception)
705705
{
706706
$_error =& load_class('Exceptions', 'core');
707-
$_error->log_exception('error', 'Exception: '.$exception->getMessage(), $exception->getFile(), $exception->getLine());
707+
$_error->log_exception('Error', 'Exception: '.$exception->getMessage(), $exception->getFile(), $exception->getLine());
708708

709709
is_cli() OR set_status_header(500);
710710
// Should we display the error?

0 commit comments

Comments
 (0)