How to install a specific version of a package via Composer?
Hi! I'm new to PHP and Composer. I have a project that uses the Monolog library. I accidentally updated it to the latest version, and after that everything broke — the code started throwing errors. I realized that I need to roll back to the old version, but I don't know how to do it correctly.
For example, my composer.json currently has:
```json
{
"require": {
"monolog/monolog": "^2.0"
}
}
```
But I need version 1.25.5, which was working for me before. If I just write "monolog/monolog": "1.25.5", Composer complains about dependency conflicts when running update. I've tried different combinations, but nothing works.
Please advise how to correctly specify a specific version in composer.json? Do I need to change anything in composer.lock? Or are there special commands to