We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2457e5b commit 2128043Copy full SHA for 2128043
1 file changed
README.md
@@ -135,7 +135,7 @@ $person = new Person();
135
136
## MustUseResult
137
138
-Add #[MustUseResult] attribute that can be used on methods. This enforces the result from the method call must be used.
+A `#[MustUseResult]` attribute can be used on methods. This enforces the result from the method call must be used.
139
140
E.g. if you have a class like this:
141
@@ -158,7 +158,7 @@ You might misuse the `add` method in this way:
158
159
```php
160
$cost = new Money(5);
161
-$cost->add(6); // ERROR - This statement has no effect.
+$cost->add(6); // ERROR - The call to the add method has no effect.
162
```
163
164
But this would be OK:
0 commit comments