diff --git a/src/Patches.php b/src/Patches.php index 7e60dd05..0e36c7ff 100644 --- a/src/Patches.php +++ b/src/Patches.php @@ -176,7 +176,7 @@ public function gatherPatches(PackageEvent $event) { $operations = $event->getOperations(); $this->io->write('Gathering patches for dependencies. This might take a minute.'); foreach ($operations as $operation) { - if ($operation->getJobType() == 'install' || $operation->getJobType() == 'update') { + if ($operation instanceof InstallOperation || $operation instanceof UpdateOperation) { $package = $this->getPackageFromOperation($operation); $extra = $package->getExtra(); if (isset($extra['patches'])) {