diff --git a/composer/Plugin/VendorHardening/VendorHardeningPlugin.php b/composer/Plugin/VendorHardening/VendorHardeningPlugin.php index 41e253839a..05b3483ebc 100644 --- a/composer/Plugin/VendorHardening/VendorHardeningPlugin.php +++ b/composer/Plugin/VendorHardening/VendorHardeningPlugin.php @@ -269,7 +269,6 @@ public function cleanAllPackages() { $cleanup_paths = array_diff_key($all_cleanup_paths, $this->packagesAlreadyCleaned); // Get all the packages that are installed that we should clean up. - /* @var $packages_to_be_cleaned \Composer\Plugin\PluginInterface[] */ $packages_to_be_cleaned = array_intersect_key($cleanup_paths, $installed_packages); if (!$packages_to_be_cleaned) { @@ -288,10 +287,8 @@ public function cleanAllPackages() { * * This applies in the context of a package post-install or post-update event. * - * @param string $vendor_dir - * Path to vendor directory - * @param string $package_name - * Name of the package to clean + * @param \Composer\Package\PackageInterface $package + * The package to clean. */ public function cleanPackage(PackageInterface $package) { // Normalize package names to lower case. @@ -311,10 +308,8 @@ public function cleanPackage(PackageInterface $package) { /** * Clean the installed directories for a named package. * - * @param string $vendor_dir - * Path to vendor directory. - * @param string $package_name - * Name of package to sanitize. + * @param \Composer\Package\PackageInterface $package + * The package to clean. * @param string $paths_for_package * List of directories in $package_name to remove */