Skip to content

Commit 6e83114

Browse files
committed
#37 Improve Container::has() description in the spec
1 parent c2337de commit 6e83114

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/ContainerInterface.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,9 @@ interface ContainerInterface
116116
* Returns true if the container can return an entry for the given identifier.
117117
* Returns false otherwise.
118118
*
119+
* `has($id)` returning true does not mean that `get($id)` will not throw an exception.
120+
* It does however mean that `get($id)` will not throw a `NotFoundException`.
121+
*
119122
* @param string $id Identifier of the entry to look for.
120123
*
121124
* @return boolean

0 commit comments

Comments
 (0)