Composer Concrete update fails

Dear Concrete community,

I have tried upgrading Concrete CMS using “composer update” but I’m greeted with the following error:

I’ve tried as the user before, which is why I resorted to root user. It still didn’t work though, so I followed it up with “composer install” which had the same result.

What worked was when I commanded composer to be executed in PHP8.3 while running the website in PHP8.4.

I also have this problem with 9.3.9 to 9.4.1.

I do not have this problem when I manually updatet Concrete from 9.3.9 on websites that have not used the command line to update a website to 9.4.1 in this case.

Additional question: if I continue to update websites in this way, will it result in problems later down the line using the above update technique with PHP8.3 to update while running 8.4 on the website?

Kind regards,

PATRICKKASIE

The problem is that Concrete uses laminas-mail, but that package is now abandoned and its latest version requires PHP from 8.1 to 8.3.

Dear Mlocati,

What would be the solution for Concrete to deal with this change? I don’t want to update using this technique as it may result in unexpected behavior.

Kind regards,

PATRICKKASIE

I think that Concrete will stop using laminas-mail, switching to another library.

For the time being, I’d use PHP 8.3 (at least when running composer commands)