You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Regarding https://getcomposer.org/doc/articles/scripts.md
The sample contains
"post-package-install": [
"MyVendor\MyClass::postPackageInstall"
],
public static function postPackageInstall(PackageEvent $event)
use Composer\Installer\PackageEvent;
public static function postPackageInstall(PackageEvent $event)
{
$installedPackage = $event->getOperation()->getPackage();
var_dump((string) $installedPackage);
}
Regarding
https://getcomposer.org/doc/articles/scripts.md
The sample contains
"post-package-install": [
"MyVendor\MyClass::postPackageInstall"
],
public static function postPackageInstall(PackageEvent $event)
Observation
composer run-script post-package-install
Argument #1 ($event) must be of type Composer\Installer\PackageEvent, Composer\Script\Event given,
Composer version: 2.5.5
Windows 10
Is the sample working for you?
The text was updated successfully, but these errors were encountered: