private function validateReplaces( PackageInterface
$package,
array
$pluginDependencies,
RequirementExceptionStack
$exceptionStack ): array
{ foreach ($package->
getReplaces() as $replace) { $replaceConstraint =
$replace->
getConstraint();
if ($replace->
getPrettyConstraint() === 'self.version'
) { $replaceConstraint =
new Constraint('==',
$package->
getVersion());
} $pluginDependencies['require'
] =
$this->
checkRequirement( $pluginDependencies['require'
],
$replace->
getTarget(),
$replaceConstraint,
$exceptionStack );
$pluginDependencies['conflict'
] =
$this->
checkConflict(