From 89717fa5934f9f19da4824346ceba960c7677098 Mon Sep 17 00:00:00 2001 From: Rob Bast Date: Fri, 25 Sep 2015 10:59:56 +0200 Subject: [PATCH] implement old linkconstraintinterface for BC --- src/Composer/Package/LinkConstraint/EmptyConstraint.php | 4 ++-- src/Composer/Package/LinkConstraint/MultiConstraint.php | 4 ++-- src/Composer/Package/LinkConstraint/SpecificConstraint.php | 2 +- src/Composer/Package/LinkConstraint/VersionConstraint.php | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Composer/Package/LinkConstraint/EmptyConstraint.php b/src/Composer/Package/LinkConstraint/EmptyConstraint.php index 43cc65163..09eb15ada 100644 --- a/src/Composer/Package/LinkConstraint/EmptyConstraint.php +++ b/src/Composer/Package/LinkConstraint/EmptyConstraint.php @@ -12,13 +12,13 @@ namespace Composer\Package\LinkConstraint; -use Composer\Semver\Constraint\EmptyConstraint as BaseEmptyConstraint; +use Composer\Semver\Constraint\EmptyConstraint as SemverEmptyConstraint; @trigger_error('The ' . __NAMESPACE__ . '\EmptyConstraint class is deprecated, use Composer\Semver\Constraint\EmptyConstraint instead.', E_USER_DEPRECATED); /** * @deprecated use Composer\Semver\Constraint\EmptyConstraint instead */ -class EmptyConstraint extends BaseEmptyConstraint +class EmptyConstraint extends SemverEmptyConstraint implements LinkConstraintInterface { } diff --git a/src/Composer/Package/LinkConstraint/MultiConstraint.php b/src/Composer/Package/LinkConstraint/MultiConstraint.php index 296076b18..6e091a430 100644 --- a/src/Composer/Package/LinkConstraint/MultiConstraint.php +++ b/src/Composer/Package/LinkConstraint/MultiConstraint.php @@ -12,13 +12,13 @@ namespace Composer\Package\LinkConstraint; -use Composer\Semver\Constraint\MultiConstraint as BaseMultiConstraint; +use Composer\Semver\Constraint\MultiConstraint as SemverMultiConstraint; @trigger_error('The ' . __NAMESPACE__ . '\MultiConstraint class is deprecated, use Composer\Semver\Constraint\MultiConstraint instead.', E_USER_DEPRECATED); /** * @deprecated use Composer\Semver\Constraint\MultiConstraint instead */ -class MultiConstraint extends BaseMultiConstraint +class MultiConstraint extends SemverMultiConstraint implements LinkConstraintInterface { } diff --git a/src/Composer/Package/LinkConstraint/SpecificConstraint.php b/src/Composer/Package/LinkConstraint/SpecificConstraint.php index 409f0a440..880873887 100644 --- a/src/Composer/Package/LinkConstraint/SpecificConstraint.php +++ b/src/Composer/Package/LinkConstraint/SpecificConstraint.php @@ -19,6 +19,6 @@ use Composer\Semver\Constraint\AbstractConstraint; /** * @deprecated use Composer\Semver\Constraint\AbstractConstraint instead */ -abstract class SpecificConstraint extends AbstractConstraint +abstract class SpecificConstraint extends AbstractConstraint implements LinkConstraintInterface { } diff --git a/src/Composer/Package/LinkConstraint/VersionConstraint.php b/src/Composer/Package/LinkConstraint/VersionConstraint.php index 45d471254..580016795 100644 --- a/src/Composer/Package/LinkConstraint/VersionConstraint.php +++ b/src/Composer/Package/LinkConstraint/VersionConstraint.php @@ -19,6 +19,6 @@ use Composer\Semver\Constraint\Constraint; /** * @deprecated use Composer\Semver\Constraint\Constraint instead */ -class VersionConstraint extends Constraint +class VersionConstraint extends Constraint implements LinkConstraintInterface { }