Skip to content

Commit aaef692

Browse files
committed
Improve docs and add composer package keywords
1 parent bac84d7 commit aaef692

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
# NullContainer
44

5-
`NullContainer` is a [PSR-11](https://www.php-fig.org/psr/psr-11/) container implementation that is always empty.
5+
`NullContainer` is a [PSR-11](https://www.php-fig.org/psr/psr-11/) container implementation that is always empty.
6+
7+
This is a [NullObject](https://en.wikipedia.org/wiki/Null_object_pattern) pattern implementation for PSR-11.
68

79
This is useful when you want to provide an optional `ContainerInterface` dependency,
810
but don't want to deal with nullable values.

composer.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22
"name": "technically/null-container",
33
"description": "Null (always empty) PSR-11 container implementation",
44
"type": "library",
5+
"keywords": [
6+
"php",
7+
"psr-11",
8+
"psr-container",
9+
"container",
10+
"null",
11+
"null-object"
12+
],
513
"require": {
614
"php": ">=7.1",
715
"psr/container": "^1.0"

0 commit comments

Comments
 (0)