mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #10695] Changing return type of getSingleScalarResult() to array|bool|float|int|string|null
#12548
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/10695
State: closed
Merged: No
Reason: I'm using
intval()to sanitize the result ofgetSingleScalarResult(). But now, PHPStan 1.10.15 complains thatintval()only acceptsbool|float|int|resource|string|nullas input: https://github.com/phpstan/phpstan/issues/9295So I threw all of these (except
resource) in here :-)I didn't doublecheck anything - waiting for some feedback first.