Skip to content

Commit 388799f

Browse files
Improve consistency in _if and _unless functions (#10537)
1 parent 8085ccf commit 388799f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

helpers.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2702,7 +2702,7 @@ report('Something went wrong.');
27022702
<a name="method-report-if"></a>
27032703
#### `report_if()` {.collection-method}
27042704

2705-
The `report_if` function will report an exception using your [exception handler](/docs/{{version}}/errors#handling-exceptions) if the given condition is `true`:
2705+
The `report_if` function will report an exception using your [exception handler](/docs/{{version}}/errors#handling-exceptions) if a given boolean expression evaluates to `true`:
27062706

27072707
```php
27082708
report_if($shouldReport, $e);
@@ -2713,7 +2713,7 @@ report_if($shouldReport, 'Something went wrong.');
27132713
<a name="method-report-unless"></a>
27142714
#### `report_unless()` {.collection-method}
27152715

2716-
The `report_unless` function will report an exception using your [exception handler](/docs/{{version}}/errors#handling-exceptions) if the given condition is `false`:
2716+
The `report_unless` function will report an exception using your [exception handler](/docs/{{version}}/errors#handling-exceptions) if a given boolean expression evaluates to `false`:
27172717

27182718
```php
27192719
report_unless($reportingDisabled, $e);

0 commit comments

Comments
 (0)