Hi Gunther, That error looks like it's coming from a mismatch between your PHP version and the way the inventory-composer-installer module is handling return types. Specifically, it seems to be expecting a void return type, but the syntax for that wasn't properly handled until PHP 7.1+ — and in some older versions of Magento or composer plugins, that can cause issues. A few things you might want to try: Check your Composer version: Composer 1.10 is quite old and might not work smoothly with Magento 2.4. If possible, try updating to Composer 2.x — but back up everything before doing so, just in case. Check module compatibility: Make sure all your installed Magento modules, especially anything inventory-related, are compatible with your Magento version. You might want to remove and reinstall the magento/inventory-composer-installer package. Temporarily disable the plugin: If you're just trying to get past the install/update, and you’re comfortable editing vendor files (just temporarily), you could comment out or adjust the return type in that Plugin.php file — but this is just a workaround, not a long-term fix. Lastly, double-check that you’re not mixing old module versions from previous Magento upgrades. That’s caught me out before. Let me know how it goes! Best, yasmeen
Composer issues can be a real headache—dependency conflicts, version mismatches, you name it. It’s like trying to plan a night out without knowing which bars are worth it. That’s why at Pub Crawl Edinburgh, we take the guesswork out of your evening. Our Edinburgh pub crawl is carefully curated to guide you through the city’s best venues, no conflicts or wrong turns—just smooth transitions and good times. Just like resolving your Composer setup brings harmony to your code, our crawl brings the perfect flow to your night. Let us handle the planning—you just enjoy the experience.