Skip to content

[13.x] Prefer consitent assertions - #61093

Merged
taylorotwell merged 1 commit into
laravel:13.xfrom
lucasmichot:tighten-loose-assertions
Aug 7, 2026
Merged

[13.x] Prefer consitent assertions#61093
taylorotwell merged 1 commit into
laravel:13.xfrom
lucasmichot:tighten-loose-assertions

Conversation

@lucasmichot

Copy link
Copy Markdown
Contributor

Swaps assertTrue($x === $y) style checks for assertSame()/assertNotSame() so failures show what actually differed instead of just false.

Replaces assertTrue(x === y) / assertTrue(x !== y) with assertSame() /
assertNotSame() (and assertIsInt() where applicable) for clearer
failure output.
@lucasmichot lucasmichot changed the title [13.x] Tighten loose assertTrue comparisons to dedicated assertions [13.x] Prefer consitent assertions Aug 7, 2026
@taylorotwell
taylorotwell merged commit c6d10c1 into laravel:13.x Aug 7, 2026
55 checks passed
@lucasmichot
lucasmichot deleted the tighten-loose-assertions branch August 7, 2026 17:20
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