Upgrade to 3.2.0

This commit is contained in:
Bastian Allgeier
2019-06-25 09:56:08 +02:00
parent 9e18cf635d
commit 9c89153d35
296 changed files with 14408 additions and 2504 deletions

View File

@@ -3,7 +3,6 @@
namespace Kirby\Form;
use Throwable;
use Kirby\Toolkit\Collection;
use Kirby\Data\Yaml;
/**
@@ -11,6 +10,12 @@ use Kirby\Data\Yaml;
* used to create a list of form fields
* and handles global form validation
* and submission
*
* @package Kirby Form
* @author Bastian Allgeier <bastian@getkirby.com>
* @link https://getkirby.com
* @copyright Bastian Allgeier GmbH
* @license https://opensource.org/licenses/MIT
*/
class Form
{
@@ -154,7 +159,7 @@ class Form
return $strings;
}
public function toArray()
public function toArray(): array
{
$array = [
'errors' => $this->errors(),