[PR #10368] Docs: Removing type: 'integer' from mappings #12305

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

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

State: closed
Merged: Yes


Yet another micro-PR ;-) - as requested at https://github.com/doctrine/orm/pull/10364#issuecomment-1370155521

I also changed $currentPrice from float to int, since IMO it's better to store prices as int (=cents).

Question: Is there a reason why most typehints are int|null, instead of ?int? Should I change them?

**Original Pull Request:** https://github.com/doctrine/orm/pull/10368 **State:** closed **Merged:** Yes --- Yet another micro-PR ;-) - as requested at https://github.com/doctrine/orm/pull/10364#issuecomment-1370155521 I also changed `$currentPrice` from `float` to `int`, since IMO it's better to store prices as `int` (=cents). Question: Is there a reason why most typehints are `int|null`, instead of `?int`? Should I change them?
admin added the pull-request label 2026-01-22 16:13:39 +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#12305