1
0
Fork 0

throw error when file is loaded

pull/4264/head
Rob Bast 2015-07-20 12:10:30 +02:00
parent 56f0d82207
commit 2553f5f7d4
1 changed files with 2 additions and 11 deletions

View File

@ -14,20 +14,11 @@ 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);
/** /**
* Supports composer array and SPDX tag notation for disjunctive/conjunctive
* licenses.
*
* @author Tom Klingenberg <tklingenberg@lastflood.net>
*
* @deprecated use Composer\Spdx\SpdxLicenses instead * @deprecated use Composer\Spdx\SpdxLicenses instead
*/ */
class SpdxLicense extends SpdxLicenses class SpdxLicense extends SpdxLicenses
{ {
public function __construct()
{
parent::__construct();
trigger_error(__CLASS__ . ' is deprecated, use Composer\\Spdx\\SpdxLicenses instead', E_USER_DEPRECATED);
}
} }