compatibility error

Hello,

I have CakePHP installed on a machine with Php 8.2, I just started using Cake and I was having to use Bake, however, whenever I try to run the command it returns this error:

PHP Fatal error: Declaration of Bake\Shell\BakeShell::startup() must be compatible with Cake\Console\Shell::startup(): void in C:\xampp\htdocs\romiseta\vendor\cakephp\bake\src\Shell\BakeShell.php on line 50

Fatal error: Declaration of Bake\Shell\BakeShell::startup() must be compatible with Cake\Console\Shell::startup(): void in C:\xampp\htdocs\romiseta\vendor\cakephp\bake\src\Shell\BakeShell.php on line 50

You seem to be running on an old version of cakephp/bake for some reason.
How did you create your cakephp app? Because the latest version of the cakephp app template doesn’t use bake 1.x (which you seem to use)