Upgrade to 3.1.2

This commit is contained in:
Bastian Allgeier
2019-04-09 14:34:12 +02:00
parent 852a14595e
commit eb29ef6d6c
58 changed files with 535 additions and 258 deletions

View File

@@ -19,14 +19,14 @@ class Txt extends Handler
/**
* Converts an array to an encoded Kirby txt string
*
* @param array $data
* @param mixed $data
* @return string
*/
public static function encode(array $data): string
public static function encode($data): string
{
$result = [];
foreach ($data as $key => $value) {
foreach ((array)$data as $key => $value) {
if (empty($key) === true || $value === null) {
continue;
}