beberlei / composer-monorepo-plugin

Integrates Composer into monolithic repositories with many packages.
MIT License
305 stars 41 forks source link

Incompatible declaration in EventDispatcher.php #83

Open jschumann opened 9 months ago

jschumann commented 9 months ago

When trying to install Monorepo Builder, which depends on this project, I'm getting 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