minor #36654 Fix Form annotation (VincentLanglet)

This PR was merged into the 3.4 branch.

Discussion
----------

Fix Form annotation

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? |no
| License       | MIT

Symfony form component provide his own exception `OutOfBoundsException` which is implementing `ExceptionInterface`. Form are returning this custom `OutOfBoundsException`, but the phpDoc say it's an original `\OutOfBoundsException`, which is not extending the `ExceptionInterface`.

This can provide issue with static analysis tools.

Commits
-------

67b744929f Fix annotation
This commit is contained in:
Christian Flothmann 2020-05-02 08:35:59 +02:00
commit d765a0999d
2 changed files with 2 additions and 2 deletions

View File

@ -932,7 +932,7 @@ class Form implements \IteratorAggregate, FormInterface
*
* @return FormInterface The child form
*
* @throws \OutOfBoundsException if the named child does not exist
* @throws OutOfBoundsException if the named child does not exist
*/
public function offsetGet($name)
{

View File

@ -62,7 +62,7 @@ interface FormInterface extends \ArrayAccess, \Traversable, \Countable
*
* @return self
*
* @throws \OutOfBoundsException if the named child does not exist
* @throws Exception\OutOfBoundsException if the named child does not exist
*/
public function get($name);