Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d765a09

Browse files
committed
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 ------- 67b7449 Fix annotation
2 parents f7749c3 + 67b7449 commit d765a09

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Symfony/Component/Form/Form.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -932,7 +932,7 @@ public function offsetExists($name)
932932
*
933933
* @return FormInterface The child form
934934
*
935-
* @throws \OutOfBoundsException if the named child does not exist
935+
* @throws OutOfBoundsException if the named child does not exist
936936
*/
937937
public function offsetGet($name)
938938
{

src/Symfony/Component/Form/FormInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function add($child, $type = null, array $options = []);
6262
*
6363
* @return self
6464
*
65-
* @throws \OutOfBoundsException if the named child does not exist
65+
* @throws Exception\OutOfBoundsException if the named child does not exist
6666
*/
6767
public function get($name);
6868

0 commit comments

Comments
 (0)