Skip to content

Conversation

@Nyholm
Copy link
Member

@Nyholm Nyholm commented Oct 21, 2020

Q A
Branch? 5.x
Bug fix? yes
New feature? no
Deprecations? no
Tickets
License MIT
Doc PR

This is a super minor thing. A $cacheItem can be a hit, but it does not contain a LimiterStateInterface.

Also, PSR-6 specifies that if the $cacheItem is not a hit, it must return null.

@Nyholm Nyholm changed the title [RateLimiter] Be more type safe when fetching form cache [RateLimiter] Be more type safe when fetching from cache Oct 22, 2020
@chalasr chalasr added this to the 5.2 milestone Oct 22, 2020
@chalasr
Copy link
Member

chalasr commented Oct 22, 2020

Thank you @Nyholm.

@chalasr chalasr merged commit 7539325 into symfony:5.x Oct 22, 2020
@Nyholm
Copy link
Member Author

Nyholm commented Oct 22, 2020

Thank you for reviews and merge.

@fabpot fabpot mentioned this pull request Oct 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants