Skip to content

Commit

Permalink
Fix deprecated class usage
Browse files Browse the repository at this point in the history
As noted in: https://github.com/composer/composer/releases/tag/1.0.0-alpha10 (April 2015), \Composer\Installer\PackageEvent should be used instead of \Composer\Script\PackageEvent
  • Loading branch information
NickDickinsonWilde authored and derhasi committed Feb 3, 2017
1 parent e348adb commit 12124bd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
use Composer\EventDispatcher\EventSubscriberInterface;
use Composer\IO\IOInterface;
use Composer\Plugin\PluginInterface;
use Composer\Script\PackageEvent;
use Composer\Installer\PackageEvent;
use Composer\Script\ScriptEvents;
use Composer\Util\Filesystem;

Expand Down Expand Up @@ -55,7 +55,7 @@ public static function getSubscribedEvents()
/**
* Pre Package event behaviour for backing up preserved paths.
*
* @param \Composer\Script\PackageEvent $event
* @param \Composer\Installer\PackageEvent $event
*/
public function prePackage(PackageEvent $event)
{
Expand All @@ -66,7 +66,7 @@ public function prePackage(PackageEvent $event)
/**
* Pre Package event behaviour for backing up preserved paths.
*
* @param \Composer\Script\PackageEvent $event
* @param \Composer\Installer\PackageEvent $event
*/
public function postPackage(PackageEvent $event)
{
Expand Down

0 comments on commit 12124bd

Please sign in to comment.