[PR #5987] Add missing type hints, add strictness for some checks, remove some useless calls #9806

Open
opened 2026-01-22 16:05:28 +01:00 by admin · 0 comments
Owner

Original Pull Request: https://github.com/doctrine/orm/pull/5987

State: closed
Merged: No


Q A
Branch master
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #1126
License MIT
Doc PR n/a

CHANGELOG:

  • Remove calls to strlen(), count(), empty() when the intended behavior can be achieved via type juggling.
  • Add strictness for comparisons where possible.
  • Use Yoda conditions.
  • Add missing type hints.
**Original Pull Request:** https://github.com/doctrine/orm/pull/5987 **State:** closed **Merged:** No --- | Q | A | | --- | --- | | Branch | master | | Bug fix? | no | | New feature? | no | | BC breaks? | no | | Deprecations? | no | | Tests pass? | yes | | Fixed tickets | #1126 | | License | MIT | | Doc PR | n/a | CHANGELOG: - Remove calls to `strlen()`, `count()`, `empty()` when the intended behavior can be achieved via type juggling. - Add strictness for comparisons where possible. - Use Yoda conditions. - Add missing type hints.
admin added the pull-request label 2026-01-22 16:05:28 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#9806