We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c25a7f5 commit 8d22839Copy full SHA for 8d22839
src/Symfony/Component/RateLimiter/Tests/Policy/RateTest.php
@@ -26,7 +26,7 @@ public function testFromString(Rate $rate)
26
27
public function provideRate(): iterable
28
{
29
- yield [new Rate(\DateInterval::createFromDateString('15 seconds'), 10)];
+ yield [new Rate(new \DateInterval('PT15S'), 10)];
30
yield [Rate::perSecond(10)];
31
yield [Rate::perMinute(10)];
32
yield [Rate::perHour(10)];
0 commit comments