PHP 8.1 support (#1209)

This commit is contained in:
Alex Tselegidis 2022-02-23 11:02:18 +01:00
parent 5569369b15
commit 0100d0bd63

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);
}
// --------------------------------------------------------------------