Skip to content

Fix grammatical error in Lottery::alwaysLose() PHPDoc comment#60086

Merged
taylorotwell merged 1 commit into
laravel:13.xfrom
rpsohag:fix/lottery-phpdoc-grammar
May 13, 2026
Merged

Fix grammatical error in Lottery::alwaysLose() PHPDoc comment#60086
taylorotwell merged 1 commit into
laravel:13.xfrom
rpsohag:fix/lottery-phpdoc-grammar

Conversation

@rpsohag
Copy link
Copy Markdown

@rpsohag rpsohag commented May 12, 2026

Summary

  • Fixed grammatical error in Lottery::alwaysLose() PHPDoc comment
  • Changed "result in a lose" to "result in a loss"

Why

The word "lose" is a verb (e.g., "I lose"), but the context requires a noun to match the corresponding alwaysWin() method:

  • alwaysWin() → "result in a win" (noun) ✅
  • alwaysLose() → "result in a lose" (verb) ❌ → "loss" (noun) ✅

Change

  • Documentation only (no behavior change)
  • No tests required (PHPDoc comment)

The PHPDoc comment said "result in a lose" but "lose" is a verb.
Changed to "loss" (noun) to match the corresponding alwaysWin()
method which uses "win" (noun).
@taylorotwell taylorotwell merged commit d821f6a into laravel:13.x May 13, 2026
54 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants