Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d765a09

Browse filesBrowse 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
Copy full SHA for d765a09

File tree

Expand file treeCollapse file tree

2 files changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+2
-2
lines changed

‎src/Symfony/Component/Form/Form.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Form/Form.php
+1-1Lines 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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Form/FormInterface.php
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.