symplify / monorepo-builder

Composer tools to maintain a monorepo
https://www.tomasvotruba.cz/blog/2019/02/18/how-we-automated-shopsys-packages-release-from-2-days-to-1-console-command/
MIT License
445 stars 37 forks source link

Incompatible declaration in EventDispatcher.php #72

Open jschumann opened 8 months ago

jschumann commented 8 months ago

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?