mirror of
https://github.com/getgrav/grav.git
synced 2026-07-13 04:33:29 +02:00
more casting fixes
This commit is contained in:
@@ -468,7 +468,7 @@ class GravExtension extends AbstractExtension implements GlobalsInterface
|
||||
*/
|
||||
public function base64EncodeFilter($str)
|
||||
{
|
||||
return base64_encode($str);
|
||||
return base64_encode((string) $str);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -1874,9 +1874,9 @@ abstract class Utils
|
||||
}
|
||||
|
||||
if ($block) {
|
||||
$string = $parsedown->text($string);
|
||||
$string = $parsedown->text((string) $string);
|
||||
} else {
|
||||
$string = $parsedown->line($string);
|
||||
$string = $parsedown->line((string) $string);
|
||||
}
|
||||
|
||||
return $string;
|
||||
|
||||
Reference in New Issue
Block a user