Skip to content
This repository was archived by the owner on Feb 7, 2023. It is now read-only.

Commit c5aa290

Browse files
committed
Merge branch 'dev'
2 parents 8f3a06e + a34ee22 commit c5aa290

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

core/src/PatternLab/Installer.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
namespace PatternLab;
1414

1515
use \Composer\Script\Event;
16+
use \Composer\Installer\PackageEvent;
1617
use \PatternLab\InstallerUtil;
1718

1819
class 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

Comments
 (0)