Skip to content

PHP route handler may only return a response object #38

Description

@tbreuss

The PHP route handler can return a Response object or an array at the moment: https://github.com/tbreuss/zack/blob/main/src/routing/PhpRouteHandler.php#L13

But HttpKernel expects a Response object and therefore throws an error if we return an array: The controller must return a "Symfony\Component\HttpFoundation\Response" object but it returned an array ([]).

So, the PHP route handler may only return a response object, the appropriate code has to be changed.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood first issueGood for newcomershelp wantedExtra attention is needed

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions