Skip to content

Commit 860ef29

Browse files
committed
ICM: Readme fixed.
1 parent 539b2b6 commit 860ef29

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ class Foo extends Command
118118

119119
#### Several traits conflict?
120120

121-
If you're using some other cool `illuminated/console-%` packages, well, you can find yourself getting "traits conflict".
121+
If you're using some other cool `illuminated/console-%` packages, well, then you can find yourself getting "traits conflict".
122122
For example, if you're trying to build [loggable command](https://packagist.org/packages/illuminated/console-logger), which is protected against overlapping:
123123
```php
124124
class Foo extends Command
@@ -130,7 +130,7 @@ class Foo extends Command
130130
}
131131
```
132132

133-
You'll get fatal error here, the "traits conflict", because both of these traits are overriding `initialize` method:
133+
You'll get fatal error, the "traits conflict", because both of these traits are overriding `initialize` method:
134134
>If two traits insert a method with the same name, a fatal error is produced, if the conflict is not explicitly resolved.
135135
136136
But don't worry, solution is very simple. Just override `initialize` method by yourself, and initialize traits in required order:

0 commit comments

Comments
 (0)