Skip to content

ApplicationBuilder::withMiddleware() ignores priority prepends and appends #487

@stefanfisk

Description

@stefanfisk

Version

dev-main

What did you expect to happen?

I'd expect Illuminate\Foundation\Configuration\Middleware::prependToPriorityList() and Illuminate\Foundation\Configuration\Middleware::appendToPriorityList() to have an effect.

What actually happens?

They are ignored.

Steps to reproduce

Compare https://github.com/roots/acorn/blob/main/src/Illuminate/Foundation/Configuration/ApplicationBuilder.php#L293 to

public function withMiddleware(?callable $callback = null)
and notice how the Acorn subclass does not handle prepended and appended priorites.

System info

N/A

Log output

N/A

Please confirm this isn't a support request.

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions