Enable runnable (WASM) examples for language.control-structures section#5462
Open
AllenJB wants to merge 2 commits intophp:masterfrom
Open
Enable runnable (WASM) examples for language.control-structures section#5462AllenJB wants to merge 2 commits intophp:masterfrom
AllenJB wants to merge 2 commits intophp:masterfrom
Conversation
lacatoire
reviewed
Apr 21, 2026
| object(UnhandledMatchError)#1 (7) { | ||
| ["message":protected]=> | ||
| string(33) "Unhandled match value of type int" | ||
| string(33) "Unhandled match case 5" |
Member
There was a problem hiding this comment.
Suggested change
| string(33) "Unhandled match case 5" | |
| string(22) "Unhandled match case 5" |
lacatoire
reviewed
Apr 21, 2026
| int(0) | ||
| ["file":protected]=> | ||
| string(9) "/in/ICgGK" | ||
| string(9) "script" |
Member
There was a problem hiding this comment.
Suggested change
| string(9) "script" | |
| string(6) "script" |
lacatoire
reviewed
Apr 21, 2026
| </para> | ||
| <para> | ||
| It's possible to use a semicolon instead of a colon after a case like: | ||
| It's possible to use a semicolon instead of a colon after a case. This syntax is deprecated. |
Member
There was a problem hiding this comment.
Suggested change
| It's possible to use a semicolon instead of a colon after a case. This syntax is deprecated. | |
| It's possible to use a semicolon instead of a colon after a case. | |
| As of PHP 8.4.0, this syntax is deprecated. |
lacatoire
reviewed
Apr 21, 2026
|
|
||
| for($i = 0; $i < count($people); ++$i) { | ||
| $people[$i]['salt'] = mt_rand(000000, 999999); | ||
| $people[$i]['salt'] = random_int(100000, 999999); |
Member
There was a problem hiding this comment.
Suggested change
| $people[$i]['salt'] = random_int(100000, 999999); | |
| $people[$i]['salt'] = random_int(0, 999999); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related: #4799