We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3f78853 + e1551d6 commit b84c5c5Copy full SHA for b84c5c5
src/MagentoHackathon/Composer/Magento/Plugin.php
@@ -264,7 +264,7 @@ public function onPackageUpdate(PackageEvent $event)
264
$rule = $event->getOperation()->getReason();
265
if ($rule instanceof Rule) {
266
if ($event->getOperation()->getJobType() === 'update') {
267
- if ($rule->getJob()['packageName'] === 'magento-hackathon/magento-composer-installer') {
+ if ($rule->getJob() && $rule->getJob()['packageName'] === 'magento-hackathon/magento-composer-installer') {
268
throw new \Exception(
269
'Dont update the "magento-hackathon/magento-composer-installer" with active plugins.' . PHP_EOL .
270
'Consult the documentation on how to update the Installer' . PHP_EOL .
0 commit comments