Skip to content

Commit 61023a7

Browse files
minor symfony#51835 [DependencyInjection] Remove inaccurate @throws on Container::get() (VincentLanglet)
This PR was squashed before being merged into the 6.4 branch. Discussion ---------- [DependencyInjection] Remove inaccurate ``@throws`` on `Container::get()` | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | Fix symfony#51834 | License | MIT This would solve the inconsistency between ContainerInterface and Container described in symfony#51834 because currently the Container phpdoc doesn't respect the ContainerInterface one. Commits ------- 5edc2b1 [DependencyInjection] Remove inaccurate ``@throws`` on `Container::get()`
2 parents 4f0a585 + 5edc2b1 commit 61023a7

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/Symfony/Component/DependencyInjection/Container.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,6 @@ public function has(string $id): bool
201201
*
202202
* @throws ServiceCircularReferenceException When a circular reference is detected
203203
* @throws ServiceNotFoundException When the service is not defined
204-
* @throws \Exception if an exception has been thrown when the service has been resolved
205204
*
206205
* @see Reference
207206
*/

0 commit comments

Comments
 (0)