1313namespace PatternLab ;
1414
1515use \Composer \Script \Event ;
16+ use \Composer \Installer \PackageEvent ;
1617use \PatternLab \InstallerUtil ;
1718
1819class Installer {
@@ -21,7 +22,7 @@ class Installer {
2122 * Run the PL tasks when a package is installed
2223 * @param {Object} a script event object from composer
2324 */
24- public static function postPackageInstall (Event $ event ) {
25+ public static function postPackageInstall (PackageEvent $ event ) {
2526
2627 // make sure pattern lab has been loaded
2728 if (class_exists ("\PatternLab\Config " )) {
@@ -36,7 +37,7 @@ public static function postPackageInstall(Event $event) {
3637 * Run the PL tasks when a package is updated
3738 * @param {Object} a script event object from composer
3839 */
39- public static function postPackageUpdate (Event $ event ) {
40+ public static function postPackageUpdate (PackageEvent $ event ) {
4041
4142 // make sure pattern lab has been loaded
4243 if (class_exists ("\PatternLab\Config " )) {
@@ -66,7 +67,7 @@ public static function preInstallCmd(Event $event) {
6667 * Run the PL tasks when a package is removed
6768 * @param {Object} a script event object from composer
6869 */
69- public static function prePackageUninstall (Event $ event ) {
70+ public static function prePackageUninstall (PackageEvent $ event ) {
7071
7172 // make sure pattern lab has been loaded
7273 if (class_exists ("\PatternLab\Config " )) {
0 commit comments