Procházet zdrojové kódy

throw error when file is loaded

Rob Bast před 9 roky
rodič
revize
2553f5f7d4
1 změnil soubory, kde provedl 2 přidání a 11 odebrání
  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);
-    }
 }