Skip to content

Commit c2337de

Browse files
committed
#37 Improve ContainerInterface::has() specification
1 parent 8a95cad commit c2337de

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/ContainerInterface.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ Users of dependency injections containers (DIC) are referred to as `user`.
3434

3535
- `has` takes one unique parameter: an entry identifier. It MUST return `true`
3636
if an entry identifier is known to the container and `false` if it is not.
37+
`has($id)` returning true does not mean that `get($id)` will not throw an exception.
38+
It does however mean that `get($id)` will not throw a `NotFoundException`.
3739

3840
### 1.2 Exceptions
3941

0 commit comments

Comments
 (0)