Skip to content

Commit 819868c

Browse files
Change function argument to $packageIdOrName in Vendor Bundles and security-issues in Packages
1 parent 752be4b commit 819868c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/Api/Packages.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,9 @@ public function listDependents($packageName)
131131
return $this->get(sprintf('/packages/%s/dependents/', $packageName));
132132
}
133133

134-
public function listSecurityIssues($packageName, array $filters = [])
134+
public function listSecurityIssues($packageIdOrName, array $filters = [])
135135
{
136-
return $this->get(sprintf('/packages/%s/security-issues/', $packageName), $filters);
136+
return $this->get(sprintf('/packages/%s/security-issues/', $packageIdOrName), $filters);
137137
}
138138

139139
public function showSecurityMonitoringConfig($packageIdOrName)

src/Api/VendorBundles/Packages.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ public function addOrEditPackages($vendorBundleId, array $packages)
4141

4242
/**
4343
* @param int $vendorBundleId
44-
* @param string $packageName
44+
* @param string|int $packageIdOrName
4545
*/
46-
public function removePackage($vendorBundleId, $packageName)
46+
public function removePackage($vendorBundleId, $packageIdOrName)
4747
{
48-
return $this->delete(sprintf('/vendor-bundles/%s/packages/%s/', $vendorBundleId, $packageName));
48+
return $this->delete(sprintf('/vendor-bundles/%s/packages/%s/', $vendorBundleId, $packageIdOrName));
4949
}
5050
}

0 commit comments

Comments
 (0)