src/Composer/GrumPHPPlugin.php
public function prePackageUninstall(PackageEvent $event)
    {
        /** @var UninstallOperation $operation */
        $operation = $event->getOperation();
        $package = $operation->getPackage();

        if (!$this->guardIsGrumPhpPackage($package)) {
            return;
        }

        // First remove the hook, before everything is deleted!
        $this->deInitGitHook();
    }
public function prePackageUninstall(PackageEvent $event)
    {
        /** @var UninstallOperation $operation */
        $operation = $event->getOperation();
        $package = $operation->getPackage();

        if (!$this->guardIsGrumPhpPackage($package)) {
            return;
        }

        // First remove the hook, before everything is deleted!
        $this->deInitGitHook();
    }
public function prePackageUninstall ( PackageEvent $ event ) { /** @var UninstallOperation $operation */ $ operation = $ event -> getOperation ( ) ; $ package = $ operation -> getPackage ( ) ; if ( ! $ this -> guardIsGrumPhpPackage ( $ package ) ) { return ; } // First remove the hook, before everything is deleted! $ this -> deInitGitHook ( ) ; }
When this package is uninstalled, the generated git hooks need to be removed.
When this package is uninstalled the generated git hooks need to be removed .