Your lock file does not contain a compatible set of packages. Please run composer update.
Problem 1
- symfony/finder is locked to version v7.1.3 and an update of this package was not requested.
- symfony/finder v7.1.3 requires php >=8.2 -> your php version (8.1.2) does not satisfy that requirement.
Problem 2
- symfony/finder v7.1.3 requires php >=8.2 -> your php version (8.1.2) does not satisfy that requirement.
- wp-cli/wp-cli v2.10.0 requires symfony/finder >2.7 -> satisfiable by symfony/finder[v7.1.3].
- wp-cli/wp-cli is locked to version v2.10.0 and an update of this package was not requested.