Skip to content

Dockerfile PHP version mismatching composer.json PHP version #32

@karnaf

Description

@karnaf

Bug Report

Q A
Version(s) 1.6.x

Summary

Dockerfile uses php:7.2-apache but composer.json requires "php": "^7.3",

Current behavior

When installing the skeleton project and trying to update composer fails with problems because the PHP versions do not match

root@315312c95fec:/var/www# composer update
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
  Problem 1
    - Root composer.json requires php ^7.3 but your php version (7.2.34) does not satisfy that requirement.
  Problem 2
    - phpunit/phpunit[9.5.0, ..., 9.5.4] require php >=7.3 -> your php version (7.2.34) does not satisfy that requirement.
    - Root composer.json requires phpunit/phpunit ^9.5 -> satisfiable by phpunit/phpunit[9.5.0, ..., 9.5.4].

How to reproduce

Download the ZIP version of the project - api-tools-skeleton-1.6.x.zip
Unsip the archive
Run docker-compose up -d
Access the container with docker exec -it api-tools-skeleton-16x_apigility_1 /bin/bash
Run composer update

Expected behavior

composer update to finish successfully

Metadata

Metadata

Assignees

Labels

BugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions