core icon indicating copy to clipboard operation
core copied to clipboard

Output when use Processor

Open expondo opened this issue 1 year ago • 1 comments

API Platform version(s) affected: 3.3.11

Description

I have ApiResource endpoint defined on DTO with Post(). In t hi endpoint i use Procesor, and method process return void. Before update to 3.3.11 in this case (version 3.2.12) this endpoint returned the same input, but after update to 3.3.11 the same endpoint are returning "null". I already fixed that, bit this is little strange change in that update.

How to reproduce

processor like @implements ProcessorInterface<MyDTO, void> will return MyDTO in version 3.2.12 will retur n"null" in 3.3.11

Possible Solution

Additional Context

expondo avatar Aug 02 '24 08:08 expondo

It's an expected behavior returning void is the same as null we don't want to guess what output you want, maybe that we can add something to the changelog in that regard.

soyuka avatar Aug 08 '24 14:08 soyuka

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Oct 11 '24 23:10 stale[bot]