Skip to content

Bug: nested $routes->group() with same filter name doesn't work as exepcted #8973

Closed
@tangix

Description

@tangix

PHP Version

8.1

CodeIgniter4 Version

4.5.2

CodeIgniter4 Installation Method

Composer (using codeigniter4/appstarter)

Which operating systems have you tested for this bug?

macOS

Which server did you use?

cli-server (PHP built-in webserver)

Database

No response

What happened?

A route definition containing nested group() statements with filters having the same name doesn't execute all the filters before executing the Controller method.

Steps to Reproduce

Please see https://github.com/tangix/ci45-nested-groups for a complete example.
Check the README.md file for instructions.

Expected Output

If the same filter is defined with different arguments (after the : character) the filter should be executed multiple times with the different arguments passed or at least have the multiple arguments passed as an array.

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugVerified issues on the current code behavior or pull requests that will fix them

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions