As a best practice, the LTS version ^12.4 should be used as version constraint in the composer.json.
^12.4
composer.json