Skip to content

[13.x] Add UnitEnum type support for $limiterName on RateLimitedWithRedis#59841

Merged
taylorotwell merged 1 commit intolaravel:13.xfrom
trippo:patch-2
Apr 24, 2026
Merged

[13.x] Add UnitEnum type support for $limiterName on RateLimitedWithRedis#59841
taylorotwell merged 1 commit intolaravel:13.xfrom
trippo:patch-2

Conversation

@trippo
Copy link
Copy Markdown
Contributor

@trippo trippo commented Apr 24, 2026

Add UnitEnum type support to the $limiterName PHPDoc in the RateLimitedWithRedis constructor to match the parent RateLimited implementation and improve consistency.

/**
     * Create a new middleware instance.
     *
     * @param  \UnitEnum|string  $limiterName
     */
    public function __construct($limiterName)
    {

@trippo trippo changed the title Add UnitEnum type support for $limiterName on RateLimitedWithRedis [13.x] Add UnitEnum type support for $limiterName on RateLimitedWithRedis Apr 24, 2026
@taylorotwell taylorotwell merged commit 27c76f8 into laravel:13.x Apr 24, 2026
52 of 54 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants