diff options
author | Matthieu Napoli <matthieu@mnapoli.fr> | 2016-11-07 13:43:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-07 13:43:51 +0100 |
commit | 6ff79835037703a16e646e1666287b2ad8ed1884 (patch) | |
tree | 25ea04e937e818e4b64c2bd659db0d3c55b00d93 | |
parent | 7bfe6ea38deaaef1d2693681a06a07c55dc38c8c (diff) | |
download | fig-standards-6ff79835037703a16e646e1666287b2ad8ed1884.zip fig-standards-6ff79835037703a16e646e1666287b2ad8ed1884.tar.gz fig-standards-6ff79835037703a16e646e1666287b2ad8ed1884.tar.bz2 |
[PSR-11] Improve sentence
See https://github.com/php-fig/fig-standards/pull/832#discussion_r86734803
-rw-r--r-- | proposed/container.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/proposed/container.md b/proposed/container.md index 723c565..e39aabe 100644 --- a/proposed/container.md +++ b/proposed/container.md @@ -32,7 +32,7 @@ Users of dependency injections containers (DIC) are referred to as `user`. While `ContainerInterface` only defines one mandatory parameter in `get()`, implementations MAY accept additional optional parameters. -- `has` takes one unique parameter: an entry identifier. It MUST be a string. It MUST return `true` +- `has` takes one unique parameter: an entry identifier, that MUST be a string. `has` MUST return `true` if an entry identifier is known to the container and `false` if it is not. `has($id)` returning true does not mean that `get($id)` will not throw an exception. It does however mean that `get($id)` will not throw a `NotFoundExceptionInterface`. |