Skip to content

Commit 2128043

Browse files
committed
FIX minor corrections to the README
1 parent 2457e5b commit 2128043

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ $person = new Person();
135135

136136
## MustUseResult
137137

138-
Add #[MustUseResult] attribute that can be used on methods. This enforces the result from the method call must be used.
138+
A `#[MustUseResult]` attribute can be used on methods. This enforces the result from the method call must be used.
139139

140140
E.g. if you have a class like this:
141141

@@ -158,7 +158,7 @@ You might misuse the `add` method in this way:
158158

159159
```php
160160
$cost = new Money(5);
161-
$cost->add(6); // ERROR - This statement has no effect.
161+
$cost->add(6); // ERROR - The call to the add method has no effect.
162162
```
163163

164164
But this would be OK:

0 commit comments

Comments
 (0)