We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f55fda commit 1292b5fCopy full SHA for 1292b5f
1 file changed
src/lkwdwrd/Composer/MULoaderPlugin.php
@@ -88,8 +88,15 @@ public static function getSubscribedEvents() {
88
* @return void
89
*/
90
public function overridePluginTypes( $event ) {
91
+ // Get the package being worked on.
92
+ $operation = $event->getOperation();
93
+ if ( $operation instanceof \Composer\DependencyResolver\Operation\UpdateOperation ) {
94
+ $package = $operation->getInitialPackage();
95
+ } else {
96
+ $package = $operation->getPackage();
97
+ }
98
+
99
// Only act on wordpress-plugin types
- $package = $event->getOperation()->getPackage();
100
if ( 'wordpress-plugin' !== $package->getType() ) {
101
return;
102
}
0 commit comments