Skip to content

Commit 26de538

Browse files
committed
Update problem file
1 parent 283d0f2 commit 26de538

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exercises/throw-an-expression/problem/problem.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ You have been given a piece of code (look for `throw-an-expression.php` in your
33
If the request is allowed, `Welcome!` is printed out.
44

55

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.
77

88
Now with PHP 8, throw statements are expressions making them available to use in pretty much all locations.
99

0 commit comments

Comments
 (0)