8000 Remove `return $this` from `ClearableErrorsInterface::clearErrors()` · symfony/symfony@ed74efd · GitHub
[go: up one dir, main page]

Skip to content

Commit ed74efd

Browse files
committed
Remove return $this from ClearableErrorsInterface::clearErrors()
1 parent 5c1a657 commit ed74efd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Symfony/Component/Form/ClearableErrorsInterface.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ interface ClearableErrorsInterface
2222
* Removes all the errors of this form.
2323
*
2424
* @param bool $deep Whether to remove errors from child forms as well
25-
*
26-
* @return $this
2725
*/
2826
public function clearErrors(bool $deep = false);
2927
}

src/Symfony/Component/Form/Form.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -797,8 +797,10 @@ public function getErrors($deep = false, $flatten = true)
797797

798798
/**
799799
* {@inheritdoc}
800+
*
801+
* @return $this
800802
*/
801-
public function clearErrors(bool $deep = false)
803+
public function clearErrors(bool $deep = false): self
802804
{
803805
$this->errors = array();
804806

0 commit comments

Comments
 (0)
0