The error being thrown is as follows: league/uri 6.8.0 requires php >=8.1 but your php version (8.0.11) does not satisfy that requirement.
A similar question was posed here Error "Root composer.json requires php ^7.3 but your php version (8.0.0) does not satisfy that requirement", but this is for requiring an older version. It's asking me for the newest version.
I tried requiring php >= 8.1 in the composer.json file, but that just lead to the same error for Root composer.json instead of league/uri. My ide and my machine are using 8.1.9 and 8.1.5 respectively. So I guess my real question is where is gitlab looking to find this other version of php and how to I update that?
Clarification [edited]: the error is being thrown during the Build Code job on gitlab CI/CD. I push any changes up from my ide, and the build fails. There's 4 different modules that are all giving me same error.
I've narrowed it down to my pipeline configuration needing to be fixed, but I've never done this before. I suppose this question can be closed since I understand the error message now? It's on me to close the knowledge gap.