Thanks to visit codestin.com
Credit goes to github.com

Skip to content

run-script post-package-install - TypeError PackageEvent versus Event - bug in docu? #11424

@siims-biz

Description

@siims-biz

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions