Skip to content

Commit ae02121

Browse files
authored
Merge pull request #330 from hussainweb/patch-1
Replace getJobType with an instanceof check
2 parents bba9dab + 22397c8 commit ae02121

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Patches.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ public function gatherPatches(PackageEvent $event) {
176176
$operations = $event->getOperations();
177177
$this->io->write('<info>Gathering patches for dependencies. This might take a minute.</info>');
178178
foreach ($operations as $operation) {
179-
if ($operation->getJobType() == 'install' || $operation->getJobType() == 'update') {
179+
if ($operation instanceof InstallOperation || $operation instanceof UpdateOperation) {
180180
$package = $this->getPackageFromOperation($operation);
181181
$extra = $package->getExtra();
182182
if (isset($extra['patches'])) {

0 commit comments

Comments
 (0)