Verified Commit cf46b0dc authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3456425 by mondrake, alexpott: FormStateInterface::setError*() PHPDoc are incorrect

(cherry picked from commit 82a5a701)
parent 24c1497a
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -536,7 +536,7 @@ public static function hasAnyErrors();
   *   element is ['foo', 'bar', 'baz'] then you may set an error on 'foo'
   *   or 'foo][bar][baz'. Setting an error on 'foo' sets an error for every
   *   element where the #parents array starts with 'foo'.
   * @param string $message
   * @param string|\Stringable $message
   *   (optional) The error message to present to the user.
   *
   * @return $this
@@ -548,7 +548,7 @@ public function setErrorByName($name, $message = '');
   *
   * @param array $element
   *   The form element.
   * @param string $message
   * @param string|\Stringable $message
   *   (optional) The error message to present to the user.
   *
   * @return $this