Skip to content

Commit 8a95cad

Browse files
committed
Fix #37 Improve Container::has() description
1 parent ff97e87 commit 8a95cad

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Interop/Container/ContainerInterface.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ public function get($id);
2828
/**
2929
* Returns true if the container can return an entry for the given identifier.
3030
* Returns false otherwise.
31+
*
32+
* `has($id)` returning true does not mean that `get($id)` will not throw an exception.
33+
* It does however mean that `get($id)` will not throw a `NotFoundException`.
3134
*
3235
* @param string $id Identifier of the entry to look for.
3336
*

0 commit comments

Comments
 (0)