Skip to content

Fix less-than and greater-than operator examples#37

Merged
freekmurze merged 1 commit into
mainfrom
fix/less-than-greater-than-examples
Feb 9, 2026
Merged

Fix less-than and greater-than operator examples#37
freekmurze merged 1 commit into
mainfrom
fix/less-than-greater-than-examples

Conversation

@freekmurze
Copy link
Copy Markdown
Member

Summary

  • Fixed incorrect less-than examples: 2 < '3' and 2 < 3.0 both return true (PHP converts the string/float for comparison), not false as shown
  • Improved greater-than examples to use 3 > '2' and 3 > 2.0 (both true) instead of comparing equal values, which better demonstrates cross-type comparisons

Fixes #32

🤖 Generated with Claude Code

Less-than: `2 < '3'` and `2 < 3.0` both evaluate to `true`, not `false`.
Greater-than: changed examples to use `3 > '2'` and `3 > 2.0` (both `true`)
to better demonstrate cross-type comparisons.

Fixes #32

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@freekmurze freekmurze merged commit 07e75ea into main Feb 9, 2026
2 checks passed
@freekmurze freekmurze deleted the fix/less-than-greater-than-examples branch February 9, 2026 20:08
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.

Less than examples are incorrect, greater than examples are not helpful

1 participant