From 62ac5d1e5745bfd4e16e37cfbde1bffa1503dbf7 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Wed, 30 Mar 2022 14:20:59 +0000 Subject: [PATCH] Fix Composer usage Fixes #441 --- inc/composer/class-plugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/composer/class-plugin.php b/inc/composer/class-plugin.php index eebafb9..b9b6c90 100644 --- a/inc/composer/class-plugin.php +++ b/inc/composer/class-plugin.php @@ -121,7 +121,7 @@ public function pre_operations_exec( InstallerEvent $event ) : void { */ protected function resolve_packages_composer_v2( array $packages, array $operations ) : array { foreach ( $operations as $operation ) { - switch ( $operation::TYPE ) { + switch ( $operation->getOperationType() ) { case 'install': case 'markAliasInstalled': $package = $operation->getPackage();