$stream = new \Laminas\Diactoros\Stream(‘php://input’);
echo $stream->read(256);

Outputs on CLI

php pbg.php app:cli.etl-fill-up-base –test

That’s 0 length string, although

global $argv;
var_export($argv[1]);

“–test”

Perfectly sees it. So, Laminas Diactoros isn’t debugged release version, although advertising it. Sad story a little bit.

%d bloggers like this: