1 | <?php |
||
5 | class RateLimiter |
||
6 | { |
||
7 | const TIME_FRAME_MINUTE = 'minute'; |
||
8 | const TIME_FRAME_SECOND = 'second'; |
||
9 | |||
10 | /** @var int */ |
||
11 | protected $limit; |
||
12 | |||
13 | /** @var string */ |
||
14 | protected $timeFrame; |
||
15 | |||
16 | /** @var \Spatie\RateLimiter\Store */ |
||
17 | protected $store; |
||
18 | |||
19 | /** @var \Spatie\GuzzleRateLimiterMiddleware\Deferrer */ |
||
20 | protected $deferrer; |
||
21 | |||
22 | public function __construct( |
||
33 | |||
34 | public function handle(callable $callback) |
||
49 | |||
50 | protected function delayUntilNextRequest(): int |
||
70 | |||
71 | protected function timeFrameLengthInMilliseconds(): int |
||
79 | } |
||
80 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..