PHP Parse error on laminas-diactoros

This only says that the version for CLI is correct but not for your application. See: PHP: phpinfo - Manual