You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: helpers.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -2702,7 +2702,7 @@ report('Something went wrong.');
2702
2702
<aname="method-report-if"></a>
2703
2703
#### `report_if()` {.collection-method}
2704
2704
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`:
2706
2706
2707
2707
```php
2708
2708
report_if($shouldReport, $e);
@@ -2713,7 +2713,7 @@ report_if($shouldReport, 'Something went wrong.');
2713
2713
<aname="method-report-unless"></a>
2714
2714
#### `report_unless()` {.collection-method}
2715
2715
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`:
0 commit comments