You have to install the later version. Changing in composer only limits what versions composer will set as a minimum requirement. It does not change the version.
Instructions for installing a different version are OS specific
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
hello i need to upgrade php version to be 8.0 and I am running (PHP 7.3.29). here is my composer info "php": "^7.3|^8.0", I went to change it to "php": "^8.0" but it does not work
Please or to participate in this conversation.