这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@Jean85
Copy link
Contributor

@Jean85 Jean85 commented Feb 5, 2018

As promised in #57 (comment)

[EDIT] Double push is due to rebase on master

@Jean85 Jean85 force-pushed the parse-replaced-versions branch from 168b29c to 36e42b0 Compare February 5, 2018 12:55
@Ocramius Ocramius added this to the 1.3.0 milestone Feb 5, 2018
@Ocramius Ocramius self-assigned this Feb 5, 2018
foreach ($rootPackage->getReplaces() as $replace) {
yield $replace->getTarget() => $replace->getPrettyConstraint() . '@' . $rootPackage->getSourceReference();
$version = $replace->getPrettyConstraint();
if ($version === 'self.version') {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there something other than self.version that we can add to the tests to demonstrate alternate outcomes? Or is this the only "special" version type in composer.json?

Copy link
Owner

@Ocramius Ocramius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looked up https://github.com/Ocramius/PackageVersions/pull/59/files#r165964163, couldn't find anything, therefore shipping this one as-is 👍

@Ocramius Ocramius merged commit 4489d50 into Ocramius:master Feb 5, 2018
@Jean85 Jean85 deleted the parse-replaced-versions branch February 5, 2018 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants