diff --git a/src/AbstractForm.php b/src/AbstractForm.php index c4a2d84..30f1235 100644 --- a/src/AbstractForm.php +++ b/src/AbstractForm.php @@ -85,7 +85,7 @@ public function input($input) /** * @inheritdoc */ - public function error($input, $format = '%s', $layout = '%s') + public function error($input) { if (! $this->errorMessages) { $failure = $this->filter->getFailures(); @@ -122,7 +122,7 @@ public function form($attr = []) /** * Applies the filter to a subject. * - * @param array|object $subject The subject to be filtered. * @param array $data + * @param array $data * * @return bool */ @@ -162,5 +162,6 @@ public function getIterator() public function __clone() { $this->filter = clone $this->filter; + $this->init(); } } diff --git a/src/FormInterface.php b/src/FormInterface.php index 41e365d..8d63aca 100644 --- a/src/FormInterface.php +++ b/src/FormInterface.php @@ -23,10 +23,8 @@ public function input($input); * Return error message * * @param string $input - * @param string $format - * @param string $layout * * @return string */ - public function error($input, $format = '%s', $layout = '%s'); + public function error($input); }