drupal-composer / preserve-paths

A composer plugin for keeping specified files and directories when installing/updating new composer packages. Can be used to supported nested packages.
28 stars 28 forks source link

Deprecation Notice #12

Closed CindyConway closed 7 years ago

CindyConway commented 7 years ago

When I install a Drupal modules I get:

Deprecation Notice: The callback derhasi\Composer\Plugin_composer_tmp1::prePackage declared at phar:///usr/local/bin/composer/src/Composer/Plugin/PluginManager.php(195) : eval()'d code accepts a Composer\Script\PackageEvent but pre-package-install events use a Composer\Installer\PackageEvent instance. Please adjust your type hint accordingly, see https://getcomposer.org/doc/articles/scripts.md#event-classes in phar:///usr/local/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:317

An example of command I am using to do the install: $composer require drupal/geofield:7.x

impol commented 7 years ago

Here is a PR #11

davidsparks commented 7 years ago

This fork also seems to address this issue.