Skip to content

Commit 61023a7

Browse files
minor #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 #51834 | License | MIT This would solve the inconsistency between ContainerInterface and Container described in #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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy