In my case I use webklex/laravel-imap.
I had v1.4.1 after I run composer update webklex/laravel-imap it updated to v1.6.2, but there is already version 2.1.1, which I want to use.
It seems that composer update tries to maintain compability, but how would I correctly update to the newest version?
I tried composer require webklex/laravel-imap, which gave me an error:
PHP Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) in phar