Skip to content

Commit

Permalink
remove unused param & proper naming (#5372)
Browse files Browse the repository at this point in the history
  • Loading branch information
bloep committed Oct 13, 2022
1 parent 5ae13d3 commit 979a714
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
5 changes: 0 additions & 5 deletions .tools/phpstan/baseline.neon
Expand Up @@ -255,11 +255,6 @@ parameters:
count: 1
path: ../../redaxo/src/addons/install/lib/package/package_update.php

-
message: "#^Method rex_install_packages\\:\\:addedPackage\\(\\) has parameter \\$package with no type specified\\.$#"
count: 1
path: ../../redaxo/src/addons/install/lib/packages.php

-
message: "#^Method rex_install_webservice\\:\\:getCache\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
Expand Down
2 changes: 1 addition & 1 deletion redaxo/src/addons/install/lib/package/package_add.php
Expand Up @@ -27,7 +27,7 @@ protected function doAction()
return $msg;
}
rex_package_manager::synchronizeWithFileSystem();
rex_install_packages::addedPackage($this->addonkey);
rex_install_packages::deleteCacheMyPackages();

return null;
}
Expand Down
2 changes: 1 addition & 1 deletion redaxo/src/addons/install/lib/packages.php
Expand Up @@ -91,7 +91,7 @@ public static function getAddPackages()
/**
* @return void
*/
public static function addedPackage($package)
public static function deleteCacheMyPackages()
{
self::$myPackages = null;
}
Expand Down

0 comments on commit 979a714

Please sign in to comment.