When using the master version, the following error occurs:
Argument 2 passed to Indragunawan\\ApiRateLimitBundle\\Service\\RateLimitHandler::getThrottle() must be an instance of Indragunawan\\ApiRateLimitBundle\\Annotation\\ApiRateLimit, null given, called in /var/www/html/vendor/indragunawan/api-rate-limit-bundle/Service/RateLimitHandler.php on line 157
When using the
master
version, the following error occurs:The responsible lines are:
https://github.com/IndraGunawan/api-rate-limit-bundle/blob/1096ebfe1b181d6b6e38ccf58884ab871b41c47b/Service/RateLimitHandler.php#L152-L156
Indeed, if
$annotation
isnull
, thegetThrottle
method fails. It's why creating a new instance ofApiRateLimit
is required if this case.