Skip to content

Commit

Permalink
Fix Composer usage
Browse files Browse the repository at this point in the history
Fixes #441
  • Loading branch information
Seldaek committed Mar 30, 2022
1 parent 693e51e commit 9220f9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/composer/class-plugin.php
Expand Up @@ -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();
Expand Down

0 comments on commit 9220f9a

Please sign in to comment.