Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/AbstractForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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
*/
Expand Down Expand Up @@ -162,5 +162,6 @@ public function getIterator()
public function __clone()
{
$this->filter = clone $this->filter;
$this->init();
}
}
4 changes: 1 addition & 3 deletions src/FormInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}