Changeset 2867746
- Timestamp:
- 02/19/2023 04:59:32 PM (3 years ago)
- Location:
- email-fields-for-woocommerce
- Files:
-
- 22 edited
- 1 copied
-
tags/1.2 (copied) (copied from email-fields-for-woocommerce/trunk)
-
tags/1.2/index.php (modified) (1 diff)
-
tags/1.2/readme.txt (modified) (2 diffs)
-
tags/1.2/vendor/autoload.php (modified) (1 diff)
-
tags/1.2/vendor/composer/ClassLoader.php (modified) (18 diffs)
-
tags/1.2/vendor/composer/InstalledVersions.php (modified) (6 diffs)
-
tags/1.2/vendor/composer/autoload_classmap.php (modified) (1 diff)
-
tags/1.2/vendor/composer/autoload_namespaces.php (modified) (1 diff)
-
tags/1.2/vendor/composer/autoload_psr4.php (modified) (1 diff)
-
tags/1.2/vendor/composer/autoload_real.php (modified) (2 diffs)
-
tags/1.2/vendor/composer/autoload_static.php (modified) (2 diffs)
-
tags/1.2/vendor/composer/installed.php (modified) (2 diffs)
-
trunk/index.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/vendor/autoload.php (modified) (1 diff)
-
trunk/vendor/composer/ClassLoader.php (modified) (18 diffs)
-
trunk/vendor/composer/InstalledVersions.php (modified) (6 diffs)
-
trunk/vendor/composer/autoload_classmap.php (modified) (1 diff)
-
trunk/vendor/composer/autoload_namespaces.php (modified) (1 diff)
-
trunk/vendor/composer/autoload_psr4.php (modified) (1 diff)
-
trunk/vendor/composer/autoload_real.php (modified) (2 diffs)
-
trunk/vendor/composer/autoload_static.php (modified) (2 diffs)
-
trunk/vendor/composer/installed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
email-fields-for-woocommerce/tags/1.2/index.php
r2571901 r2867746 8 8 * Text Domain: email-fields-for-woocommerce 9 9 * Domain Path: /languages 10 * Version: 1. 1.310 * Version: 1.2 11 11 */ 12 12 -
email-fields-for-woocommerce/tags/1.2/readme.txt
r2571901 r2867746 1 1 === Email Fields For WooCommerce === 2 2 Contributors: ingerikagili 3 Tags: bcc, reply to, woocommerce 3 Tags: bcc, reply to, woocommerce, email field, more email fields, bcc for woocommerce, reply to woocommerce 4 4 Requires at least: 5.0 5 Tested up to: 5.86 Stable tag: 1. 1.35 Tested up to: 6.2 6 Stable tag: 1.2 7 7 Requires PHP: 7.2 8 8 License: GPLv2 or later … … 37 37 == Changelog == 38 38 39 = 1.2 = 40 * Update of the tested version. 41 39 42 = 1.1.3 = 40 43 * Fix for deploy system. -
email-fields-for-woocommerce/tags/1.2/vendor/autoload.php
r2571901 r2867746 3 3 // autoload.php @generated by Composer 4 4 5 if (PHP_VERSION_ID < 50600) { 6 if (!headers_sent()) { 7 header('HTTP/1.1 500 Internal Server Error'); 8 } 9 $err = 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL; 10 if (!ini_get('display_errors')) { 11 if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') { 12 fwrite(STDERR, $err); 13 } elseif (!headers_sent()) { 14 echo $err; 15 } 16 } 17 trigger_error( 18 $err, 19 E_USER_ERROR 20 ); 21 } 22 5 23 require_once __DIR__ . '/composer/autoload_real.php'; 6 24 7 return ComposerAutoloaderInit cfd1db6d2a29bbb7c667855d3338f094::getLoader();25 return ComposerAutoloaderInitfdb12ce6c7aabf005a8163d07777d614::getLoader(); -
email-fields-for-woocommerce/tags/1.2/vendor/composer/ClassLoader.php
r2571884 r2867746 43 43 class ClassLoader 44 44 { 45 /** @var \Closure(string):void */ 46 private static $includeFile; 47 48 /** @var ?string */ 45 49 private $vendorDir; 46 50 47 51 // PSR-4 52 /** 53 * @var array[] 54 * @psalm-var array<string, array<string, int>> 55 */ 48 56 private $prefixLengthsPsr4 = array(); 57 /** 58 * @var array[] 59 * @psalm-var array<string, array<int, string>> 60 */ 49 61 private $prefixDirsPsr4 = array(); 62 /** 63 * @var array[] 64 * @psalm-var array<string, string> 65 */ 50 66 private $fallbackDirsPsr4 = array(); 51 67 52 68 // PSR-0 69 /** 70 * @var array[] 71 * @psalm-var array<string, array<string, string[]>> 72 */ 53 73 private $prefixesPsr0 = array(); 74 /** 75 * @var array[] 76 * @psalm-var array<string, string> 77 */ 54 78 private $fallbackDirsPsr0 = array(); 55 79 80 /** @var bool */ 56 81 private $useIncludePath = false; 82 83 /** 84 * @var string[] 85 * @psalm-var array<string, string> 86 */ 57 87 private $classMap = array(); 88 89 /** @var bool */ 58 90 private $classMapAuthoritative = false; 91 92 /** 93 * @var bool[] 94 * @psalm-var array<string, bool> 95 */ 59 96 private $missingClasses = array(); 97 98 /** @var ?string */ 60 99 private $apcuPrefix; 61 100 101 /** 102 * @var self[] 103 */ 62 104 private static $registeredLoaders = array(); 63 105 106 /** 107 * @param ?string $vendorDir 108 */ 64 109 public function __construct($vendorDir = null) 65 110 { 66 111 $this->vendorDir = $vendorDir; 67 } 68 112 self::initializeIncludeClosure(); 113 } 114 115 /** 116 * @return string[] 117 */ 69 118 public function getPrefixes() 70 119 { … … 76 125 } 77 126 127 /** 128 * @return array[] 129 * @psalm-return array<string, array<int, string>> 130 */ 78 131 public function getPrefixesPsr4() 79 132 { … … 81 134 } 82 135 136 /** 137 * @return array[] 138 * @psalm-return array<string, string> 139 */ 83 140 public function getFallbackDirs() 84 141 { … … 86 143 } 87 144 145 /** 146 * @return array[] 147 * @psalm-return array<string, string> 148 */ 88 149 public function getFallbackDirsPsr4() 89 150 { … … 91 152 } 92 153 154 /** 155 * @return string[] Array of classname => path 156 * @psalm-return array<string, string> 157 */ 93 158 public function getClassMap() 94 159 { … … 97 162 98 163 /** 99 * @param array $classMap Class to filename map 164 * @param string[] $classMap Class to filename map 165 * @psalm-param array<string, string> $classMap 166 * 167 * @return void 100 168 */ 101 169 public function addClassMap(array $classMap) … … 112 180 * appending or prepending to the ones previously set for this prefix. 113 181 * 114 * @param string $prefix The prefix 115 * @param array|string $paths The PSR-0 root directories 116 * @param bool $prepend Whether to prepend the directories 182 * @param string $prefix The prefix 183 * @param string[]|string $paths The PSR-0 root directories 184 * @param bool $prepend Whether to prepend the directories 185 * 186 * @return void 117 187 */ 118 188 public function add($prefix, $paths, $prepend = false) … … 157 227 * appending or prepending to the ones previously set for this namespace. 158 228 * 159 * @param string $prefix The prefix/namespace, with trailing '\\'160 * @param array|string $paths The PSR-4 base directories161 * @param bool $prepend Whether to prepend the directories229 * @param string $prefix The prefix/namespace, with trailing '\\' 230 * @param string[]|string $paths The PSR-4 base directories 231 * @param bool $prepend Whether to prepend the directories 162 232 * 163 233 * @throws \InvalidArgumentException 234 * 235 * @return void 164 236 */ 165 237 public function addPsr4($prefix, $paths, $prepend = false) … … 205 277 * replacing any others previously set for this prefix. 206 278 * 207 * @param string $prefix The prefix 208 * @param array|string $paths The PSR-0 base directories 279 * @param string $prefix The prefix 280 * @param string[]|string $paths The PSR-0 base directories 281 * 282 * @return void 209 283 */ 210 284 public function set($prefix, $paths) … … 221 295 * replacing any others previously set for this namespace. 222 296 * 223 * @param string $prefix The prefix/namespace, with trailing '\\'224 * @param array|string $paths The PSR-4 base directories297 * @param string $prefix The prefix/namespace, with trailing '\\' 298 * @param string[]|string $paths The PSR-4 base directories 225 299 * 226 300 * @throws \InvalidArgumentException 301 * 302 * @return void 227 303 */ 228 304 public function setPsr4($prefix, $paths) … … 244 320 * 245 321 * @param bool $useIncludePath 322 * 323 * @return void 246 324 */ 247 325 public function setUseIncludePath($useIncludePath) … … 266 344 * 267 345 * @param bool $classMapAuthoritative 346 * 347 * @return void 268 348 */ 269 349 public function setClassMapAuthoritative($classMapAuthoritative) … … 286 366 * 287 367 * @param string|null $apcuPrefix 368 * 369 * @return void 288 370 */ 289 371 public function setApcuPrefix($apcuPrefix) … … 306 388 * 307 389 * @param bool $prepend Whether to prepend the autoloader or not 390 * 391 * @return void 308 392 */ 309 393 public function register($prepend = false) … … 325 409 /** 326 410 * Unregisters this instance as an autoloader. 411 * 412 * @return void 327 413 */ 328 414 public function unregister() … … 344 430 { 345 431 if ($file = $this->findFile($class)) { 346 includeFile($file); 432 $includeFile = self::$includeFile; 433 $includeFile($file); 347 434 348 435 return true; … … 404 491 } 405 492 493 /** 494 * @param string $class 495 * @param string $ext 496 * @return string|false 497 */ 406 498 private function findFileWithExtension($class, $ext) 407 499 { … … 469 561 return false; 470 562 } 563 564 /** 565 * @return void 566 */ 567 private static function initializeIncludeClosure() 568 { 569 if (self::$includeFile !== null) { 570 return; 571 } 572 573 /** 574 * Scope isolated include. 575 * 576 * Prevents access to $this/self from included files. 577 * 578 * @param string $file 579 * @return void 580 */ 581 self::$includeFile = \Closure::bind(static function($file) { 582 include $file; 583 }, null, null); 584 } 471 585 } 472 473 /**474 * Scope isolated include.475 *476 * Prevents access to $this/self from included files.477 */478 function includeFile($file)479 {480 include $file;481 } -
email-fields-for-woocommerce/tags/1.2/vendor/composer/InstalledVersions.php
r2571884 r2867746 21 21 * See also https://getcomposer.org/doc/07-runtime.md#installed-versions 22 22 * 23 * To require it's presence, you can require `composer-runtime-api ^2.0` 23 * To require its presence, you can require `composer-runtime-api ^2.0` 24 * 25 * @final 24 26 */ 25 27 class InstalledVersions 26 28 { 29 /** 30 * @var mixed[]|null 31 * @psalm-var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}|array{}|null 32 */ 27 33 private static $installed; 34 35 /** 36 * @var bool|null 37 */ 28 38 private static $canGetVendors; 39 40 /** 41 * @var array[] 42 * @psalm-var array<string, array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}> 43 */ 29 44 private static $installedByVendor = array(); 30 45 … … 229 244 /** 230 245 * @return array 231 * @psalm-return array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string}246 * @psalm-return array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool} 232 247 */ 233 248 public static function getRootPackage() … … 243 258 * @deprecated Use getAllRawData() instead which returns all datasets for all autoloaders present in the process. getRawData only returns the first dataset loaded, which may not be what you expect. 244 259 * @return array[] 245 * @psalm-return array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string}>}260 * @psalm-return array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} 246 261 */ 247 262 public static function getRawData() … … 266 281 * 267 282 * @return array[] 268 * @psalm-return list<array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string}>}>283 * @psalm-return list<array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}> 269 284 */ 270 285 public static function getAllRawData() … … 289 304 * @return void 290 305 * 291 * @psalm-param array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string}>} $data306 * @psalm-param array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $data 292 307 */ 293 308 public static function reload($data) … … 299 314 /** 300 315 * @return array[] 301 * @psalm-return list<array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string}>}>316 * @psalm-return list<array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}> 302 317 */ 303 318 private static function getInstalled() -
email-fields-for-woocommerce/tags/1.2/vendor/composer/autoload_classmap.php
r2571884 r2867746 3 3 // autoload_classmap.php @generated by Composer 4 4 5 $vendorDir = dirname( dirname(__FILE__));5 $vendorDir = dirname(__DIR__); 6 6 $baseDir = dirname($vendorDir); 7 7 -
email-fields-for-woocommerce/tags/1.2/vendor/composer/autoload_namespaces.php
r2571884 r2867746 3 3 // autoload_namespaces.php @generated by Composer 4 4 5 $vendorDir = dirname( dirname(__FILE__));5 $vendorDir = dirname(__DIR__); 6 6 $baseDir = dirname($vendorDir); 7 7 -
email-fields-for-woocommerce/tags/1.2/vendor/composer/autoload_psr4.php
r2571884 r2867746 3 3 // autoload_psr4.php @generated by Composer 4 4 5 $vendorDir = dirname( dirname(__FILE__));5 $vendorDir = dirname(__DIR__); 6 6 $baseDir = dirname($vendorDir); 7 7 -
email-fields-for-woocommerce/tags/1.2/vendor/composer/autoload_real.php
r2571901 r2867746 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit cfd1db6d2a29bbb7c667855d3338f0945 class ComposerAutoloaderInitfdb12ce6c7aabf005a8163d07777d614 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit cfd1db6d2a29bbb7c667855d3338f094', 'loadClassLoader'), true, true);28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname( \dirname(__FILE__)));29 spl_autoload_unregister(array('ComposerAutoloaderInit cfd1db6d2a29bbb7c667855d3338f094', 'loadClassLoader'));27 spl_autoload_register(array('ComposerAutoloaderInitfdb12ce6c7aabf005a8163d07777d614', 'loadClassLoader'), true, true); 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 29 spl_autoload_unregister(array('ComposerAutoloaderInitfdb12ce6c7aabf005a8163d07777d614', 'loadClassLoader')); 30 30 31 $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); 32 if ($useStaticLoader) { 33 require __DIR__ . '/autoload_static.php'; 34 35 call_user_func(\Composer\Autoload\ComposerStaticInitcfd1db6d2a29bbb7c667855d3338f094::getInitializer($loader)); 36 } else { 37 $map = require __DIR__ . '/autoload_namespaces.php'; 38 foreach ($map as $namespace => $path) { 39 $loader->set($namespace, $path); 40 } 41 42 $map = require __DIR__ . '/autoload_psr4.php'; 43 foreach ($map as $namespace => $path) { 44 $loader->setPsr4($namespace, $path); 45 } 46 47 $classMap = require __DIR__ . '/autoload_classmap.php'; 48 if ($classMap) { 49 $loader->addClassMap($classMap); 50 } 51 } 31 require __DIR__ . '/autoload_static.php'; 32 call_user_func(\Composer\Autoload\ComposerStaticInitfdb12ce6c7aabf005a8163d07777d614::getInitializer($loader)); 52 33 53 34 $loader->register(true); -
email-fields-for-woocommerce/tags/1.2/vendor/composer/autoload_static.php
r2571901 r2867746 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit cfd1db6d2a29bbb7c667855d3338f0947 class ComposerStaticInitfdb12ce6c7aabf005a8163d07777d614 8 8 { 9 9 public static $prefixLengthsPsr4 = array ( … … 29 29 { 30 30 return \Closure::bind(function () use ($loader) { 31 $loader->prefixLengthsPsr4 = ComposerStaticInit cfd1db6d2a29bbb7c667855d3338f094::$prefixLengthsPsr4;32 $loader->prefixDirsPsr4 = ComposerStaticInit cfd1db6d2a29bbb7c667855d3338f094::$prefixDirsPsr4;33 $loader->classMap = ComposerStaticInit cfd1db6d2a29bbb7c667855d3338f094::$classMap;31 $loader->prefixLengthsPsr4 = ComposerStaticInitfdb12ce6c7aabf005a8163d07777d614::$prefixLengthsPsr4; 32 $loader->prefixDirsPsr4 = ComposerStaticInitfdb12ce6c7aabf005a8163d07777d614::$prefixDirsPsr4; 33 $loader->classMap = ComposerStaticInitfdb12ce6c7aabf005a8163d07777d614::$classMap; 34 34 35 35 }, null, ClassLoader::class); -
email-fields-for-woocommerce/tags/1.2/vendor/composer/installed.php
r2571901 r2867746 1 1 <?php return array( 2 2 'root' => array( 3 'name' => 'dottxado/email-fields-for-woocommerce', 3 4 'pretty_version' => 'dev-master', 4 5 'version' => 'dev-master', 6 'reference' => '6b95be6df540d48c5694e3baa90eeaf022ccc00e', 5 7 'type' => 'wordpress-plugin', 6 8 'install_path' => __DIR__ . '/../../', 7 9 'aliases' => array(), 8 'reference' => '3faf946b9b2bfbb1baca3a18ab5b885c508e61f4',9 'name' => 'dottxado/email-fields-for-woocommerce',10 10 'dev' => false, 11 11 ), … … 14 14 'pretty_version' => 'dev-master', 15 15 'version' => 'dev-master', 16 'reference' => '6b95be6df540d48c5694e3baa90eeaf022ccc00e', 16 17 'type' => 'wordpress-plugin', 17 18 'install_path' => __DIR__ . '/../../', 18 19 'aliases' => array(), 19 'reference' => '3faf946b9b2bfbb1baca3a18ab5b885c508e61f4',20 20 'dev_requirement' => false, 21 21 ), -
email-fields-for-woocommerce/trunk/index.php
r2571901 r2867746 8 8 * Text Domain: email-fields-for-woocommerce 9 9 * Domain Path: /languages 10 * Version: 1. 1.310 * Version: 1.2 11 11 */ 12 12 -
email-fields-for-woocommerce/trunk/readme.txt
r2571901 r2867746 1 1 === Email Fields For WooCommerce === 2 2 Contributors: ingerikagili 3 Tags: bcc, reply to, woocommerce 3 Tags: bcc, reply to, woocommerce, email field, more email fields, bcc for woocommerce, reply to woocommerce 4 4 Requires at least: 5.0 5 Tested up to: 5.86 Stable tag: 1. 1.35 Tested up to: 6.2 6 Stable tag: 1.2 7 7 Requires PHP: 7.2 8 8 License: GPLv2 or later … … 37 37 == Changelog == 38 38 39 = 1.2 = 40 * Update of the tested version. 41 39 42 = 1.1.3 = 40 43 * Fix for deploy system. -
email-fields-for-woocommerce/trunk/vendor/autoload.php
r2571901 r2867746 3 3 // autoload.php @generated by Composer 4 4 5 if (PHP_VERSION_ID < 50600) { 6 if (!headers_sent()) { 7 header('HTTP/1.1 500 Internal Server Error'); 8 } 9 $err = 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL; 10 if (!ini_get('display_errors')) { 11 if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') { 12 fwrite(STDERR, $err); 13 } elseif (!headers_sent()) { 14 echo $err; 15 } 16 } 17 trigger_error( 18 $err, 19 E_USER_ERROR 20 ); 21 } 22 5 23 require_once __DIR__ . '/composer/autoload_real.php'; 6 24 7 return ComposerAutoloaderInit cfd1db6d2a29bbb7c667855d3338f094::getLoader();25 return ComposerAutoloaderInitfdb12ce6c7aabf005a8163d07777d614::getLoader(); -
email-fields-for-woocommerce/trunk/vendor/composer/ClassLoader.php
r2571884 r2867746 43 43 class ClassLoader 44 44 { 45 /** @var \Closure(string):void */ 46 private static $includeFile; 47 48 /** @var ?string */ 45 49 private $vendorDir; 46 50 47 51 // PSR-4 52 /** 53 * @var array[] 54 * @psalm-var array<string, array<string, int>> 55 */ 48 56 private $prefixLengthsPsr4 = array(); 57 /** 58 * @var array[] 59 * @psalm-var array<string, array<int, string>> 60 */ 49 61 private $prefixDirsPsr4 = array(); 62 /** 63 * @var array[] 64 * @psalm-var array<string, string> 65 */ 50 66 private $fallbackDirsPsr4 = array(); 51 67 52 68 // PSR-0 69 /** 70 * @var array[] 71 * @psalm-var array<string, array<string, string[]>> 72 */ 53 73 private $prefixesPsr0 = array(); 74 /** 75 * @var array[] 76 * @psalm-var array<string, string> 77 */ 54 78 private $fallbackDirsPsr0 = array(); 55 79 80 /** @var bool */ 56 81 private $useIncludePath = false; 82 83 /** 84 * @var string[] 85 * @psalm-var array<string, string> 86 */ 57 87 private $classMap = array(); 88 89 /** @var bool */ 58 90 private $classMapAuthoritative = false; 91 92 /** 93 * @var bool[] 94 * @psalm-var array<string, bool> 95 */ 59 96 private $missingClasses = array(); 97 98 /** @var ?string */ 60 99 private $apcuPrefix; 61 100 101 /** 102 * @var self[] 103 */ 62 104 private static $registeredLoaders = array(); 63 105 106 /** 107 * @param ?string $vendorDir 108 */ 64 109 public function __construct($vendorDir = null) 65 110 { 66 111 $this->vendorDir = $vendorDir; 67 } 68 112 self::initializeIncludeClosure(); 113 } 114 115 /** 116 * @return string[] 117 */ 69 118 public function getPrefixes() 70 119 { … … 76 125 } 77 126 127 /** 128 * @return array[] 129 * @psalm-return array<string, array<int, string>> 130 */ 78 131 public function getPrefixesPsr4() 79 132 { … … 81 134 } 82 135 136 /** 137 * @return array[] 138 * @psalm-return array<string, string> 139 */ 83 140 public function getFallbackDirs() 84 141 { … … 86 143 } 87 144 145 /** 146 * @return array[] 147 * @psalm-return array<string, string> 148 */ 88 149 public function getFallbackDirsPsr4() 89 150 { … … 91 152 } 92 153 154 /** 155 * @return string[] Array of classname => path 156 * @psalm-return array<string, string> 157 */ 93 158 public function getClassMap() 94 159 { … … 97 162 98 163 /** 99 * @param array $classMap Class to filename map 164 * @param string[] $classMap Class to filename map 165 * @psalm-param array<string, string> $classMap 166 * 167 * @return void 100 168 */ 101 169 public function addClassMap(array $classMap) … … 112 180 * appending or prepending to the ones previously set for this prefix. 113 181 * 114 * @param string $prefix The prefix 115 * @param array|string $paths The PSR-0 root directories 116 * @param bool $prepend Whether to prepend the directories 182 * @param string $prefix The prefix 183 * @param string[]|string $paths The PSR-0 root directories 184 * @param bool $prepend Whether to prepend the directories 185 * 186 * @return void 117 187 */ 118 188 public function add($prefix, $paths, $prepend = false) … … 157 227 * appending or prepending to the ones previously set for this namespace. 158 228 * 159 * @param string $prefix The prefix/namespace, with trailing '\\'160 * @param array|string $paths The PSR-4 base directories161 * @param bool $prepend Whether to prepend the directories229 * @param string $prefix The prefix/namespace, with trailing '\\' 230 * @param string[]|string $paths The PSR-4 base directories 231 * @param bool $prepend Whether to prepend the directories 162 232 * 163 233 * @throws \InvalidArgumentException 234 * 235 * @return void 164 236 */ 165 237 public function addPsr4($prefix, $paths, $prepend = false) … … 205 277 * replacing any others previously set for this prefix. 206 278 * 207 * @param string $prefix The prefix 208 * @param array|string $paths The PSR-0 base directories 279 * @param string $prefix The prefix 280 * @param string[]|string $paths The PSR-0 base directories 281 * 282 * @return void 209 283 */ 210 284 public function set($prefix, $paths) … … 221 295 * replacing any others previously set for this namespace. 222 296 * 223 * @param string $prefix The prefix/namespace, with trailing '\\'224 * @param array|string $paths The PSR-4 base directories297 * @param string $prefix The prefix/namespace, with trailing '\\' 298 * @param string[]|string $paths The PSR-4 base directories 225 299 * 226 300 * @throws \InvalidArgumentException 301 * 302 * @return void 227 303 */ 228 304 public function setPsr4($prefix, $paths) … … 244 320 * 245 321 * @param bool $useIncludePath 322 * 323 * @return void 246 324 */ 247 325 public function setUseIncludePath($useIncludePath) … … 266 344 * 267 345 * @param bool $classMapAuthoritative 346 * 347 * @return void 268 348 */ 269 349 public function setClassMapAuthoritative($classMapAuthoritative) … … 286 366 * 287 367 * @param string|null $apcuPrefix 368 * 369 * @return void 288 370 */ 289 371 public function setApcuPrefix($apcuPrefix) … … 306 388 * 307 389 * @param bool $prepend Whether to prepend the autoloader or not 390 * 391 * @return void 308 392 */ 309 393 public function register($prepend = false) … … 325 409 /** 326 410 * Unregisters this instance as an autoloader. 411 * 412 * @return void 327 413 */ 328 414 public function unregister() … … 344 430 { 345 431 if ($file = $this->findFile($class)) { 346 includeFile($file); 432 $includeFile = self::$includeFile; 433 $includeFile($file); 347 434 348 435 return true; … … 404 491 } 405 492 493 /** 494 * @param string $class 495 * @param string $ext 496 * @return string|false 497 */ 406 498 private function findFileWithExtension($class, $ext) 407 499 { … … 469 561 return false; 470 562 } 563 564 /** 565 * @return void 566 */ 567 private static function initializeIncludeClosure() 568 { 569 if (self::$includeFile !== null) { 570 return; 571 } 572 573 /** 574 * Scope isolated include. 575 * 576 * Prevents access to $this/self from included files. 577 * 578 * @param string $file 579 * @return void 580 */ 581 self::$includeFile = \Closure::bind(static function($file) { 582 include $file; 583 }, null, null); 584 } 471 585 } 472 473 /**474 * Scope isolated include.475 *476 * Prevents access to $this/self from included files.477 */478 function includeFile($file)479 {480 include $file;481 } -
email-fields-for-woocommerce/trunk/vendor/composer/InstalledVersions.php
r2571884 r2867746 21 21 * See also https://getcomposer.org/doc/07-runtime.md#installed-versions 22 22 * 23 * To require it's presence, you can require `composer-runtime-api ^2.0` 23 * To require its presence, you can require `composer-runtime-api ^2.0` 24 * 25 * @final 24 26 */ 25 27 class InstalledVersions 26 28 { 29 /** 30 * @var mixed[]|null 31 * @psalm-var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}|array{}|null 32 */ 27 33 private static $installed; 34 35 /** 36 * @var bool|null 37 */ 28 38 private static $canGetVendors; 39 40 /** 41 * @var array[] 42 * @psalm-var array<string, array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}> 43 */ 29 44 private static $installedByVendor = array(); 30 45 … … 229 244 /** 230 245 * @return array 231 * @psalm-return array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string}246 * @psalm-return array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool} 232 247 */ 233 248 public static function getRootPackage() … … 243 258 * @deprecated Use getAllRawData() instead which returns all datasets for all autoloaders present in the process. getRawData only returns the first dataset loaded, which may not be what you expect. 244 259 * @return array[] 245 * @psalm-return array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string}>}260 * @psalm-return array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} 246 261 */ 247 262 public static function getRawData() … … 266 281 * 267 282 * @return array[] 268 * @psalm-return list<array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string}>}>283 * @psalm-return list<array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}> 269 284 */ 270 285 public static function getAllRawData() … … 289 304 * @return void 290 305 * 291 * @psalm-param array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string}>} $data306 * @psalm-param array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $data 292 307 */ 293 308 public static function reload($data) … … 299 314 /** 300 315 * @return array[] 301 * @psalm-return list<array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string}>}>316 * @psalm-return list<array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}> 302 317 */ 303 318 private static function getInstalled() -
email-fields-for-woocommerce/trunk/vendor/composer/autoload_classmap.php
r2571884 r2867746 3 3 // autoload_classmap.php @generated by Composer 4 4 5 $vendorDir = dirname( dirname(__FILE__));5 $vendorDir = dirname(__DIR__); 6 6 $baseDir = dirname($vendorDir); 7 7 -
email-fields-for-woocommerce/trunk/vendor/composer/autoload_namespaces.php
r2571884 r2867746 3 3 // autoload_namespaces.php @generated by Composer 4 4 5 $vendorDir = dirname( dirname(__FILE__));5 $vendorDir = dirname(__DIR__); 6 6 $baseDir = dirname($vendorDir); 7 7 -
email-fields-for-woocommerce/trunk/vendor/composer/autoload_psr4.php
r2571884 r2867746 3 3 // autoload_psr4.php @generated by Composer 4 4 5 $vendorDir = dirname( dirname(__FILE__));5 $vendorDir = dirname(__DIR__); 6 6 $baseDir = dirname($vendorDir); 7 7 -
email-fields-for-woocommerce/trunk/vendor/composer/autoload_real.php
r2571901 r2867746 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit cfd1db6d2a29bbb7c667855d3338f0945 class ComposerAutoloaderInitfdb12ce6c7aabf005a8163d07777d614 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit cfd1db6d2a29bbb7c667855d3338f094', 'loadClassLoader'), true, true);28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname( \dirname(__FILE__)));29 spl_autoload_unregister(array('ComposerAutoloaderInit cfd1db6d2a29bbb7c667855d3338f094', 'loadClassLoader'));27 spl_autoload_register(array('ComposerAutoloaderInitfdb12ce6c7aabf005a8163d07777d614', 'loadClassLoader'), true, true); 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 29 spl_autoload_unregister(array('ComposerAutoloaderInitfdb12ce6c7aabf005a8163d07777d614', 'loadClassLoader')); 30 30 31 $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); 32 if ($useStaticLoader) { 33 require __DIR__ . '/autoload_static.php'; 34 35 call_user_func(\Composer\Autoload\ComposerStaticInitcfd1db6d2a29bbb7c667855d3338f094::getInitializer($loader)); 36 } else { 37 $map = require __DIR__ . '/autoload_namespaces.php'; 38 foreach ($map as $namespace => $path) { 39 $loader->set($namespace, $path); 40 } 41 42 $map = require __DIR__ . '/autoload_psr4.php'; 43 foreach ($map as $namespace => $path) { 44 $loader->setPsr4($namespace, $path); 45 } 46 47 $classMap = require __DIR__ . '/autoload_classmap.php'; 48 if ($classMap) { 49 $loader->addClassMap($classMap); 50 } 51 } 31 require __DIR__ . '/autoload_static.php'; 32 call_user_func(\Composer\Autoload\ComposerStaticInitfdb12ce6c7aabf005a8163d07777d614::getInitializer($loader)); 52 33 53 34 $loader->register(true); -
email-fields-for-woocommerce/trunk/vendor/composer/autoload_static.php
r2571901 r2867746 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit cfd1db6d2a29bbb7c667855d3338f0947 class ComposerStaticInitfdb12ce6c7aabf005a8163d07777d614 8 8 { 9 9 public static $prefixLengthsPsr4 = array ( … … 29 29 { 30 30 return \Closure::bind(function () use ($loader) { 31 $loader->prefixLengthsPsr4 = ComposerStaticInit cfd1db6d2a29bbb7c667855d3338f094::$prefixLengthsPsr4;32 $loader->prefixDirsPsr4 = ComposerStaticInit cfd1db6d2a29bbb7c667855d3338f094::$prefixDirsPsr4;33 $loader->classMap = ComposerStaticInit cfd1db6d2a29bbb7c667855d3338f094::$classMap;31 $loader->prefixLengthsPsr4 = ComposerStaticInitfdb12ce6c7aabf005a8163d07777d614::$prefixLengthsPsr4; 32 $loader->prefixDirsPsr4 = ComposerStaticInitfdb12ce6c7aabf005a8163d07777d614::$prefixDirsPsr4; 33 $loader->classMap = ComposerStaticInitfdb12ce6c7aabf005a8163d07777d614::$classMap; 34 34 35 35 }, null, ClassLoader::class); -
email-fields-for-woocommerce/trunk/vendor/composer/installed.php
r2571901 r2867746 1 1 <?php return array( 2 2 'root' => array( 3 'name' => 'dottxado/email-fields-for-woocommerce', 3 4 'pretty_version' => 'dev-master', 4 5 'version' => 'dev-master', 6 'reference' => '6b95be6df540d48c5694e3baa90eeaf022ccc00e', 5 7 'type' => 'wordpress-plugin', 6 8 'install_path' => __DIR__ . '/../../', 7 9 'aliases' => array(), 8 'reference' => '3faf946b9b2bfbb1baca3a18ab5b885c508e61f4',9 'name' => 'dottxado/email-fields-for-woocommerce',10 10 'dev' => false, 11 11 ), … … 14 14 'pretty_version' => 'dev-master', 15 15 'version' => 'dev-master', 16 'reference' => '6b95be6df540d48c5694e3baa90eeaf022ccc00e', 16 17 'type' => 'wordpress-plugin', 17 18 'install_path' => __DIR__ . '/../../', 18 19 'aliases' => array(), 19 'reference' => '3faf946b9b2bfbb1baca3a18ab5b885c508e61f4',20 20 'dev_requirement' => false, 21 21 ),
Note: See TracChangeset
for help on using the changeset viewer.