Skip to content

Incompatible declaration in EventDispatcher.php #72

Open
@jschumann

Description

When running

composer require symplify/monorepo-builder --dev

I get the following error:

PHP Fatal error: Declaration of Monorepo\Composer\EventDispatcher::dispatch(string $eventName, ?Composer\EventDispatcher\Event $event = null) must be compatible with Composer\EventDispatcher\EventDispatcher::dispatch(?string $eventName, ?Composer\EventDispatcher\Event $event = null): int in /home/jschumann/git-wrdsb/wordpress/wordpress/vendor/beberlei/composer-monorepo-plugin/src/main/Monorepo/Composer/EventDispatcher.php on line 9

I've filed an issue in the composer-monorepo-plugin repo, but the project hasn't been updated in a couple of years, so I'm not sure whether it's being actively maintained. I'm also not sure whether this is an issue in my environment or a "real" issue.

Any advice? Is anyone else seeing this error?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions