mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #11579] Precise EntityRepository::count return type #13107
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/doctrine/orm/pull/11579
State: closed
Merged: Yes
Such PR was introduced on PHPStan side https://github.com/phpstan/phpstan-doctrine/pull/604/files
Either it's false, either it's true and should be directly added to the ORM code.
I already saw multiple
@psalm-return 0|positive-intoccurences, so I used the same syntax.Psalm does not understand that in the
BasicEntityPersister,'SELECT COUNT(*) ...returns a positive int ; should I add the error to the baseline or typehint the result in a temporary variable ? (WDY prefer @greg0ire)