Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

nikocraft's avatar

I can't update php package I forked recently, I was able to do that week ago but not anymore, need help

forked a php package and am using forked version in my local machine, I plan to extend the package, while I was working with it a week ago everything was working fine, today when I focused on this part of the application again and had to update the package with latest code I had pushed to repo, so I tried to update the package like

composer update author/package-name

and I also have this part in the composer.json

"repositories": [
    {
        "type": "vcs",
        "url": "https://github.com/myproject/package-name"
    }
],

I suddenly get this:


Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages.

Problem 1

symfony/event-dispatcher v4.0.3 requires php ^7.1.3 -> your PHP version (7.1.1) does not satisfy that requirement.

symfony/event-dispatcher v4.0.3 requires php ^7.1.3 -> your PHP version (7.1.1) does not satisfy that requirement.

Installation request for symfony/event-dispatcher (locked at v4.0.3) -> satisfiable by symfony/event-dispatcher[v4.0.3].

I currently have php 7.1.1 installed and am running laravel 5.4, I wonder why after a week or so where I was able to run the command above without a problem today I can't and what is also confusing me is this

https://laravel.com/docs/5.4/installation

php requirement for laravel on the server is 5.6.4 or higher.

So why would symfony/event-dispatcher require 7.1.3 and why would laravel's own page claim version 5.4 min-requirment is php 5.6.4?

Anyone has any clues?

0 likes
3 replies
nikocraft's avatar

just this:

    "require": {
        "illuminate/contracts": "5.4.*|5.5.*"
    },
    "require-dev": {
        "orchestra/testbench": "~3.4",
        "phpunit/phpunit": "^6.0"
    },
aardalich's avatar

Must be something in your main composer then.

Dusk? The latest build of that is pulling in symfony 4 components.

Please or to participate in this conversation.