PSR ClockInterface instead of TimerInterface
xepozz opened this issue · comments
Dmitriy Derepko commented
Should we replace \Yiisoft\Yii\RateLimiter\Time\TimerInterface
with the one from https://www.php-fig.org/psr/psr-20?
Sergei Predvoditelev commented
PSR-20 work with DateTimeImmutable
that not support milliseconds.
Dmitriy Derepko commented
PSR-20 work with
DateTimeImmutable
that not support milliseconds.
Sergei Predvoditelev commented
I like this idea.
Alexander Makarov commented
Since there's a performance drop and this is heavily used middleware, decided not to do it.