Skip to content

Commit 9f54402

Browse files
committed
fiyed typo
1 parent 995bd3a commit 9f54402

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ Internally the ```EnumMap``` is based of ```SplObjectStorage```.
9797
// create a new EnumMap
9898
$enumMap = new EnumMap('UserStatus');
9999

100-
// attach entries (by value of by instance)
100+
// attach entries (by value or by instance)
101101
$enumMap->attach(UserStatus::INACTIVE, 'inaktiv');
102102
$enumMap->attach(UserStatus::ACTIVE(), 'aktiv');
103103
$enumMap->attach(UserStatus::DELETED(), 'gelöscht');
@@ -125,7 +125,7 @@ Internally it's based of a list (array) of ordinal values.
125125
// create a new EnumSet
126126
$enumSet = new EnumSet('UserStatus');
127127

128-
// attach entries (by value of by instance)
128+
// attach entries (by value or by instance)
129129
$enumSet->attach(UserStatus::INACTIVE);
130130
$enumSet->attach(UserStatus::ACTIVE());
131131
$enumSet->attach(UserStatus::DELETED());

0 commit comments

Comments
 (0)