// delivered package does not provide the minimum required version
if (Package::compareVersion($requiredVersion, $this->archive->getPackageInfo('version'), '>')) {
- throw new PackageValidationException(PackageValidationException::INSUFFICIENT_VERSION, array(
+ throw new PackageValidationException(PackageValidationException::INSUFFICIENT_VERSION, [
- 'packageName' => $package->packageName,
- 'packageVersion' => $package->packageVersion,
+ 'packageName' => $this->archive->getPackageInfo('name'),
+ 'packageVersion' => $requiredVersion,
'deliveredPackageVersion' => $this->archive->getPackageInfo('version')
- ));
+ ]);
}
// package is not installed yet