-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Cache] fix: remove unwanted cast to int #54776
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
62d7114
to
fcf6df4
Compare
fcf6df4
to
3d174a9
Compare
The changes proposed by the failing fabbot.io job are completely unrelated to my changes. curl https://fabbot.io/patch/symfony/symfony/54776/3d174a96ff253a877f81fe7216e1e72eae9d1d0e/cs.diff | patch -p0 Perhaps this check was added after this file was last edited?
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can ignore fabbot indeed.
Thank you @Ahummeling. |
As discussed in the related issue, this type cast is unnecessary and can lead to unexpected behavior due to integer overflow.
I took a quick look if a testcase could be implemented, but this is not so trivial, as we'd either have to somehow configure a redis server to end up with a state that results in very high scan cursor values, or we'd have to implement a mock for the redis implementation, so we can provide all the edge case values for our tests.