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: exercises/throw-an-expression/problem/problem.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ You have been given a piece of code (look for `throw-an-expression.php` in your
3
3
If the request is allowed, `Welcome!` is printed out.
4
4
5
5
6
-
Traditionally, pre PHP 8, an exception throw has been a statement. There are certain places where statements can be used, and only expressions can be used. For example, in ternaries and short closures, only expressions can be used.
6
+
Traditionally, pre PHP 8, an exception throw has been a statement. There are certain places where statements cannot be used, and only expressions can be used. For example, in ternaries and short closures, only expressions can be used.
7
7
8
8
Now with PHP 8, throw statements are expressions making them available to use in pretty much all locations.
0 commit comments