瀏覽代碼

throw error when file is loaded

Rob Bast 9 年之前
父節點
當前提交
2553f5f7d4
共有 1 個文件被更改,包括 2 次插入11 次删除
  1. 2 11
      src/Composer/Util/SpdxLicense.php

+ 2 - 11
src/Composer/Util/SpdxLicense.php

@@ -14,20 +14,11 @@ namespace Composer\Util;
 
 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
  */
 class SpdxLicense extends SpdxLicenses
 {
-    public function __construct()
-    {
-        parent::__construct();
-
-        trigger_error(__CLASS__ . ' is deprecated, use Composer\\Spdx\\SpdxLicenses instead', E_USER_DEPRECATED);
-    }
 }