Skip to content

Commit

Permalink
Fix method argument default value
Browse files Browse the repository at this point in the history
  • Loading branch information
francoispluchino committed Oct 12, 2016
1 parent fb19e04 commit 19e7f04
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Converter/AbstractPackageConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion Converter/BowerPackageConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion Converter/PackageUtil.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 19e7f04

Please sign in to comment.