Router::scope() deprecated block cake bake after migration

Thanks for your answer,

I add this in my config/app.php:

'Error' => [
        'errorLevel' => E_ALL & ~E_USER_DEPRECATED,

and all is ok, i can use cake bake with console.