1
0
Fork 0

Make trigger error visible

pull/4541/merge
Jordi Boggiano 2015-10-27 16:11:07 +00:00
parent 615638c7c3
commit 125dc62fab
7 changed files with 8 additions and 6 deletions

View File

@ -67,6 +67,8 @@ class DefaultPolicy implements PolicyInterface
*/ */
public function selectPreferedPackages(Pool $pool, array $installedMap, array $literals, $requiredPackage = null) public function selectPreferedPackages(Pool $pool, array $installedMap, array $literals, $requiredPackage = null)
{ {
trigger_error('Method selectPreferedPackages is deprecated and replaced by selectPreferredPackages, please update your usage', E_USER_DEPRECATED);
return $this->selectPreferredPackages($pool, $installedMap, $literals, $requiredPackage); return $this->selectPreferredPackages($pool, $installedMap, $literals, $requiredPackage);
} }

View File

@ -14,7 +14,7 @@ namespace Composer\Package\LinkConstraint;
use Composer\Semver\Constraint\EmptyConstraint as SemverEmptyConstraint; use Composer\Semver\Constraint\EmptyConstraint as SemverEmptyConstraint;
@trigger_error('The ' . __NAMESPACE__ . '\EmptyConstraint class is deprecated, use Composer\Semver\Constraint\EmptyConstraint instead.', E_USER_DEPRECATED); trigger_error('The ' . __NAMESPACE__ . '\EmptyConstraint class is deprecated, use Composer\Semver\Constraint\EmptyConstraint instead.', E_USER_DEPRECATED);
/** /**
* @deprecated use Composer\Semver\Constraint\EmptyConstraint instead * @deprecated use Composer\Semver\Constraint\EmptyConstraint instead

View File

@ -14,7 +14,7 @@ namespace Composer\Package\LinkConstraint;
use Composer\Semver\Constraint\ConstraintInterface; use Composer\Semver\Constraint\ConstraintInterface;
@trigger_error('The ' . __NAMESPACE__ . '\LinkConstraintInterface interface is deprecated, use Composer\Semver\Constraint\ConstraintInterface instead.', E_USER_DEPRECATED); trigger_error('The ' . __NAMESPACE__ . '\LinkConstraintInterface interface is deprecated, use Composer\Semver\Constraint\ConstraintInterface instead.', E_USER_DEPRECATED);
/** /**
* @deprecated use Composer\Semver\Constraint\ConstraintInterface instead * @deprecated use Composer\Semver\Constraint\ConstraintInterface instead

View File

@ -14,7 +14,7 @@ namespace Composer\Package\LinkConstraint;
use Composer\Semver\Constraint\MultiConstraint as SemverMultiConstraint; use Composer\Semver\Constraint\MultiConstraint as SemverMultiConstraint;
@trigger_error('The ' . __NAMESPACE__ . '\MultiConstraint class is deprecated, use Composer\Semver\Constraint\MultiConstraint instead.', E_USER_DEPRECATED); trigger_error('The ' . __NAMESPACE__ . '\MultiConstraint class is deprecated, use Composer\Semver\Constraint\MultiConstraint instead.', E_USER_DEPRECATED);
/** /**
* @deprecated use Composer\Semver\Constraint\MultiConstraint instead * @deprecated use Composer\Semver\Constraint\MultiConstraint instead

View File

@ -14,7 +14,7 @@ namespace Composer\Package\LinkConstraint;
use Composer\Semver\Constraint\AbstractConstraint; use Composer\Semver\Constraint\AbstractConstraint;
@trigger_error('The ' . __NAMESPACE__ . '\SpecificConstraint abstract class is deprecated, use Composer\Semver\Constraint\AbstractConstraint instead.', E_USER_DEPRECATED); trigger_error('The ' . __NAMESPACE__ . '\SpecificConstraint abstract class is deprecated, use Composer\Semver\Constraint\AbstractConstraint instead.', E_USER_DEPRECATED);
/** /**
* @deprecated use Composer\Semver\Constraint\AbstractConstraint instead * @deprecated use Composer\Semver\Constraint\AbstractConstraint instead

View File

@ -14,7 +14,7 @@ namespace Composer\Package\LinkConstraint;
use Composer\Semver\Constraint\Constraint; use Composer\Semver\Constraint\Constraint;
@trigger_error('The ' . __NAMESPACE__ . '\VersionConstraint class is deprecated, use Composer\Semver\Constraint\Constraint instead.', E_USER_DEPRECATED); trigger_error('The ' . __NAMESPACE__ . '\VersionConstraint class is deprecated, use Composer\Semver\Constraint\Constraint instead.', E_USER_DEPRECATED);
/** /**
* @deprecated use Composer\Semver\Constraint\Constraint instead * @deprecated use Composer\Semver\Constraint\Constraint instead

View File

@ -14,7 +14,7 @@ namespace Composer\Util;
use Composer\Spdx\SpdxLicenses; use Composer\Spdx\SpdxLicenses;
@trigger_error('The ' . __NAMESPACE__ . '\SpdxLicense class is deprecated, use Composer\Spdx\SpdxLicenses instead.', E_USER_DEPRECATED); trigger_error('The ' . __NAMESPACE__ . '\SpdxLicense class is deprecated, use Composer\Spdx\SpdxLicenses instead.', E_USER_DEPRECATED);
/** /**
* @deprecated use Composer\Spdx\SpdxLicenses instead * @deprecated use Composer\Spdx\SpdxLicenses instead