PHP 8.1 support (#1209)

This commit is contained in:
Alex Tselegidis 2022-02-23 11:02:18 +01:00
parent 10a5eb46f9
commit 068dd5f6af

View file

@ -454,7 +454,7 @@ class CI_Output {
if ($this->parse_exec_vars === TRUE)
{
$memory = round(memory_get_usage() / 1024 / 1024, 2).'MB';
$output = str_replace(array('{elapsed_time}', '{memory_usage}'), array($elapsed, $memory), $output);
$output = str_replace(array('{elapsed_time}', '{memory_usage}'), array($elapsed, $memory), (string)$output);
}
// --------------------------------------------------------------------