From 19e7f04854974fbd9589b224890221dfaab72594 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Pluchino?= Date: Wed, 12 Oct 2016 09:48:49 +0200 Subject: [PATCH] Fix method argument default value --- Converter/AbstractPackageConverter.php | 2 +- Converter/BowerPackageConverter.php | 2 +- Converter/PackageUtil.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Converter/AbstractPackageConverter.php b/Converter/AbstractPackageConverter.php index 7572a72e..96606255 100644 --- a/Converter/AbstractPackageConverter.php +++ b/Converter/AbstractPackageConverter.php @@ -152,7 +152,7 @@ protected function convertDependencies(array $asset, $assetKey, array &$composer * * @return string[] The new dependency and the new version */ - protected function convertDependency($dependency, $version, array &$vcsRepos = array(), array $composer) + protected function convertDependency($dependency, $version, array &$vcsRepos, array $composer) { list($dependency, $version) = PackageUtil::checkUrlVersion($this->assetType, $dependency, $version, $vcsRepos, $composer); list($dependency, $version) = PackageUtil::checkAliasVersion($this->assetType, $dependency, $version); diff --git a/Converter/BowerPackageConverter.php b/Converter/BowerPackageConverter.php index bc245adc..f980c584 100644 --- a/Converter/BowerPackageConverter.php +++ b/Converter/BowerPackageConverter.php @@ -58,7 +58,7 @@ protected function getMapExtras() /** * {@inheritdoc} */ - protected function convertDependency($dependency, $version, array &$vcsRepos = array(), array $composer) + protected function convertDependency($dependency, $version, array &$vcsRepos, array $composer) { list($dependency, $version) = $this->checkGithubRepositoryVersion($dependency, $version); diff --git a/Converter/PackageUtil.php b/Converter/PackageUtil.php index 619bfa66..ac819b36 100644 --- a/Converter/PackageUtil.php +++ b/Converter/PackageUtil.php @@ -36,7 +36,7 @@ abstract class PackageUtil * * @return string[] The new dependency and the new version */ - public static function checkUrlVersion(AssetTypeInterface $assetType, $dependency, $version, array &$vcsRepos = array(), array $composer) + public static function checkUrlVersion(AssetTypeInterface $assetType, $dependency, $version, array &$vcsRepos, array $composer) { if (preg_match('/(\:\/\/)|\@/', $version)) { list($url, $version) = static::splitUrlVersion($version);