Changeset 2915482
- Timestamp:
- 05/21/2023 06:41:52 PM (3 years ago)
- Location:
- cryptopay-wc-lite/trunk
- Files:
-
- 74 edited
-
app/Api.php (modified) (1 diff)
-
app/WooCommerce/Register.php (modified) (1 diff)
-
composer.json (modified) (1 diff)
-
composer.lock (modified) (21 diffs)
-
vendor/autoload.php (modified) (1 diff)
-
vendor/beycanpress/currency-converter/src/CurrencyConverter.php (modified) (3 diffs)
-
vendor/composer/autoload_files.php (modified) (1 diff)
-
vendor/composer/autoload_psr4.php (modified) (1 diff)
-
vendor/composer/autoload_real.php (modified) (2 diffs)
-
vendor/composer/autoload_static.php (modified) (6 diffs)
-
vendor/composer/installed.json (modified) (23 diffs)
-
vendor/composer/installed.php (modified) (9 diffs)
-
vendor/guzzlehttp/guzzle/CHANGELOG.md (modified) (32 diffs)
-
vendor/guzzlehttp/guzzle/README.md (modified) (1 diff)
-
vendor/guzzlehttp/guzzle/composer.json (modified) (3 diffs)
-
vendor/guzzlehttp/guzzle/src/Client.php (modified) (9 diffs)
-
vendor/guzzlehttp/guzzle/src/Cookie/CookieJar.php (modified) (9 diffs)
-
vendor/guzzlehttp/guzzle/src/Cookie/CookieJarInterface.php (modified) (1 diff)
-
vendor/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php (modified) (1 diff)
-
vendor/guzzlehttp/guzzle/src/Cookie/SetCookie.php (modified) (6 diffs)
-
vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php (modified) (12 diffs)
-
vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php (modified) (1 diff)
-
vendor/guzzlehttp/guzzle/src/Handler/EasyHandle.php (modified) (1 diff)
-
vendor/guzzlehttp/guzzle/src/Handler/HeaderProcessor.php (modified) (1 diff)
-
vendor/guzzlehttp/guzzle/src/Handler/MockHandler.php (modified) (2 diffs)
-
vendor/guzzlehttp/guzzle/src/Handler/StreamHandler.php (modified) (11 diffs)
-
vendor/guzzlehttp/guzzle/src/HandlerStack.php (modified) (3 diffs)
-
vendor/guzzlehttp/guzzle/src/MessageFormatter.php (modified) (5 diffs)
-
vendor/guzzlehttp/guzzle/src/Middleware.php (modified) (6 diffs)
-
vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php (modified) (1 diff)
-
vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php (modified) (1 diff)
-
vendor/guzzlehttp/guzzle/src/RequestOptions.php (modified) (2 diffs)
-
vendor/guzzlehttp/guzzle/src/RetryMiddleware.php (modified) (5 diffs)
-
vendor/guzzlehttp/guzzle/src/Utils.php (modified) (8 diffs)
-
vendor/guzzlehttp/guzzle/src/functions.php (modified) (3 diffs)
-
vendor/guzzlehttp/guzzle/src/functions_include.php (modified) (1 diff)
-
vendor/guzzlehttp/promises/CHANGELOG.md (modified) (5 diffs)
-
vendor/guzzlehttp/promises/README.md (modified) (3 diffs)
-
vendor/guzzlehttp/promises/composer.json (modified) (2 diffs)
-
vendor/guzzlehttp/promises/src/AggregateException.php (modified) (2 diffs)
-
vendor/guzzlehttp/promises/src/CancellationException.php (modified) (1 diff)
-
vendor/guzzlehttp/promises/src/Coroutine.php (modified) (12 diffs)
-
vendor/guzzlehttp/promises/src/Create.php (modified) (6 diffs)
-
vendor/guzzlehttp/promises/src/Each.php (modified) (7 diffs)
-
vendor/guzzlehttp/promises/src/EachPromise.php (modified) (12 diffs)
-
vendor/guzzlehttp/promises/src/FulfilledPromise.php (modified) (6 diffs)
-
vendor/guzzlehttp/promises/src/Is.php (modified) (5 diffs)
-
vendor/guzzlehttp/promises/src/Promise.php (modified) (17 diffs)
-
vendor/guzzlehttp/promises/src/PromiseInterface.php (modified) (9 diffs)
-
vendor/guzzlehttp/promises/src/PromisorInterface.php (modified) (2 diffs)
-
vendor/guzzlehttp/promises/src/RejectedPromise.php (modified) (8 diffs)
-
vendor/guzzlehttp/promises/src/RejectionException.php (modified) (3 diffs)
-
vendor/guzzlehttp/promises/src/TaskQueue.php (modified) (5 diffs)
-
vendor/guzzlehttp/promises/src/TaskQueueInterface.php (modified) (3 diffs)
-
vendor/guzzlehttp/promises/src/Utils.php (modified) (17 diffs)
-
vendor/guzzlehttp/psr7/CHANGELOG.md (modified) (1 diff)
-
vendor/guzzlehttp/psr7/composer.json (modified) (2 diffs)
-
vendor/guzzlehttp/psr7/src/Message.php (modified) (1 diff)
-
vendor/guzzlehttp/psr7/src/MessageTrait.php (modified) (2 diffs)
-
vendor/guzzlehttp/psr7/src/ServerRequest.php (modified) (1 diff)
-
vendor/multiplechain/evm-chains/src/Transaction.php (modified) (4 diffs)
-
vendor/psr/http-client/README.md (modified) (1 diff)
-
vendor/psr/http-client/composer.json (modified) (1 diff)
-
vendor/psr/http-factory/README.md (modified) (1 diff)
-
vendor/psr/http-factory/composer.json (modified) (1 diff)
-
vendor/psr/http-message/README.md (modified) (1 diff)
-
vendor/psr/http-message/composer.json (modified) (2 diffs)
-
vendor/psr/http-message/src/MessageInterface.php (modified) (11 diffs)
-
vendor/psr/http-message/src/RequestInterface.php (modified) (6 diffs)
-
vendor/psr/http-message/src/ResponseInterface.php (modified) (3 diffs)
-
vendor/psr/http-message/src/ServerRequestInterface.php (modified) (12 diffs)
-
vendor/psr/http-message/src/StreamInterface.php (modified) (14 diffs)
-
vendor/psr/http-message/src/UploadedFileInterface.php (modified) (6 diffs)
-
vendor/psr/http-message/src/UriInterface.php (modified) (17 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cryptopay-wc-lite/trunk/app/Api.php
r2915478 r2915482 3 3 namespace BeycanPress\CryptoPayLite; 4 4 5 use \BeycanPress\ Request;6 use \BeycanPress\ Response;5 use \BeycanPress\Http\Request; 6 use \BeycanPress\Http\Response; 7 7 use \BeycanPress\CryptoPayLite\Services; 8 8 use \BeycanPress\CryptoPayLite\Verifier; -
cryptopay-wc-lite/trunk/app/WooCommerce/Register.php
r2915478 r2915482 3 3 namespace BeycanPress\CryptoPayLite\WooCommerce; 4 4 5 use \BeycanPress\ Response;5 use \BeycanPress\Http\Response; 6 6 use \BeycanPress\CryptoPayLite\Services; 7 7 use \BeycanPress\CryptoPayLite\PluginHero\Hook; -
cryptopay-wc-lite/trunk/composer.json
r2915472 r2915482 6 6 }, 7 7 "require": { 8 "beycanpress/wp-table": "^0.1.0",9 8 "beycanpress/wp-model": "^0.1.0", 10 9 "beycanpress/currency-converter": "^0.1.0", 11 10 "multiplechain/evm-chains": "^0.1.5", 12 11 "multiplechain/evm-based-chains": "^0.1.0", 13 "beycanpress/ request": "^0.1.0",14 "beycanpress/ response": "^0.1.0"12 "beycanpress/http": "^0.1.3", 13 "beycanpress/wp-table": "^0.1.0" 15 14 } 16 15 } -
cryptopay-wc-lite/trunk/composer.lock
r2915472 r2915482 5 5 "This file is @generated automatically" 6 6 ], 7 "content-hash": " e751e59784c124d6ed94845b0c4c0f49",7 "content-hash": "408f6c70616b0597d2162ee7622aed25", 8 8 "packages": [ 9 9 { … … 43 43 }, 44 44 { 45 "name": "beycanpress/ request",46 "version": "0.1. 0",47 "source": { 48 "type": "git", 49 "url": "https://github.com/BeycanPress/ request.git",50 "reference": " 14f0e087b8cdcca0a41ac23b4b7373ae39a43942"51 }, 52 "dist": { 53 "type": "zip", 54 "url": "https://api.github.com/repos/BeycanPress/ request/zipball/14f0e087b8cdcca0a41ac23b4b7373ae39a43942",55 "reference": " 14f0e087b8cdcca0a41ac23b4b7373ae39a43942",45 "name": "beycanpress/http", 46 "version": "0.1.3", 47 "source": { 48 "type": "git", 49 "url": "https://github.com/BeycanPress/http.git", 50 "reference": "dc6ad1f1d30e3ad47bc9b26bce5ea295ce7caded" 51 }, 52 "dist": { 53 "type": "zip", 54 "url": "https://api.github.com/repos/BeycanPress/http/zipball/dc6ad1f1d30e3ad47bc9b26bce5ea295ce7caded", 55 "reference": "dc6ad1f1d30e3ad47bc9b26bce5ea295ce7caded", 56 56 "shasum": "" 57 57 }, … … 62 62 "autoload": { 63 63 "psr-4": { 64 "BeycanPress\\": "src" 65 } 66 }, 67 "notification-url": "https://packagist.org/downloads/", 68 "license": [ 69 "MIT" 70 ], 71 "description": "It is a simple and useful class for receiving data in many different request types and sending requests.", 72 "homepage": "https://github.com/BeycanPress/request", 73 "keywords": [ 74 "all", 75 "get", 76 "json", 77 "post", 78 "request", 79 "send", 80 "xml" 81 ], 82 "support": { 83 "issues": "https://github.com/BeycanPress/request/issues", 84 "source": "https://github.com/BeycanPress/request/tree/0.1.0" 85 }, 86 "time": "2023-04-07T09:26:09+00:00" 87 }, 88 { 89 "name": "beycanpress/response", 90 "version": "0.1.0", 91 "source": { 92 "type": "git", 93 "url": "https://github.com/BeycanPress/response.git", 94 "reference": "a442276a143a8b37f2f809745315589c487ac558" 95 }, 96 "dist": { 97 "type": "zip", 98 "url": "https://api.github.com/repos/BeycanPress/response/zipball/a442276a143a8b37f2f809745315589c487ac558", 99 "reference": "a442276a143a8b37f2f809745315589c487ac558", 100 "shasum": "" 101 }, 102 "require": { 103 "php": ">=7.4" 104 }, 105 "type": "library", 106 "autoload": { 107 "psr-4": { 108 "BeycanPress\\": "src" 109 } 110 }, 111 "notification-url": "https://packagist.org/downloads/", 112 "license": [ 113 "MIT" 114 ], 115 "description": "A simple and useful class to return json response in PHP.", 116 "homepage": "https://github.com/BeycanPress/response", 117 "support": { 118 "issues": "https://github.com/BeycanPress/response/issues", 119 "source": "https://github.com/BeycanPress/response/tree/0.1.0" 120 }, 121 "time": "2023-04-07T09:27:47+00:00" 64 "BeycanPress\\Http\\": "src" 65 } 66 }, 67 "notification-url": "https://packagist.org/downloads/", 68 "license": [ 69 "MIT" 70 ], 71 "description": "A simple and useful library for HTTP requests, response and client.", 72 "homepage": "https://github.com/BeycanPress/http", 73 "support": { 74 "issues": "https://github.com/BeycanPress/http/issues", 75 "source": "https://github.com/BeycanPress/http/tree/0.1.3" 76 }, 77 "time": "2023-05-04T08:25:39+00:00" 122 78 }, 123 79 { … … 213 169 { 214 170 "name": "guzzlehttp/guzzle", 215 "version": "7. 5.0",171 "version": "7.7.0", 216 172 "source": { 217 173 "type": "git", 218 174 "url": "https://github.com/guzzle/guzzle.git", 219 "reference": " b50a2a1251152e43f6a37f0fa053e730a67d25ba"220 }, 221 "dist": { 222 "type": "zip", 223 "url": "https://api.github.com/repos/guzzle/guzzle/zipball/ b50a2a1251152e43f6a37f0fa053e730a67d25ba",224 "reference": " b50a2a1251152e43f6a37f0fa053e730a67d25ba",175 "reference": "fb7566caccf22d74d1ab270de3551f72a58399f5" 176 }, 177 "dist": { 178 "type": "zip", 179 "url": "https://api.github.com/repos/guzzle/guzzle/zipball/fb7566caccf22d74d1ab270de3551f72a58399f5", 180 "reference": "fb7566caccf22d74d1ab270de3551f72a58399f5", 225 181 "shasum": "" 226 182 }, 227 183 "require": { 228 184 "ext-json": "*", 229 "guzzlehttp/promises": "^1.5 ",230 "guzzlehttp/psr7": "^1.9 || ^2.4",185 "guzzlehttp/promises": "^1.5.3 || ^2.0", 186 "guzzlehttp/psr7": "^1.9.1 || ^2.4.5", 231 187 "php": "^7.2.5 || ^8.0", 232 188 "psr/http-client": "^1.0", … … 239 195 "bamarni/composer-bin-plugin": "^1.8.1", 240 196 "ext-curl": "*", 241 "php-http/client-integration-tests": "^3.0", 197 "php-http/client-integration-tests": "dev-master#2c025848417c1135031fdf9c728ee53d0a7ceaee as 3.0.999", 198 "php-http/message-factory": "^1.1", 242 199 "phpunit/phpunit": "^8.5.29 || ^9.5.23", 243 200 "psr/log": "^1.1 || ^2.0 || ^3.0" … … 253 210 "bin-links": true, 254 211 "forward-command": false 255 },256 "branch-alias": {257 "dev-master": "7.5-dev"258 212 } 259 213 }, … … 321 275 "support": { 322 276 "issues": "https://github.com/guzzle/guzzle/issues", 323 "source": "https://github.com/guzzle/guzzle/tree/7. 5.0"277 "source": "https://github.com/guzzle/guzzle/tree/7.7.0" 324 278 }, 325 279 "funding": [ … … 337 291 } 338 292 ], 339 "time": "202 2-08-28T15:39:27+00:00"293 "time": "2023-05-21T14:04:53+00:00" 340 294 }, 341 295 { 342 296 "name": "guzzlehttp/promises", 343 "version": " 1.5.2",297 "version": "2.0.0", 344 298 "source": { 345 299 "type": "git", 346 300 "url": "https://github.com/guzzle/promises.git", 347 "reference": " b94b2807d85443f9719887892882d0329d1e2598"348 }, 349 "dist": { 350 "type": "zip", 351 "url": "https://api.github.com/repos/guzzle/promises/zipball/ b94b2807d85443f9719887892882d0329d1e2598",352 "reference": " b94b2807d85443f9719887892882d0329d1e2598",353 "shasum": "" 354 }, 355 "require": { 356 "php": " >=5.5"301 "reference": "3a494dc7dc1d7d12e511890177ae2d0e6c107da6" 302 }, 303 "dist": { 304 "type": "zip", 305 "url": "https://api.github.com/repos/guzzle/promises/zipball/3a494dc7dc1d7d12e511890177ae2d0e6c107da6", 306 "reference": "3a494dc7dc1d7d12e511890177ae2d0e6c107da6", 307 "shasum": "" 308 }, 309 "require": { 310 "php": "^7.2.5 || ^8.0" 357 311 }, 358 312 "require-dev": { 359 "symfony/phpunit-bridge": "^4.4 || ^5.1" 313 "bamarni/composer-bin-plugin": "^1.8.1", 314 "phpunit/phpunit": "^8.5.29 || ^9.5.23" 360 315 }, 361 316 "type": "library", 362 317 "extra": { 363 "branch-alias": { 364 "dev-master": "1.5-dev" 365 } 366 }, 367 "autoload": { 368 "files": [ 369 "src/functions_include.php" 370 ], 318 "bamarni-bin": { 319 "bin-links": true, 320 "forward-command": false 321 } 322 }, 323 "autoload": { 371 324 "psr-4": { 372 325 "GuzzleHttp\\Promise\\": "src/" … … 405 358 "support": { 406 359 "issues": "https://github.com/guzzle/promises/issues", 407 "source": "https://github.com/guzzle/promises/tree/ 1.5.2"360 "source": "https://github.com/guzzle/promises/tree/2.0.0" 408 361 }, 409 362 "funding": [ … … 421 374 } 422 375 ], 423 "time": "202 2-08-28T14:55:35+00:00"376 "time": "2023-05-21T13:50:22+00:00" 424 377 }, 425 378 { 426 379 "name": "guzzlehttp/psr7", 427 "version": "2. 4.4",380 "version": "2.5.0", 428 381 "source": { 429 382 "type": "git", 430 383 "url": "https://github.com/guzzle/psr7.git", 431 "reference": " 3cf1b6d4f0c820a2cf8bcaec39fc698f3443b5cf"432 }, 433 "dist": { 434 "type": "zip", 435 "url": "https://api.github.com/repos/guzzle/psr7/zipball/ 3cf1b6d4f0c820a2cf8bcaec39fc698f3443b5cf",436 "reference": " 3cf1b6d4f0c820a2cf8bcaec39fc698f3443b5cf",384 "reference": "b635f279edd83fc275f822a1188157ffea568ff6" 385 }, 386 "dist": { 387 "type": "zip", 388 "url": "https://api.github.com/repos/guzzle/psr7/zipball/b635f279edd83fc275f822a1188157ffea568ff6", 389 "reference": "b635f279edd83fc275f822a1188157ffea568ff6", 437 390 "shasum": "" 438 391 }, … … 440 393 "php": "^7.2.5 || ^8.0", 441 394 "psr/http-factory": "^1.0", 442 "psr/http-message": "^1. 0",395 "psr/http-message": "^1.1 || ^2.0", 443 396 "ralouphie/getallheaders": "^3.0" 444 397 }, … … 460 413 "bin-links": true, 461 414 "forward-command": false 462 },463 "branch-alias": {464 "dev-master": "2.4-dev"465 415 } 466 416 }, … … 524 474 "support": { 525 475 "issues": "https://github.com/guzzle/psr7/issues", 526 "source": "https://github.com/guzzle/psr7/tree/2. 4.4"476 "source": "https://github.com/guzzle/psr7/tree/2.5.0" 527 477 }, 528 478 "funding": [ … … 540 490 } 541 491 ], 542 "time": "2023-0 3-09T13:19:02+00:00"492 "time": "2023-04-17T16:11:26+00:00" 543 493 }, 544 494 { … … 815 765 { 816 766 "name": "psr/http-client", 817 "version": "1.0. 1",767 "version": "1.0.2", 818 768 "source": { 819 769 "type": "git", 820 770 "url": "https://github.com/php-fig/http-client.git", 821 "reference": " 2dfb5f6c5eff0e91e20e913f8c5452ed95b86621"822 }, 823 "dist": { 824 "type": "zip", 825 "url": "https://api.github.com/repos/php-fig/http-client/zipball/ 2dfb5f6c5eff0e91e20e913f8c5452ed95b86621",826 "reference": " 2dfb5f6c5eff0e91e20e913f8c5452ed95b86621",771 "reference": "0955afe48220520692d2d09f7ab7e0f93ffd6a31" 772 }, 773 "dist": { 774 "type": "zip", 775 "url": "https://api.github.com/repos/php-fig/http-client/zipball/0955afe48220520692d2d09f7ab7e0f93ffd6a31", 776 "reference": "0955afe48220520692d2d09f7ab7e0f93ffd6a31", 827 777 "shasum": "" 828 778 }, 829 779 "require": { 830 780 "php": "^7.0 || ^8.0", 831 "psr/http-message": "^1.0 "781 "psr/http-message": "^1.0 || ^2.0" 832 782 }, 833 783 "type": "library", … … 849 799 { 850 800 "name": "PHP-FIG", 851 "homepage": "http ://www.php-fig.org/"801 "homepage": "https://www.php-fig.org/" 852 802 } 853 803 ], … … 861 811 ], 862 812 "support": { 863 "source": "https://github.com/php-fig/http-client/tree/ master"864 }, 865 "time": "202 0-06-29T06:28:15+00:00"813 "source": "https://github.com/php-fig/http-client/tree/1.0.2" 814 }, 815 "time": "2023-04-10T20:12:12+00:00" 866 816 }, 867 817 { 868 818 "name": "psr/http-factory", 869 "version": "1.0. 1",819 "version": "1.0.2", 870 820 "source": { 871 821 "type": "git", 872 822 "url": "https://github.com/php-fig/http-factory.git", 873 "reference": " 12ac7fcd07e5b077433f5f2bee95b3a771bf61be"874 }, 875 "dist": { 876 "type": "zip", 877 "url": "https://api.github.com/repos/php-fig/http-factory/zipball/ 12ac7fcd07e5b077433f5f2bee95b3a771bf61be",878 "reference": " 12ac7fcd07e5b077433f5f2bee95b3a771bf61be",823 "reference": "e616d01114759c4c489f93b099585439f795fe35" 824 }, 825 "dist": { 826 "type": "zip", 827 "url": "https://api.github.com/repos/php-fig/http-factory/zipball/e616d01114759c4c489f93b099585439f795fe35", 828 "reference": "e616d01114759c4c489f93b099585439f795fe35", 879 829 "shasum": "" 880 830 }, 881 831 "require": { 882 832 "php": ">=7.0.0", 883 "psr/http-message": "^1.0 "833 "psr/http-message": "^1.0 || ^2.0" 884 834 }, 885 835 "type": "library", … … 901 851 { 902 852 "name": "PHP-FIG", 903 "homepage": "http ://www.php-fig.org/"853 "homepage": "https://www.php-fig.org/" 904 854 } 905 855 ], … … 916 866 ], 917 867 "support": { 918 "source": "https://github.com/php-fig/http-factory/tree/ master"919 }, 920 "time": "20 19-04-30T12:38:16+00:00"868 "source": "https://github.com/php-fig/http-factory/tree/1.0.2" 869 }, 870 "time": "2023-04-10T20:10:41+00:00" 921 871 }, 922 872 { 923 873 "name": "psr/http-message", 924 "version": " 1.0.1",874 "version": "2.0", 925 875 "source": { 926 876 "type": "git", 927 877 "url": "https://github.com/php-fig/http-message.git", 928 "reference": " f6561bf28d520154e4b0ec72be95418abe6d9363"929 }, 930 "dist": { 931 "type": "zip", 932 "url": "https://api.github.com/repos/php-fig/http-message/zipball/ f6561bf28d520154e4b0ec72be95418abe6d9363",933 "reference": " f6561bf28d520154e4b0ec72be95418abe6d9363",934 "shasum": "" 935 }, 936 "require": { 937 "php": " >=5.3.0"878 "reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71" 879 }, 880 "dist": { 881 "type": "zip", 882 "url": "https://api.github.com/repos/php-fig/http-message/zipball/402d35bcb92c70c026d1a6a9883f06b2ead23d71", 883 "reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71", 884 "shasum": "" 885 }, 886 "require": { 887 "php": "^7.2 || ^8.0" 938 888 }, 939 889 "type": "library", 940 890 "extra": { 941 891 "branch-alias": { 942 "dev-master": " 1.0.x-dev"892 "dev-master": "2.0.x-dev" 943 893 } 944 894 }, … … 955 905 { 956 906 "name": "PHP-FIG", 957 "homepage": "http ://www.php-fig.org/"907 "homepage": "https://www.php-fig.org/" 958 908 } 959 909 ], … … 969 919 ], 970 920 "support": { 971 "source": "https://github.com/php-fig/http-message/tree/ master"972 }, 973 "time": "20 16-08-06T14:39:51+00:00"921 "source": "https://github.com/php-fig/http-message/tree/2.0" 922 }, 923 "time": "2023-04-04T09:54:51+00:00" 974 924 }, 975 925 { -
cryptopay-wc-lite/trunk/vendor/autoload.php
r2915472 r2915482 23 23 require_once __DIR__ . '/composer/autoload_real.php'; 24 24 25 return ComposerAutoloaderInit e0794f52a4a0f4d34e5cd0767bcf0446::getLoader();25 return ComposerAutoloaderInit8344e6b546558a6c5633ebc2f36ec0f3::getLoader(); -
cryptopay-wc-lite/trunk/vendor/beycanpress/currency-converter/src/CurrencyConverter.php
r2915472 r2915482 78 78 79 79 if ($this->isStableCoin($from, $to)) { 80 return floatval($amount);81 }82 83 if ($this->isSameCurrency($from, $to)) {84 80 return floatval($amount); 85 81 } … … 263 259 * @return boolean 264 260 */ 265 p ublicfunction isStableCoin(string $from, string $to) : bool261 private function isStableCoin(string $from, string $to) : bool 266 262 { 267 263 if (strtoupper($from) == 'USD' || strtoupper($to) == 'USD') { … … 275 271 276 272 /** 277 * @param string $from278 * @param string $to279 * @return boolean280 */281 public function isSameCurrency(string $from, string $to) : bool282 {283 if (strtoupper($from) == strtoupper($to)) {284 return true;285 }286 287 return false;288 }289 290 /**291 273 * @param array $symbols 292 274 * @return void 293 275 */ 294 p ublicfunction addStableCoins(array $symbols) : void276 private function addStableCoins(array $symbols) : void 295 277 { 296 278 $this->stableCoins = array_merge($this->stableCoins, $symbols); -
cryptopay-wc-lite/trunk/vendor/composer/autoload_files.php
r2915472 r2915482 10 10 'decc78cc4436b1292c6c0d151b19445c' => $vendorDir . '/phpseclib/phpseclib/phpseclib/bootstrap.php', 11 11 '7b11c4dc42b3b3023073cb14e519683c' => $vendorDir . '/ralouphie/getallheaders/src/getallheaders.php', 12 'c964ee0ededf28c96ebd9db5099ef910' => $vendorDir . '/guzzlehttp/promises/src/functions_include.php',13 12 '6e3fae29631ef280660b3cdad06f25a8' => $vendorDir . '/symfony/deprecation-contracts/function.php', 14 13 '37a3dc5111fe8f707ab4c132ef1dbc62' => $vendorDir . '/guzzlehttp/guzzle/src/functions_include.php', -
cryptopay-wc-lite/trunk/vendor/composer/autoload_psr4.php
r2915472 r2915482 24 24 'BeycanPress\\WPTable\\' => array($vendorDir . '/beycanpress/wp-table/src'), 25 25 'BeycanPress\\WPModel\\' => array($vendorDir . '/beycanpress/wp-model/src'), 26 'BeycanPress\\Http\\' => array($vendorDir . '/beycanpress/http/src'), 26 27 'BeycanPress\\CryptoPayLite\\' => array($baseDir . '/app'), 27 'BeycanPress\\' => array($vendorDir . '/beycanpress/currency-converter/src' , $vendorDir . '/beycanpress/request/src', $vendorDir . '/beycanpress/response/src'),28 'BeycanPress\\' => array($vendorDir . '/beycanpress/currency-converter/src'), 28 29 'BN\\' => array($vendorDir . '/simplito/bn-php/lib'), 29 30 'BI\\' => array($vendorDir . '/simplito/bigint-wrapper-php/lib'), -
cryptopay-wc-lite/trunk/vendor/composer/autoload_real.php
r2915472 r2915482 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit e0794f52a4a0f4d34e5cd0767bcf04465 class ComposerAutoloaderInit8344e6b546558a6c5633ebc2f36ec0f3 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit e0794f52a4a0f4d34e5cd0767bcf0446', 'loadClassLoader'), true, true);27 spl_autoload_register(array('ComposerAutoloaderInit8344e6b546558a6c5633ebc2f36ec0f3', 'loadClassLoader'), true, true); 28 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 29 spl_autoload_unregister(array('ComposerAutoloaderInit e0794f52a4a0f4d34e5cd0767bcf0446', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderInit8344e6b546558a6c5633ebc2f36ec0f3', 'loadClassLoader')); 30 30 31 31 require __DIR__ . '/autoload_static.php'; 32 call_user_func(\Composer\Autoload\ComposerStaticInit e0794f52a4a0f4d34e5cd0767bcf0446::getInitializer($loader));32 call_user_func(\Composer\Autoload\ComposerStaticInit8344e6b546558a6c5633ebc2f36ec0f3::getInitializer($loader)); 33 33 34 34 $loader->register(true); 35 35 36 $filesToLoad = \Composer\Autoload\ComposerStaticInit e0794f52a4a0f4d34e5cd0767bcf0446::$files;36 $filesToLoad = \Composer\Autoload\ComposerStaticInit8344e6b546558a6c5633ebc2f36ec0f3::$files; 37 37 $requireFile = \Closure::bind(static function ($fileIdentifier, $file) { 38 38 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { -
cryptopay-wc-lite/trunk/vendor/composer/autoload_static.php
r2915472 r2915482 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit e0794f52a4a0f4d34e5cd0767bcf04467 class ComposerStaticInit8344e6b546558a6c5633ebc2f36ec0f3 8 8 { 9 9 public static $files = array ( … … 11 11 'decc78cc4436b1292c6c0d151b19445c' => __DIR__ . '/..' . '/phpseclib/phpseclib/phpseclib/bootstrap.php', 12 12 '7b11c4dc42b3b3023073cb14e519683c' => __DIR__ . '/..' . '/ralouphie/getallheaders/src/getallheaders.php', 13 'c964ee0ededf28c96ebd9db5099ef910' => __DIR__ . '/..' . '/guzzlehttp/promises/src/functions_include.php',14 13 '6e3fae29631ef280660b3cdad06f25a8' => __DIR__ . '/..' . '/symfony/deprecation-contracts/function.php', 15 14 '37a3dc5111fe8f707ab4c132ef1dbc62' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/functions_include.php', … … 60 59 'BeycanPress\\WPTable\\' => 20, 61 60 'BeycanPress\\WPModel\\' => 20, 61 'BeycanPress\\Http\\' => 17, 62 62 'BeycanPress\\CryptoPayLite\\' => 26, 63 63 'BeycanPress\\' => 12, … … 138 138 0 => __DIR__ . '/..' . '/beycanpress/wp-model/src', 139 139 ), 140 'BeycanPress\\Http\\' => 141 array ( 142 0 => __DIR__ . '/..' . '/beycanpress/http/src', 143 ), 140 144 'BeycanPress\\CryptoPayLite\\' => 141 145 array ( … … 145 149 array ( 146 150 0 => __DIR__ . '/..' . '/beycanpress/currency-converter/src', 147 1 => __DIR__ . '/..' . '/beycanpress/request/src',148 2 => __DIR__ . '/..' . '/beycanpress/response/src',149 151 ), 150 152 'BN\\' => … … 165 167 { 166 168 return \Closure::bind(function () use ($loader) { 167 $loader->prefixLengthsPsr4 = ComposerStaticInit e0794f52a4a0f4d34e5cd0767bcf0446::$prefixLengthsPsr4;168 $loader->prefixDirsPsr4 = ComposerStaticInit e0794f52a4a0f4d34e5cd0767bcf0446::$prefixDirsPsr4;169 $loader->classMap = ComposerStaticInit e0794f52a4a0f4d34e5cd0767bcf0446::$classMap;169 $loader->prefixLengthsPsr4 = ComposerStaticInit8344e6b546558a6c5633ebc2f36ec0f3::$prefixLengthsPsr4; 170 $loader->prefixDirsPsr4 = ComposerStaticInit8344e6b546558a6c5633ebc2f36ec0f3::$prefixDirsPsr4; 171 $loader->classMap = ComposerStaticInit8344e6b546558a6c5633ebc2f36ec0f3::$classMap; 170 172 171 173 }, null, ClassLoader::class); -
cryptopay-wc-lite/trunk/vendor/composer/installed.json
r2915472 r2915482 40 40 }, 41 41 { 42 "name": "beycanpress/ request",43 "version": "0.1. 0",44 "version_normalized": "0.1. 0.0",45 "source": { 46 "type": "git", 47 "url": "https://github.com/BeycanPress/ request.git",48 "reference": " 14f0e087b8cdcca0a41ac23b4b7373ae39a43942"49 }, 50 "dist": { 51 "type": "zip", 52 "url": "https://api.github.com/repos/BeycanPress/ request/zipball/14f0e087b8cdcca0a41ac23b4b7373ae39a43942",53 "reference": " 14f0e087b8cdcca0a41ac23b4b7373ae39a43942",42 "name": "beycanpress/http", 43 "version": "0.1.3", 44 "version_normalized": "0.1.3.0", 45 "source": { 46 "type": "git", 47 "url": "https://github.com/BeycanPress/http.git", 48 "reference": "dc6ad1f1d30e3ad47bc9b26bce5ea295ce7caded" 49 }, 50 "dist": { 51 "type": "zip", 52 "url": "https://api.github.com/repos/BeycanPress/http/zipball/dc6ad1f1d30e3ad47bc9b26bce5ea295ce7caded", 53 "reference": "dc6ad1f1d30e3ad47bc9b26bce5ea295ce7caded", 54 54 "shasum": "" 55 55 }, … … 57 57 "php": ">=7.4" 58 58 }, 59 "time": "2023-04-07T09:26:09+00:00", 60 "type": "library", 61 "installation-source": "dist", 62 "autoload": { 63 "psr-4": { 64 "BeycanPress\\": "src" 65 } 66 }, 67 "notification-url": "https://packagist.org/downloads/", 68 "license": [ 69 "MIT" 70 ], 71 "description": "It is a simple and useful class for receiving data in many different request types and sending requests.", 72 "homepage": "https://github.com/BeycanPress/request", 73 "keywords": [ 74 "all", 75 "get", 76 "json", 77 "post", 78 "request", 79 "send", 80 "xml" 81 ], 82 "support": { 83 "issues": "https://github.com/BeycanPress/request/issues", 84 "source": "https://github.com/BeycanPress/request/tree/0.1.0" 85 }, 86 "install-path": "../beycanpress/request" 87 }, 88 { 89 "name": "beycanpress/response", 90 "version": "0.1.0", 91 "version_normalized": "0.1.0.0", 92 "source": { 93 "type": "git", 94 "url": "https://github.com/BeycanPress/response.git", 95 "reference": "a442276a143a8b37f2f809745315589c487ac558" 96 }, 97 "dist": { 98 "type": "zip", 99 "url": "https://api.github.com/repos/BeycanPress/response/zipball/a442276a143a8b37f2f809745315589c487ac558", 100 "reference": "a442276a143a8b37f2f809745315589c487ac558", 101 "shasum": "" 102 }, 103 "require": { 104 "php": ">=7.4" 105 }, 106 "time": "2023-04-07T09:27:47+00:00", 107 "type": "library", 108 "installation-source": "dist", 109 "autoload": { 110 "psr-4": { 111 "BeycanPress\\": "src" 112 } 113 }, 114 "notification-url": "https://packagist.org/downloads/", 115 "license": [ 116 "MIT" 117 ], 118 "description": "A simple and useful class to return json response in PHP.", 119 "homepage": "https://github.com/BeycanPress/response", 120 "support": { 121 "issues": "https://github.com/BeycanPress/response/issues", 122 "source": "https://github.com/BeycanPress/response/tree/0.1.0" 123 }, 124 "install-path": "../beycanpress/response" 59 "time": "2023-05-04T08:25:39+00:00", 60 "type": "library", 61 "installation-source": "dist", 62 "autoload": { 63 "psr-4": { 64 "BeycanPress\\Http\\": "src" 65 } 66 }, 67 "notification-url": "https://packagist.org/downloads/", 68 "license": [ 69 "MIT" 70 ], 71 "description": "A simple and useful library for HTTP requests, response and client.", 72 "homepage": "https://github.com/BeycanPress/http", 73 "support": { 74 "issues": "https://github.com/BeycanPress/http/issues", 75 "source": "https://github.com/BeycanPress/http/tree/0.1.3" 76 }, 77 "install-path": "../beycanpress/http" 125 78 }, 126 79 { … … 222 175 { 223 176 "name": "guzzlehttp/guzzle", 224 "version": "7. 5.0",225 "version_normalized": "7. 5.0.0",177 "version": "7.7.0", 178 "version_normalized": "7.7.0.0", 226 179 "source": { 227 180 "type": "git", 228 181 "url": "https://github.com/guzzle/guzzle.git", 229 "reference": " b50a2a1251152e43f6a37f0fa053e730a67d25ba"230 }, 231 "dist": { 232 "type": "zip", 233 "url": "https://api.github.com/repos/guzzle/guzzle/zipball/ b50a2a1251152e43f6a37f0fa053e730a67d25ba",234 "reference": " b50a2a1251152e43f6a37f0fa053e730a67d25ba",182 "reference": "fb7566caccf22d74d1ab270de3551f72a58399f5" 183 }, 184 "dist": { 185 "type": "zip", 186 "url": "https://api.github.com/repos/guzzle/guzzle/zipball/fb7566caccf22d74d1ab270de3551f72a58399f5", 187 "reference": "fb7566caccf22d74d1ab270de3551f72a58399f5", 235 188 "shasum": "" 236 189 }, 237 190 "require": { 238 191 "ext-json": "*", 239 "guzzlehttp/promises": "^1.5 ",240 "guzzlehttp/psr7": "^1.9 || ^2.4",192 "guzzlehttp/promises": "^1.5.3 || ^2.0", 193 "guzzlehttp/psr7": "^1.9.1 || ^2.4.5", 241 194 "php": "^7.2.5 || ^8.0", 242 195 "psr/http-client": "^1.0", … … 249 202 "bamarni/composer-bin-plugin": "^1.8.1", 250 203 "ext-curl": "*", 251 "php-http/client-integration-tests": "^3.0", 204 "php-http/client-integration-tests": "dev-master#2c025848417c1135031fdf9c728ee53d0a7ceaee as 3.0.999", 205 "php-http/message-factory": "^1.1", 252 206 "phpunit/phpunit": "^8.5.29 || ^9.5.23", 253 207 "psr/log": "^1.1 || ^2.0 || ^3.0" … … 258 212 "psr/log": "Required for using the Log middleware" 259 213 }, 260 "time": "202 2-08-28T15:39:27+00:00",214 "time": "2023-05-21T14:04:53+00:00", 261 215 "type": "library", 262 216 "extra": { … … 264 218 "bin-links": true, 265 219 "forward-command": false 266 },267 "branch-alias": {268 "dev-master": "7.5-dev"269 220 } 270 221 }, … … 333 284 "support": { 334 285 "issues": "https://github.com/guzzle/guzzle/issues", 335 "source": "https://github.com/guzzle/guzzle/tree/7. 5.0"286 "source": "https://github.com/guzzle/guzzle/tree/7.7.0" 336 287 }, 337 288 "funding": [ … … 353 304 { 354 305 "name": "guzzlehttp/promises", 355 "version": " 1.5.2",356 "version_normalized": " 1.5.2.0",306 "version": "2.0.0", 307 "version_normalized": "2.0.0.0", 357 308 "source": { 358 309 "type": "git", 359 310 "url": "https://github.com/guzzle/promises.git", 360 "reference": " b94b2807d85443f9719887892882d0329d1e2598"361 }, 362 "dist": { 363 "type": "zip", 364 "url": "https://api.github.com/repos/guzzle/promises/zipball/ b94b2807d85443f9719887892882d0329d1e2598",365 "reference": " b94b2807d85443f9719887892882d0329d1e2598",366 "shasum": "" 367 }, 368 "require": { 369 "php": " >=5.5"311 "reference": "3a494dc7dc1d7d12e511890177ae2d0e6c107da6" 312 }, 313 "dist": { 314 "type": "zip", 315 "url": "https://api.github.com/repos/guzzle/promises/zipball/3a494dc7dc1d7d12e511890177ae2d0e6c107da6", 316 "reference": "3a494dc7dc1d7d12e511890177ae2d0e6c107da6", 317 "shasum": "" 318 }, 319 "require": { 320 "php": "^7.2.5 || ^8.0" 370 321 }, 371 322 "require-dev": { 372 "symfony/phpunit-bridge": "^4.4 || ^5.1" 373 }, 374 "time": "2022-08-28T14:55:35+00:00", 323 "bamarni/composer-bin-plugin": "^1.8.1", 324 "phpunit/phpunit": "^8.5.29 || ^9.5.23" 325 }, 326 "time": "2023-05-21T13:50:22+00:00", 375 327 "type": "library", 376 328 "extra": { 377 "branch-alias": { 378 "dev-master": "1.5-dev" 379 } 380 }, 381 "installation-source": "dist", 382 "autoload": { 383 "files": [ 384 "src/functions_include.php" 385 ], 329 "bamarni-bin": { 330 "bin-links": true, 331 "forward-command": false 332 } 333 }, 334 "installation-source": "dist", 335 "autoload": { 386 336 "psr-4": { 387 337 "GuzzleHttp\\Promise\\": "src/" … … 420 370 "support": { 421 371 "issues": "https://github.com/guzzle/promises/issues", 422 "source": "https://github.com/guzzle/promises/tree/ 1.5.2"372 "source": "https://github.com/guzzle/promises/tree/2.0.0" 423 373 }, 424 374 "funding": [ … … 440 390 { 441 391 "name": "guzzlehttp/psr7", 442 "version": "2. 4.4",443 "version_normalized": "2. 4.4.0",392 "version": "2.5.0", 393 "version_normalized": "2.5.0.0", 444 394 "source": { 445 395 "type": "git", 446 396 "url": "https://github.com/guzzle/psr7.git", 447 "reference": " 3cf1b6d4f0c820a2cf8bcaec39fc698f3443b5cf"448 }, 449 "dist": { 450 "type": "zip", 451 "url": "https://api.github.com/repos/guzzle/psr7/zipball/ 3cf1b6d4f0c820a2cf8bcaec39fc698f3443b5cf",452 "reference": " 3cf1b6d4f0c820a2cf8bcaec39fc698f3443b5cf",397 "reference": "b635f279edd83fc275f822a1188157ffea568ff6" 398 }, 399 "dist": { 400 "type": "zip", 401 "url": "https://api.github.com/repos/guzzle/psr7/zipball/b635f279edd83fc275f822a1188157ffea568ff6", 402 "reference": "b635f279edd83fc275f822a1188157ffea568ff6", 453 403 "shasum": "" 454 404 }, … … 456 406 "php": "^7.2.5 || ^8.0", 457 407 "psr/http-factory": "^1.0", 458 "psr/http-message": "^1. 0",408 "psr/http-message": "^1.1 || ^2.0", 459 409 "ralouphie/getallheaders": "^3.0" 460 410 }, … … 471 421 "laminas/laminas-httphandlerrunner": "Emit PSR-7 responses" 472 422 }, 473 "time": "2023-0 3-09T13:19:02+00:00",423 "time": "2023-04-17T16:11:26+00:00", 474 424 "type": "library", 475 425 "extra": { … … 477 427 "bin-links": true, 478 428 "forward-command": false 479 },480 "branch-alias": {481 "dev-master": "2.4-dev"482 429 } 483 430 }, … … 542 489 "support": { 543 490 "issues": "https://github.com/guzzle/psr7/issues", 544 "source": "https://github.com/guzzle/psr7/tree/2. 4.4"491 "source": "https://github.com/guzzle/psr7/tree/2.5.0" 545 492 }, 546 493 "funding": [ … … 848 795 { 849 796 "name": "psr/http-client", 850 "version": "1.0. 1",851 "version_normalized": "1.0. 1.0",797 "version": "1.0.2", 798 "version_normalized": "1.0.2.0", 852 799 "source": { 853 800 "type": "git", 854 801 "url": "https://github.com/php-fig/http-client.git", 855 "reference": " 2dfb5f6c5eff0e91e20e913f8c5452ed95b86621"856 }, 857 "dist": { 858 "type": "zip", 859 "url": "https://api.github.com/repos/php-fig/http-client/zipball/ 2dfb5f6c5eff0e91e20e913f8c5452ed95b86621",860 "reference": " 2dfb5f6c5eff0e91e20e913f8c5452ed95b86621",802 "reference": "0955afe48220520692d2d09f7ab7e0f93ffd6a31" 803 }, 804 "dist": { 805 "type": "zip", 806 "url": "https://api.github.com/repos/php-fig/http-client/zipball/0955afe48220520692d2d09f7ab7e0f93ffd6a31", 807 "reference": "0955afe48220520692d2d09f7ab7e0f93ffd6a31", 861 808 "shasum": "" 862 809 }, 863 810 "require": { 864 811 "php": "^7.0 || ^8.0", 865 "psr/http-message": "^1.0 "866 }, 867 "time": "202 0-06-29T06:28:15+00:00",812 "psr/http-message": "^1.0 || ^2.0" 813 }, 814 "time": "2023-04-10T20:12:12+00:00", 868 815 "type": "library", 869 816 "extra": { … … 885 832 { 886 833 "name": "PHP-FIG", 887 "homepage": "http ://www.php-fig.org/"834 "homepage": "https://www.php-fig.org/" 888 835 } 889 836 ], … … 897 844 ], 898 845 "support": { 899 "source": "https://github.com/php-fig/http-client/tree/ master"846 "source": "https://github.com/php-fig/http-client/tree/1.0.2" 900 847 }, 901 848 "install-path": "../psr/http-client" … … 903 850 { 904 851 "name": "psr/http-factory", 905 "version": "1.0. 1",906 "version_normalized": "1.0. 1.0",852 "version": "1.0.2", 853 "version_normalized": "1.0.2.0", 907 854 "source": { 908 855 "type": "git", 909 856 "url": "https://github.com/php-fig/http-factory.git", 910 "reference": " 12ac7fcd07e5b077433f5f2bee95b3a771bf61be"911 }, 912 "dist": { 913 "type": "zip", 914 "url": "https://api.github.com/repos/php-fig/http-factory/zipball/ 12ac7fcd07e5b077433f5f2bee95b3a771bf61be",915 "reference": " 12ac7fcd07e5b077433f5f2bee95b3a771bf61be",857 "reference": "e616d01114759c4c489f93b099585439f795fe35" 858 }, 859 "dist": { 860 "type": "zip", 861 "url": "https://api.github.com/repos/php-fig/http-factory/zipball/e616d01114759c4c489f93b099585439f795fe35", 862 "reference": "e616d01114759c4c489f93b099585439f795fe35", 916 863 "shasum": "" 917 864 }, 918 865 "require": { 919 866 "php": ">=7.0.0", 920 "psr/http-message": "^1.0 "921 }, 922 "time": "20 19-04-30T12:38:16+00:00",867 "psr/http-message": "^1.0 || ^2.0" 868 }, 869 "time": "2023-04-10T20:10:41+00:00", 923 870 "type": "library", 924 871 "extra": { … … 940 887 { 941 888 "name": "PHP-FIG", 942 "homepage": "http ://www.php-fig.org/"889 "homepage": "https://www.php-fig.org/" 943 890 } 944 891 ], … … 955 902 ], 956 903 "support": { 957 "source": "https://github.com/php-fig/http-factory/tree/ master"904 "source": "https://github.com/php-fig/http-factory/tree/1.0.2" 958 905 }, 959 906 "install-path": "../psr/http-factory" … … 961 908 { 962 909 "name": "psr/http-message", 963 "version": " 1.0.1",964 "version_normalized": " 1.0.1.0",910 "version": "2.0", 911 "version_normalized": "2.0.0.0", 965 912 "source": { 966 913 "type": "git", 967 914 "url": "https://github.com/php-fig/http-message.git", 968 "reference": " f6561bf28d520154e4b0ec72be95418abe6d9363"969 }, 970 "dist": { 971 "type": "zip", 972 "url": "https://api.github.com/repos/php-fig/http-message/zipball/ f6561bf28d520154e4b0ec72be95418abe6d9363",973 "reference": " f6561bf28d520154e4b0ec72be95418abe6d9363",974 "shasum": "" 975 }, 976 "require": { 977 "php": " >=5.3.0"978 }, 979 "time": "20 16-08-06T14:39:51+00:00",915 "reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71" 916 }, 917 "dist": { 918 "type": "zip", 919 "url": "https://api.github.com/repos/php-fig/http-message/zipball/402d35bcb92c70c026d1a6a9883f06b2ead23d71", 920 "reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71", 921 "shasum": "" 922 }, 923 "require": { 924 "php": "^7.2 || ^8.0" 925 }, 926 "time": "2023-04-04T09:54:51+00:00", 980 927 "type": "library", 981 928 "extra": { 982 929 "branch-alias": { 983 "dev-master": " 1.0.x-dev"930 "dev-master": "2.0.x-dev" 984 931 } 985 932 }, … … 997 944 { 998 945 "name": "PHP-FIG", 999 "homepage": "http ://www.php-fig.org/"946 "homepage": "https://www.php-fig.org/" 1000 947 } 1001 948 ], … … 1011 958 ], 1012 959 "support": { 1013 "source": "https://github.com/php-fig/http-message/tree/ master"960 "source": "https://github.com/php-fig/http-message/tree/2.0" 1014 961 }, 1015 962 "install-path": "../psr/http-message" -
cryptopay-wc-lite/trunk/vendor/composer/installed.php
r2915472 r2915482 2 2 'root' => array( 3 3 'name' => '__root__', 4 'pretty_version' => ' dev-master',5 'version' => ' dev-master',6 'reference' => 'e8f54606948831186267d2427b47b4d1837318af',4 'pretty_version' => '1.0.0+no-version-set', 5 'version' => '1.0.0.0', 6 'reference' => NULL, 7 7 'type' => 'library', 8 8 'install_path' => __DIR__ . '/../../', … … 12 12 'versions' => array( 13 13 '__root__' => array( 14 'pretty_version' => ' dev-master',15 'version' => ' dev-master',16 'reference' => 'e8f54606948831186267d2427b47b4d1837318af',14 'pretty_version' => '1.0.0+no-version-set', 15 'version' => '1.0.0.0', 16 'reference' => NULL, 17 17 'type' => 'library', 18 18 'install_path' => __DIR__ . '/../../', … … 29 29 'dev_requirement' => false, 30 30 ), 31 'beycanpress/request' => array( 32 'pretty_version' => '0.1.0', 33 'version' => '0.1.0.0', 34 'reference' => '14f0e087b8cdcca0a41ac23b4b7373ae39a43942', 35 'type' => 'library', 36 'install_path' => __DIR__ . '/../beycanpress/request', 37 'aliases' => array(), 38 'dev_requirement' => false, 39 ), 40 'beycanpress/response' => array( 41 'pretty_version' => '0.1.0', 42 'version' => '0.1.0.0', 43 'reference' => 'a442276a143a8b37f2f809745315589c487ac558', 44 'type' => 'library', 45 'install_path' => __DIR__ . '/../beycanpress/response', 31 'beycanpress/http' => array( 32 'pretty_version' => '0.1.3', 33 'version' => '0.1.3.0', 34 'reference' => 'dc6ad1f1d30e3ad47bc9b26bce5ea295ce7caded', 35 'type' => 'library', 36 'install_path' => __DIR__ . '/../beycanpress/http', 46 37 'aliases' => array(), 47 38 'dev_requirement' => false, … … 66 57 ), 67 58 'guzzlehttp/guzzle' => array( 68 'pretty_version' => '7. 5.0',69 'version' => '7. 5.0.0',70 'reference' => ' b50a2a1251152e43f6a37f0fa053e730a67d25ba',59 'pretty_version' => '7.7.0', 60 'version' => '7.7.0.0', 61 'reference' => 'fb7566caccf22d74d1ab270de3551f72a58399f5', 71 62 'type' => 'library', 72 63 'install_path' => __DIR__ . '/../guzzlehttp/guzzle', … … 75 66 ), 76 67 'guzzlehttp/promises' => array( 77 'pretty_version' => ' 1.5.2',78 'version' => ' 1.5.2.0',79 'reference' => ' b94b2807d85443f9719887892882d0329d1e2598',68 'pretty_version' => '2.0.0', 69 'version' => '2.0.0.0', 70 'reference' => '3a494dc7dc1d7d12e511890177ae2d0e6c107da6', 80 71 'type' => 'library', 81 72 'install_path' => __DIR__ . '/../guzzlehttp/promises', … … 84 75 ), 85 76 'guzzlehttp/psr7' => array( 86 'pretty_version' => '2. 4.4',87 'version' => '2. 4.4.0',88 'reference' => ' 3cf1b6d4f0c820a2cf8bcaec39fc698f3443b5cf',77 'pretty_version' => '2.5.0', 78 'version' => '2.5.0.0', 79 'reference' => 'b635f279edd83fc275f822a1188157ffea568ff6', 89 80 'type' => 'library', 90 81 'install_path' => __DIR__ . '/../guzzlehttp/psr7', … … 138 129 ), 139 130 'psr/http-client' => array( 140 'pretty_version' => '1.0. 1',141 'version' => '1.0. 1.0',142 'reference' => ' 2dfb5f6c5eff0e91e20e913f8c5452ed95b86621',131 'pretty_version' => '1.0.2', 132 'version' => '1.0.2.0', 133 'reference' => '0955afe48220520692d2d09f7ab7e0f93ffd6a31', 143 134 'type' => 'library', 144 135 'install_path' => __DIR__ . '/../psr/http-client', … … 153 144 ), 154 145 'psr/http-factory' => array( 155 'pretty_version' => '1.0. 1',156 'version' => '1.0. 1.0',157 'reference' => ' 12ac7fcd07e5b077433f5f2bee95b3a771bf61be',146 'pretty_version' => '1.0.2', 147 'version' => '1.0.2.0', 148 'reference' => 'e616d01114759c4c489f93b099585439f795fe35', 158 149 'type' => 'library', 159 150 'install_path' => __DIR__ . '/../psr/http-factory', … … 168 159 ), 169 160 'psr/http-message' => array( 170 'pretty_version' => ' 1.0.1',171 'version' => ' 1.0.1.0',172 'reference' => ' f6561bf28d520154e4b0ec72be95418abe6d9363',161 'pretty_version' => '2.0', 162 'version' => '2.0.0.0', 163 'reference' => '402d35bcb92c70c026d1a6a9883f06b2ead23d71', 173 164 'type' => 'library', 174 165 'install_path' => __DIR__ . '/../psr/http-message', -
cryptopay-wc-lite/trunk/vendor/guzzlehttp/guzzle/CHANGELOG.md
r2915472 r2915482 2 2 3 3 Please refer to [UPGRADING](UPGRADING.md) guide for upgrading to a major version. 4 5 6 ## 7.7.0 - 2023-05-21 7 8 ### Added 9 10 - Support `guzzlehttp/promises` v2 11 12 13 ## 7.6.1 - 2023-05-15 14 15 ### Fixed 16 17 - Fix `SetCookie::fromString` MaxAge deprecation warning and skip invalid MaxAge values 18 19 20 ## 7.6.0 - 2023-05-14 21 22 ### Added 23 24 - Support for setting the minimum TLS version in a unified way 25 - Apply on request the version set in options parameters 26 27 28 ## 7.5.2 - 2023-05-14 29 30 ### Fixed 31 32 - Fixed set cookie constructor validation 33 - Fixed handling of files with `'0'` body 34 35 ### Changed 36 37 - Corrected docs and default connect timeout value to 300 seconds 38 39 40 ## 7.5.1 - 2023-04-17 41 42 ### Fixed 43 44 - Fixed `NO_PROXY` settings so that setting the `proxy` option to `no` overrides the env variable 45 46 ### Changed 47 48 - Adjusted `guzzlehttp/psr7` version constraint to `^1.9.1 || ^2.4.5` 49 4 50 5 51 ## 7.5.0 - 2022-08-28 … … 10 56 - Add request to delay closure params 11 57 58 12 59 ## 7.4.5 - 2022-06-20 60 61 ### Fixed 13 62 14 63 * Fix change in port should be considered a change in origin 15 64 * Fix `CURLOPT_HTTPAUTH` option not cleared on change of origin 16 65 66 17 67 ## 7.4.4 - 2022-06-09 68 69 ### Fixed 18 70 19 71 * Fix failure to strip Authorization header on HTTP downgrade 20 72 * Fix failure to strip the Cookie header on change in host or HTTP downgrade 21 73 74 22 75 ## 7.4.3 - 2022-05-25 23 76 77 ### Fixed 78 24 79 * Fix cross-domain cookie leakage 80 25 81 26 82 ## 7.4.2 - 2022-03-20 … … 32 88 - Set a default ssl.peer_name context in StreamHandler to allow `force_ip_resolve` 33 89 90 34 91 ## 7.4.1 - 2021-12-06 35 92 … … 42 99 43 100 - Only close curl handle if it's done [#2950](https://github.com/guzzle/guzzle/pull/2950) 101 44 102 45 103 ## 7.4.0 - 2021-10-18 … … 60 118 - Be more strict with types [#2914](https://github.com/guzzle/guzzle/pull/2914), [#2917](https://github.com/guzzle/guzzle/pull/2917), [#2919](https://github.com/guzzle/guzzle/pull/2919), [#2945](https://github.com/guzzle/guzzle/pull/2945) 61 119 120 62 121 ## 7.3.0 - 2021-03-23 63 122 … … 72 131 - Handle exceptions on invalid header consistently between PHP versions and handlers [#2872](https://github.com/guzzle/guzzle/pull/2872) 73 132 133 74 134 ## 7.2.0 - 2020-10-10 75 135 … … 94 154 - Using environment variable GUZZLE_CURL_SELECT_TIMEOUT [#2786](https://github.com/guzzle/guzzle/pull/2786) 95 155 156 96 157 ## 7.1.1 - 2020-09-30 97 158 … … 104 165 - We dont connect curl `sink` on HEAD requests. 105 166 - Removed some PHP 5 workarounds 167 106 168 107 169 ## 7.1.0 - 2020-09-22 … … 127 189 - `CurlFactory::LOW_CURL_VERSION_NUMBER` 128 190 191 129 192 ## 7.0.1 - 2020-06-27 130 193 131 194 * Fix multiply defined functions fatal error [#2699](https://github.com/guzzle/guzzle/pull/2699) 132 195 196 133 197 ## 7.0.0 - 2020-06-27 134 198 135 199 No changes since 7.0.0-rc1. 200 136 201 137 202 ## 7.0.0-rc1 - 2020-06-15 … … 141 206 * Use error level for logging errors in Middleware [#2629](https://github.com/guzzle/guzzle/pull/2629) 142 207 * Disabled IDN support by default and require ext-intl to use it [#2675](https://github.com/guzzle/guzzle/pull/2675) 208 143 209 144 210 ## 7.0.0-beta2 - 2020-05-25 … … 167 233 * Pool option `pool_size` [#2528](https://github.com/guzzle/guzzle/pull/2528) 168 234 235 169 236 ## 7.0.0-beta1 - 2019-12-30 170 237 … … 200 267 * Request options `save_to` and `exceptions` [#2464](https://github.com/guzzle/guzzle/pull/2464) 201 268 269 202 270 ## 6.5.2 - 2019-12-23 203 271 204 272 * idn_to_ascii() fix for old PHP versions [#2489](https://github.com/guzzle/guzzle/pull/2489) 273 205 274 206 275 ## 6.5.1 - 2019-12-21 … … 208 277 * Better defaults for PHP installations with old ICU lib [#2454](https://github.com/guzzle/guzzle/pull/2454) 209 278 * IDN support for redirects [#2424](https://github.com/guzzle/guzzle/pull/2424) 279 210 280 211 281 ## 6.5.0 - 2019-12-07 … … 218 288 * Deprecated `ClientInterface::VERSION` 219 289 290 220 291 ## 6.4.1 - 2019-10-23 221 292 222 293 * No `guzzle.phar` was created in 6.4.0 due expired API token. This release will fix that 223 294 * Added `parent::__construct()` to `FileCookieJar` and `SessionCookieJar` 295 224 296 225 297 ## 6.4.0 - 2019-10-23 … … 234 306 * Fix: Prevent concurrent writes to file when saving `CookieJar` [#2335](https://github.com/guzzle/guzzle/pull/2335) 235 307 * Improvement: Update `MockHandler` so we can test transfer time [#2362](https://github.com/guzzle/guzzle/pull/2362) 308 236 309 237 310 ## 6.3.3 - 2018-04-22 … … 276 349 * Improvement: Use `\GuzzleHttp\Promise\rejection_for` function instead of object init [#1827](https://github.com/guzzle/guzzle/pull/1827) 277 350 278 279 351 + Minor code cleanups, documentation fixes and clarifications. 280 352 353 281 354 ## 6.2.3 - 2017-02-28 282 355 283 356 * Fix deprecations with guzzle/psr7 version 1.4 357 284 358 285 359 ## 6.2.2 - 2016-10-08 … … 289 363 * Fix drain case where content-length is the literal string zero 290 364 * Obfuscate in-URL credentials in exceptions 365 291 366 292 367 ## 6.2.1 - 2016-07-18 … … 299 374 a server does not honor `Connection: close`. 300 375 * Ignore URI fragment when sending requests. 376 301 377 302 378 ## 6.2.0 - 2016-03-21 … … 319 395 https://github.com/guzzle/guzzle/pull/1367 320 396 397 321 398 ## 6.1.1 - 2015-11-22 322 399 … … 333 410 * Bug fix: fixed regression where MockHandler was not using `sink`. 334 411 https://github.com/guzzle/guzzle/pull/1292 412 335 413 336 414 ## 6.1.0 - 2015-09-08 … … 368 446 https://github.com/guzzle/guzzle/pull/1189 369 447 448 370 449 ## 6.0.2 - 2015-07-04 371 450 … … 385 464 indirection to help with global Composer installations. 386 465 466 387 467 ## 6.0.1 - 2015-05-27 388 468 … … 392 472 use `form_params` or `multipart` instead. 393 473 * Various doc fixes. 474 394 475 395 476 ## 6.0.0 - 2015-05-26 … … 417 498 * `MultipartPostBody` is now part of the `guzzlehttp/psr7` package. 418 499 500 419 501 ## 5.3.0 - 2015-05-19 420 502 … … 426 508 * Marked `GuzzleHttp\Client::getDefaultUserAgent` as deprecated. 427 509 * URL scheme is now always lowercased. 510 428 511 429 512 ## 6.0.0-beta.1 … … 479 562 `GuzzleHttp\Psr7\parse_query`. 480 563 564 481 565 ## 5.2.0 - 2015-01-27 482 566 … … 488 572 RingBridge. 489 573 * Added a guard in the Pool class to not use recursion for request retries. 574 490 575 491 576 ## 5.1.0 - 2014-12-19 … … 509 594 specific exceptions if necessary. 510 595 596 511 597 ## 5.0.3 - 2014-11-03 512 598 … … 523 609 object). 524 610 611 525 612 ## 5.0.2 - 2014-10-30 526 613 … … 544 631 query string without being percent encoded. See https://tools.ietf.org/html/rfc3986#appendix-A 545 632 633 546 634 ## 5.0.1 - 2014-10-16 547 635 … … 554 642 * Fixed an issue where transfer statistics were not being populated in the 555 643 RingBridge. https://github.com/guzzle/guzzle/issues/866 644 556 645 557 646 ## 5.0.0 - 2014-10-12 … … 635 724 argument. They now accept an associative array of options, including the 636 725 "size" key and "metadata" key which can be used to provide custom metadata. 726 637 727 638 728 ## 4.2.2 - 2014-09-08 -
cryptopay-wc-lite/trunk/vendor/guzzlehttp/guzzle/README.md
r2915472 r2915482 61 61 ## Version Guidance 62 62 63 | Version | Status | Packagist | Namespace | Repo | Docs | PSR-7 | PHP Version |64 |---------|---------------- |---------------------|--------------|---------------------|---------------------|-------|--------------|65 | 3.x | EOL | `guzzle/guzzle` | `Guzzle` | [v3][guzzle-3-repo] | [v3][guzzle-3-docs] | No | >=5.3.3,<7.0 |66 | 4.x | EOL | `guzzlehttp/guzzle` | `GuzzleHttp` | [v4][guzzle-4-repo] | N/A | No | >=5.4,<7.0 |67 | 5.x | EOL | `guzzlehttp/guzzle` | `GuzzleHttp` | [v5][guzzle-5-repo] | [v5][guzzle-5-docs] | No | >=5.4,<7.4 |68 | 6.x | Security fixes | `guzzlehttp/guzzle` | `GuzzleHttp` | [v6][guzzle-6-repo] | [v6][guzzle-6-docs] | Yes | >=5.5,<8.0 |69 | 7.x | Latest | `guzzlehttp/guzzle` | `GuzzleHttp` | [v7][guzzle-7-repo] | [v7][guzzle-7-docs] | Yes | >=7.2.5,<8.2|63 | Version | Status | Packagist | Namespace | Repo | Docs | PSR-7 | PHP Version | 64 |---------|---------------------|---------------------|--------------|---------------------|---------------------|-------|--------------| 65 | 3.x | EOL | `guzzle/guzzle` | `Guzzle` | [v3][guzzle-3-repo] | [v3][guzzle-3-docs] | No | >=5.3.3,<7.0 | 66 | 4.x | EOL | `guzzlehttp/guzzle` | `GuzzleHttp` | [v4][guzzle-4-repo] | N/A | No | >=5.4,<7.0 | 67 | 5.x | EOL | `guzzlehttp/guzzle` | `GuzzleHttp` | [v5][guzzle-5-repo] | [v5][guzzle-5-docs] | No | >=5.4,<7.4 | 68 | 6.x | Security fixes only | `guzzlehttp/guzzle` | `GuzzleHttp` | [v6][guzzle-6-repo] | [v6][guzzle-6-docs] | Yes | >=5.5,<8.0 | 69 | 7.x | Latest | `guzzlehttp/guzzle` | `GuzzleHttp` | [v7][guzzle-7-repo] | [v7][guzzle-7-docs] | Yes | >=7.2.5,<8.3 | 70 70 71 71 [guzzle-3-repo]: https://github.com/guzzle/guzzle3 -
cryptopay-wc-lite/trunk/vendor/guzzlehttp/guzzle/composer.json
r2915472 r2915482 54 54 "php": "^7.2.5 || ^8.0", 55 55 "ext-json": "*", 56 "guzzlehttp/promises": "^1.5 ",57 "guzzlehttp/psr7": "^1.9 || ^2.4",56 "guzzlehttp/promises": "^1.5.3 || ^2.0", 57 "guzzlehttp/psr7": "^1.9.1 || ^2.4.5", 58 58 "psr/http-client": "^1.0", 59 59 "symfony/deprecation-contracts": "^2.2 || ^3.0" … … 65 65 "ext-curl": "*", 66 66 "bamarni/composer-bin-plugin": "^1.8.1", 67 "php-http/client-integration-tests": "^3.0", 67 "php-http/client-integration-tests": "dev-master#2c025848417c1135031fdf9c728ee53d0a7ceaee as 3.0.999", 68 "php-http/message-factory": "^1.1", 68 69 "phpunit/phpunit": "^8.5.29 || ^9.5.23", 69 70 "psr/log": "^1.1 || ^2.0 || ^3.0" … … 85 86 "bin-links": true, 86 87 "forward-command": false 87 },88 "branch-alias": {89 "dev-master": "7.5-dev"90 88 } 91 89 }, -
cryptopay-wc-lite/trunk/vendor/guzzlehttp/guzzle/src/Client.php
r2915472 r2915482 121 121 { 122 122 $options[RequestOptions::SYNCHRONOUS] = true; 123 123 124 return $this->sendAsync($request, $options)->wait(); 124 125 } … … 127 128 * The HttpClient PSR (PSR-18) specify this method. 128 129 * 129 * @inheritDoc130 * {@inheritDoc} 130 131 */ 131 132 public function sendRequest(RequestInterface $request): ResponseInterface … … 185 186 { 186 187 $options[RequestOptions::SYNCHRONOUS] = true; 188 187 189 return $this->requestAsync($method, $uri, $options)->wait(); 188 190 } … … 229 231 $defaults = [ 230 232 'allow_redirects' => RedirectMiddleware::$defaultSettings, 231 'http_errors' => true,232 'decode_content' => true,233 'verify' => true,234 'cookies' => false,235 'idn_conversion' => false,233 'http_errors' => true, 234 'decode_content' => true, 235 'verify' => true, 236 'cookies' => false, 237 'idn_conversion' => false, 236 238 ]; 237 239 … … 355 357 if (isset($options['multipart'])) { 356 358 throw new InvalidArgumentException('You cannot use ' 357 . 'form_params and multipart at the same time. Use the '358 . 'form_params option if you want to send application/'359 . 'x-www-form-urlencoded requests, and the multipart '360 . 'option to send multipart/form-data requests.');359 .'form_params and multipart at the same time. Use the ' 360 .'form_params option if you want to send application/' 361 .'x-www-form-urlencoded requests, and the multipart ' 362 .'option to send multipart/form-data requests.'); 361 363 } 362 364 $options['body'] = \http_build_query($options['form_params'], '', '&'); … … 404 406 $modify['set_headers'] = Psr7\Utils::caselessRemove(['Authorization'], $modify['set_headers']); 405 407 $modify['set_headers']['Authorization'] = 'Basic ' 406 . \base64_encode("$value[0]:$value[1]");408 .\base64_encode("$value[0]:$value[1]"); 407 409 break; 408 410 case 'digest': … … 438 440 } 439 441 442 if (isset($options['version'])) { 443 $modify['version'] = $options['version']; 444 } 445 440 446 $request = Psr7\Utils::modifyRequest($request, $modify); 441 447 if ($request->getBody() instanceof Psr7\MultipartStream) { … … 444 450 $options['_conditional'] = Psr7\Utils::caselessRemove(['Content-Type'], $options['_conditional']); 445 451 $options['_conditional']['Content-Type'] = 'multipart/form-data; boundary=' 446 . $request->getBody()->getBoundary();452 .$request->getBody()->getBoundary(); 447 453 } 448 454 … … 470 476 { 471 477 return new InvalidArgumentException('Passing in the "body" request ' 472 . 'option as an array to send a request is not supported. '473 . 'Please use the "form_params" request option to send a '474 . 'application/x-www-form-urlencoded request, or the "multipart" '475 . 'request option to send a multipart/form-data request.');478 .'option as an array to send a request is not supported. ' 479 .'Please use the "form_params" request option to send a ' 480 .'application/x-www-form-urlencoded request, or the "multipart" ' 481 .'request option to send a multipart/form-data request.'); 476 482 } 477 483 } -
cryptopay-wc-lite/trunk/vendor/guzzlehttp/guzzle/src/Cookie/CookieJar.php
r2915472 r2915482 51 51 foreach ($cookies as $name => $value) { 52 52 $cookieJar->setCookie(new SetCookie([ 53 'Domain' => $domain,54 'Name' => $name,55 'Value' => $value,56 'Discard' => true 53 'Domain' => $domain, 54 'Name' => $name, 55 'Value' => $value, 56 'Discard' => true, 57 57 ])); 58 58 } … … 98 98 99 99 /** 100 * @inheritDoc100 * {@inheritDoc} 101 101 */ 102 102 public function toArray(): array … … 108 108 109 109 /** 110 * @inheritDoc110 * {@inheritDoc} 111 111 */ 112 112 public function clear(?string $domain = null, ?string $path = null, ?string $name = null): void … … 114 114 if (!$domain) { 115 115 $this->cookies = []; 116 116 117 return; 117 118 } elseif (!$path) { … … 143 144 144 145 /** 145 * @inheritDoc146 * {@inheritDoc} 146 147 */ 147 148 public function clearSessionCookies(): void … … 156 157 157 158 /** 158 * @inheritDoc159 * {@inheritDoc} 159 160 */ 160 161 public function setCookie(SetCookie $cookie): bool … … 171 172 if ($result !== true) { 172 173 if ($this->strictMode) { 173 throw new \RuntimeException('Invalid cookie: ' .$result);174 throw new \RuntimeException('Invalid cookie: '.$result); 174 175 } 175 176 $this->removeCookieIfEmpty($cookie); 177 176 178 return false; 177 179 } … … 254 256 * Computes cookie path following RFC 6265 section 5.1.4 255 257 * 256 * @ linkhttps://tools.ietf.org/html/rfc6265#section-5.1.4258 * @see https://tools.ietf.org/html/rfc6265#section-5.1.4 257 259 */ 258 260 private function getCookiePathFromRequest(RequestInterface $request): string … … 290 292 (!$cookie->getSecure() || $scheme === 'https') 291 293 ) { 292 $values[] = $cookie->getName() .'='293 . $cookie->getValue();294 $values[] = $cookie->getName().'=' 295 .$cookie->getValue(); 294 296 } 295 297 } -
cryptopay-wc-lite/trunk/vendor/guzzlehttp/guzzle/src/Cookie/CookieJarInterface.php
r2915472 r2915482 14 14 * cookies from a file, database, etc. 15 15 * 16 * @ linkhttps://docs.python.org/2/library/cookielib.html Inspiration16 * @see https://docs.python.org/2/library/cookielib.html Inspiration 17 17 * @extends \IteratorAggregate<SetCookie> 18 18 */ -
cryptopay-wc-lite/trunk/vendor/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php
r2915472 r2915482 72 72 } 73 73 } elseif (\strlen($data)) { 74 throw new \RuntimeException( "Invalid cookie data");74 throw new \RuntimeException('Invalid cookie data'); 75 75 } 76 76 } -
cryptopay-wc-lite/trunk/vendor/guzzlehttp/guzzle/src/Cookie/SetCookie.php
r2915472 r2915482 12 12 */ 13 13 private static $defaults = [ 14 'Name' => null,15 'Value' => null,16 'Domain' => null,17 'Path' => '/',18 'Max-Age' => null,19 'Expires' => null,20 'Secure' => false,21 'Discard' => false,22 'HttpOnly' => false 14 'Name' => null, 15 'Value' => null, 16 'Domain' => null, 17 'Path' => '/', 18 'Max-Age' => null, 19 'Expires' => null, 20 'Secure' => false, 21 'Discard' => false, 22 'HttpOnly' => false, 23 23 ]; 24 24 … … 59 59 foreach (\array_keys(self::$defaults) as $search) { 60 60 if (!\strcasecmp($search, $key)) { 61 $data[$search] = $value; 61 if ($search === 'Max-Age') { 62 if (is_numeric($value)) { 63 $data[$search] = (int) $value; 64 } 65 } else { 66 $data[$search] = $value; 67 } 62 68 continue 2; 63 69 } … … 75 81 public function __construct(array $data = []) 76 82 { 77 /** @var array|null $replaced will be null in case of replace error */ 78 $replaced = \array_replace(self::$defaults, $data); 79 if ($replaced === null) { 80 throw new \InvalidArgumentException('Unable to replace the default values for the Cookie.'); 81 } 82 83 $this->data = $replaced; 83 $this->data = self::$defaults; 84 85 if (isset($data['Name'])) { 86 $this->setName($data['Name']); 87 } 88 89 if (isset($data['Value'])) { 90 $this->setValue($data['Value']); 91 } 92 93 if (isset($data['Domain'])) { 94 $this->setDomain($data['Domain']); 95 } 96 97 if (isset($data['Path'])) { 98 $this->setPath($data['Path']); 99 } 100 101 if (isset($data['Max-Age'])) { 102 $this->setMaxAge($data['Max-Age']); 103 } 104 105 if (isset($data['Expires'])) { 106 $this->setExpires($data['Expires']); 107 } 108 109 if (isset($data['Secure'])) { 110 $this->setSecure($data['Secure']); 111 } 112 113 if (isset($data['Discard'])) { 114 $this->setDiscard($data['Discard']); 115 } 116 117 if (isset($data['HttpOnly'])) { 118 $this->setHttpOnly($data['HttpOnly']); 119 } 120 121 // Set the remaining values that don't have extra validation logic 122 foreach (array_diff(array_keys($data), array_keys(self::$defaults)) as $key) { 123 $this->data[$key] = $data[$key]; 124 } 125 84 126 // Extract the Expires value and turn it into a UNIX timestamp if needed 85 127 if (!$this->getExpires() && $this->getMaxAge()) { … … 93 135 public function __toString() 94 136 { 95 $str = $this->data['Name'] . '=' . ($this->data['Value'] ?? '') .'; ';137 $str = $this->data['Name'].'='.($this->data['Value'] ?? '').'; '; 96 138 foreach ($this->data as $k => $v) { 97 139 if ($k !== 'Name' && $k !== 'Value' && $v !== null && $v !== false) { 98 140 if ($k === 'Expires') { 99 $str .= 'Expires=' . \gmdate('D, d M Y H:i:s \G\M\T', $v) .'; ';141 $str .= 'Expires='.\gmdate('D, d M Y H:i:s \G\M\T', $v).'; '; 100 142 } else { 101 $str .= ($v === true ? $k : "{$k}={$v}") .'; ';143 $str .= ($v === true ? $k : "{$k}={$v}").'; '; 102 144 } 103 145 } … … 395 437 } 396 438 397 return (bool) \preg_match('/\.' . \preg_quote($cookieDomain, '/') .'$/', $domain);439 return (bool) \preg_match('/\.'.\preg_quote($cookieDomain, '/').'$/', $domain); 398 440 } 399 441 … … 424 466 )) { 425 467 return 'Cookie name must not contain invalid characters: ASCII ' 426 . 'Control characters (0-31;127), space, tab and the '427 . 'following characters: ()<>@,;:\"/?={}';468 .'Control characters (0-31;127), space, tab and the ' 469 .'following characters: ()<>@,;:\"/?={}'; 428 470 } 429 471 -
cryptopay-wc-lite/trunk/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php
r2915472 r2915482 52 52 } 53 53 54 $easy = new EasyHandle ;54 $easy = new EasyHandle(); 55 55 $easy->request = $request; 56 56 $easy->options = $options; … … 162 162 { 163 163 static $connectionErrors = [ 164 \CURLE_OPERATION_TIMEOUTED => true,164 \CURLE_OPERATION_TIMEOUTED => true, 165 165 \CURLE_COULDNT_RESOLVE_HOST => true, 166 \CURLE_COULDNT_CONNECT => true,167 \CURLE_SSL_CONNECT_ERROR => true,168 \CURLE_GOT_NOTHING => true,166 \CURLE_COULDNT_CONNECT => true, 167 \CURLE_SSL_CONNECT_ERROR => true, 168 \CURLE_GOT_NOTHING => true, 169 169 ]; 170 170 … … 220 220 { 221 221 $conf = [ 222 '_headers' => $easy->request->getHeaders(),223 \CURLOPT_CUSTOMREQUEST => $easy->request->getMethod(),224 \CURLOPT_URL => (string) $easy->request->getUri()->withFragment(''),222 '_headers' => $easy->request->getHeaders(), 223 \CURLOPT_CUSTOMREQUEST => $easy->request->getMethod(), 224 \CURLOPT_URL => (string) $easy->request->getUri()->withFragment(''), 225 225 \CURLOPT_RETURNTRANSFER => false, 226 \CURLOPT_HEADER => false,227 \CURLOPT_CONNECTTIMEOUT => 150,226 \CURLOPT_HEADER => false, 227 \CURLOPT_CONNECTTIMEOUT => 300, 228 228 ]; 229 229 … … 251 251 if ($size === null || $size > 0) { 252 252 $this->applyBody($easy->request, $easy->options, $conf); 253 253 254 return; 254 255 } … … 342 343 if (!\strcasecmp($key, $name)) { 343 344 unset($options['_headers'][$key]); 345 344 346 return; 345 347 } … … 444 446 if (isset($options['proxy'][$scheme])) { 445 447 $host = $easy->request->getUri()->getHost(); 446 if (!isset($options['proxy']['no']) || !Utils::isHostInNoProxy($host, $options['proxy']['no'])) { 448 if (isset($options['proxy']['no']) && Utils::isHostInNoProxy($host, $options['proxy']['no'])) { 449 unset($conf[\CURLOPT_PROXY]); 450 } else { 447 451 $conf[\CURLOPT_PROXY] = $options['proxy'][$scheme]; 448 452 } 449 453 } 454 } 455 } 456 457 if (isset($options['crypto_method'])) { 458 if (\STREAM_CRYPTO_METHOD_TLSv1_0_CLIENT === $options['crypto_method']) { 459 if (!defined('CURL_SSLVERSION_TLSv1_0')) { 460 throw new \InvalidArgumentException('Invalid crypto_method request option: TLS 1.0 not supported by your version of cURL'); 461 } 462 $conf[\CURLOPT_SSLVERSION] = \CURL_SSLVERSION_TLSv1_0; 463 } elseif (\STREAM_CRYPTO_METHOD_TLSv1_1_CLIENT === $options['crypto_method']) { 464 if (!defined('CURL_SSLVERSION_TLSv1_1')) { 465 throw new \InvalidArgumentException('Invalid crypto_method request option: TLS 1.1 not supported by your version of cURL'); 466 } 467 $conf[\CURLOPT_SSLVERSION] = \CURL_SSLVERSION_TLSv1_1; 468 } elseif (\STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT === $options['crypto_method']) { 469 if (!defined('CURL_SSLVERSION_TLSv1_2')) { 470 throw new \InvalidArgumentException('Invalid crypto_method request option: TLS 1.2 not supported by your version of cURL'); 471 } 472 $conf[\CURLOPT_SSLVERSION] = \CURL_SSLVERSION_TLSv1_2; 473 } elseif (defined('STREAM_CRYPTO_METHOD_TLSv1_3_CLIENT') && \STREAM_CRYPTO_METHOD_TLSv1_3_CLIENT === $options['crypto_method']) { 474 if (!defined('CURL_SSLVERSION_TLSv1_3')) { 475 throw new \InvalidArgumentException('Invalid crypto_method request option: TLS 1.3 not supported by your version of cURL'); 476 } 477 $conf[\CURLOPT_SSLVERSION] = \CURL_SSLVERSION_TLSv1_3; 478 } else { 479 throw new \InvalidArgumentException('Invalid crypto_method request option: unknown version provided'); 450 480 } 451 481 } … … 460 490 throw new \InvalidArgumentException("SSL certificate not found: {$cert}"); 461 491 } 462 #OpenSSL (versions 0.9.3 and later) also support "P12" for PKCS#12-encoded files.463 #see https://curl.se/libcurl/c/CURLOPT_SSLCERTTYPE.html492 // OpenSSL (versions 0.9.3 and later) also support "P12" for PKCS#12-encoded files. 493 // see https://curl.se/libcurl/c/CURLOPT_SSLCERTTYPE.html 464 494 $ext = pathinfo($cert, \PATHINFO_EXTENSION); 465 495 if (preg_match('#^(der|p12)$#i', $ext)) { … … 524 554 } catch (\RuntimeException $e) { 525 555 $ctx['error'] = 'The connection unexpectedly failed without ' 526 . 'providing an error. The request would have been retried, ' 527 . 'but attempting to rewind the request body failed. ' 528 . 'Exception: ' . $e; 556 .'providing an error. The request would have been retried, ' 557 .'but attempting to rewind the request body failed. ' 558 .'Exception: '.$e; 559 529 560 return self::createRejection($easy, $ctx); 530 561 } … … 535 566 } elseif ($easy->options['_curl_retries'] == 2) { 536 567 $ctx['error'] = 'The cURL request was retried 3 times ' 537 . 'and did not succeed. The most likely reason for the failure ' 538 . 'is that cURL was unable to rewind the body of the request ' 539 . 'and subsequent retries resulted in the same error. Turn on ' 540 . 'the debug option to see what went wrong. See ' 541 . 'https://bugs.php.net/bug.php?id=47204 for more information.'; 568 .'and did not succeed. The most likely reason for the failure ' 569 .'is that cURL was unable to rewind the body of the request ' 570 .'and subsequent retries resulted in the same error. Turn on ' 571 .'the debug option to see what went wrong. See ' 572 .'https://bugs.php.net/bug.php?id=47204 for more information.'; 573 542 574 return self::createRejection($easy, $ctx); 543 575 } else { 544 $easy->options['_curl_retries']++;576 ++$easy->options['_curl_retries']; 545 577 } 546 578 … … 572 604 } catch (\Exception $e) { 573 605 $easy->createResponseException = $e; 606 574 607 return -1; 575 608 } … … 581 614 // a curl header write error by returning 0. 582 615 $easy->onHeadersException = $e; 616 583 617 return -1; 584 618 } … … 590 624 $easy->headers[] = $value; 591 625 } 626 592 627 return \strlen($h); 593 628 }; -
cryptopay-wc-lite/trunk/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php
r2915472 r2915482 165 165 } 166 166 167 while (\curl_multi_exec($this->_mh, $this->active) === \CURLM_CALL_MULTI_PERFORM); 167 while (\curl_multi_exec($this->_mh, $this->active) === \CURLM_CALL_MULTI_PERFORM) { 168 } 168 169 169 170 $this->processMessages(); -
cryptopay-wc-lite/trunk/vendor/guzzlehttp/guzzle/src/Handler/EasyHandle.php
r2915472 r2915482 107 107 public function __get($name) 108 108 { 109 $msg = $name === 'handle' ? 'The EasyHandle has been released' : 'Invalid property: ' .$name;109 $msg = $name === 'handle' ? 'The EasyHandle has been released' : 'Invalid property: '.$name; 110 110 throw new \BadMethodCallException($msg); 111 111 } -
cryptopay-wc-lite/trunk/vendor/guzzlehttp/guzzle/src/Handler/HeaderProcessor.php
r2915472 r2915482 15 15 * @param string[] $headers 16 16 * 17 * @return array{0:string, 1:int, 2:?string, 3:array} 18 * 17 19 * @throws \RuntimeException 18 *19 * @return array{0:string, 1:int, 2:?string, 3:array}20 20 */ 21 21 public static function parseHeaders(array $headers): array -
cryptopay-wc-lite/trunk/vendor/guzzlehttp/guzzle/src/Handler/MockHandler.php
r2915472 r2915482 139 139 ($this->onRejected)($reason); 140 140 } 141 141 142 return P\Create::rejectionFor($reason); 142 143 } … … 160 161 $this->queue[] = $value; 161 162 } else { 162 throw new \TypeError('Expected a Response, Promise, Throwable or callable. Found ' .Utils::describeType($value));163 throw new \TypeError('Expected a Response, Promise, Throwable or callable. Found '.Utils::describeType($value)); 163 164 } 164 165 } -
cryptopay-wc-lite/trunk/vendor/guzzlehttp/guzzle/src/Handler/StreamHandler.php
r2915472 r2915482 68 68 || false !== \strpos($message, 'Connection refused') 69 69 || false !== \strpos($message, "couldn't connect to host") // error on HHVM 70 || false !== \strpos($message, "connection attempt failed")70 || false !== \strpos($message, 'connection attempt failed') 71 71 ) { 72 72 $e = new ConnectException($e->getMessage(), $request, $e); … … 232 232 $errors[] = [ 233 233 'message' => $msg, 234 'file' => $file,235 'line' => $line234 'file' => $file, 235 'line' => $line, 236 236 ]; 237 237 238 return true; 238 239 }); … … 248 249 foreach ($errors as $err) { 249 250 foreach ($err as $key => $value) { 250 $message .= "[$key] $value" .\PHP_EOL;251 $message .= "[$key] $value".\PHP_EOL; 251 252 } 252 253 } … … 351 352 throw new ConnectException(\sprintf("Could not resolve IPv4 address for host '%s'", $uri->getHost()), $request); 352 353 } 354 353 355 return $uri->withHost($records[0]['ip']); 354 356 } … … 358 360 throw new ConnectException(\sprintf("Could not resolve IPv6 address for host '%s'", $uri->getHost()), $request); 359 361 } 360 return $uri->withHost('[' . $records[0]['ipv6'] . ']'); 362 363 return $uri->withHost('['.$records[0]['ipv6'].']'); 361 364 } 362 365 } … … 376 379 $context = [ 377 380 'http' => [ 378 'method' => $request->getMethod(),379 'header' => $headers,381 'method' => $request->getMethod(), 382 'header' => $headers, 380 383 'protocol_version' => $request->getProtocolVersion(), 381 'ignore_errors' => true,382 'follow_location' => 0,384 'ignore_errors' => true, 385 'follow_location' => 0, 383 386 ], 384 387 'ssl' => [ … … 389 392 $body = (string) $request->getBody(); 390 393 391 if ( !empty($body)) {394 if ('' !== $body) { 392 395 $context['http']['content'] = $body; 393 396 // Prevent the HTTP handler from adding a Content-Type header. … … 476 479 * @param mixed $value as passed via Request transfer options. 477 480 */ 481 private function add_crypto_method(RequestInterface $request, array &$options, $value, array &$params): void 482 { 483 if ( 484 $value === \STREAM_CRYPTO_METHOD_TLSv1_0_CLIENT 485 || $value === \STREAM_CRYPTO_METHOD_TLSv1_1_CLIENT 486 || $value === \STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT 487 || (defined('STREAM_CRYPTO_METHOD_TLSv1_3_CLIENT') && $value === \STREAM_CRYPTO_METHOD_TLSv1_3_CLIENT) 488 ) { 489 $options['http']['crypto_method'] = $value; 490 491 return; 492 } 493 494 throw new \InvalidArgumentException('Invalid crypto_method request option: unknown version provided'); 495 } 496 497 /** 498 * @param mixed $value as passed via Request transfer options. 499 */ 478 500 private function add_verify(RequestInterface $request, array &$options, $value, array &$params): void 479 501 { … … 543 565 544 566 static $map = [ 545 \STREAM_NOTIFY_CONNECT => 'CONNECT',567 \STREAM_NOTIFY_CONNECT => 'CONNECT', 546 568 \STREAM_NOTIFY_AUTH_REQUIRED => 'AUTH_REQUIRED', 547 \STREAM_NOTIFY_AUTH_RESULT => 'AUTH_RESULT',548 \STREAM_NOTIFY_MIME_TYPE_IS => 'MIME_TYPE_IS',549 \STREAM_NOTIFY_FILE_SIZE_IS => 'FILE_SIZE_IS',550 \STREAM_NOTIFY_REDIRECTED => 'REDIRECTED',551 \STREAM_NOTIFY_PROGRESS => 'PROGRESS',552 \STREAM_NOTIFY_FAILURE => 'FAILURE',553 \STREAM_NOTIFY_COMPLETED => 'COMPLETED',554 \STREAM_NOTIFY_RESOLVE => 'RESOLVE',569 \STREAM_NOTIFY_AUTH_RESULT => 'AUTH_RESULT', 570 \STREAM_NOTIFY_MIME_TYPE_IS => 'MIME_TYPE_IS', 571 \STREAM_NOTIFY_FILE_SIZE_IS => 'FILE_SIZE_IS', 572 \STREAM_NOTIFY_REDIRECTED => 'REDIRECTED', 573 \STREAM_NOTIFY_PROGRESS => 'PROGRESS', 574 \STREAM_NOTIFY_FAILURE => 'FAILURE', 575 \STREAM_NOTIFY_COMPLETED => 'COMPLETED', 576 \STREAM_NOTIFY_RESOLVE => 'RESOLVE', 555 577 ]; 556 578 static $args = ['severity', 'message', 'message_code', 'bytes_transferred', 'bytes_max']; 557 579 558 580 $value = Utils::debugResource($value); 559 $ident = $request->getMethod() . ' ' .$request->getUri()->withFragment('');581 $ident = $request->getMethod().' '.$request->getUri()->withFragment(''); 560 582 self::addNotification( 561 583 $params, … … 563 585 \fprintf($value, '<%s> [%s] ', $ident, $map[$code]); 564 586 foreach (\array_filter($passed) as $i => $v) { 565 \fwrite($value, $args[$i] . ': "' . $v .'" ');587 \fwrite($value, $args[$i].': "'.$v.'" '); 566 588 } 567 589 \fwrite($value, "\n"); … … 578 600 $params['notification'] = self::callArray([ 579 601 $params['notification'], 580 $notify 602 $notify, 581 603 ]); 582 604 } -
cryptopay-wc-lite/trunk/vendor/guzzlehttp/guzzle/src/HandlerStack.php
r2915472 r2915482 87 87 88 88 if ($this->handler !== null) { 89 $stack[] = "0) Handler: " .$this->debugCallable($this->handler);89 $stack[] = '0) Handler: '.$this->debugCallable($this->handler); 90 90 } 91 91 92 92 $result = ''; 93 93 foreach (\array_reverse($this->stack) as $tuple) { 94 $depth++;94 ++$depth; 95 95 $str = "{$depth}) Name: '{$tuple[1]}', "; 96 $str .= "Function: " .$this->debugCallable($tuple[0]);96 $str .= 'Function: '.$this->debugCallable($tuple[0]); 97 97 $result = "> {$str}\n{$result}"; 98 98 $stack[] = $str; … … 123 123 public function hasHandler(): bool 124 124 { 125 return $this->handler !== null ;125 return $this->handler !== null; 126 126 } 127 127 … … 267 267 return \is_string($fn[0]) 268 268 ? "callable({$fn[0]}::{$fn[1]})" 269 : "callable(['" . \get_class($fn[0]) ."', '{$fn[1]}'])";269 : "callable(['".\get_class($fn[0])."', '{$fn[1]}'])"; 270 270 } 271 271 272 272 /** @var object $fn */ 273 return 'callable(' . \spl_object_hash($fn) .')';273 return 'callable('.\spl_object_hash($fn).')'; 274 274 } 275 275 } -
cryptopay-wc-lite/trunk/vendor/guzzlehttp/guzzle/src/MessageFormatter.php
r2915472 r2915482 41 41 * Apache Common Log Format. 42 42 * 43 * @ linkhttps://httpd.apache.org/docs/2.4/logs.html#common43 * @see https://httpd.apache.org/docs/2.4/logs.html#common 44 44 * 45 45 * @var string 46 46 */ 47 public const CLF = "{hostname} {req_header_User-Agent} - [{date_common_log}] \"{method} {target} HTTP/{version}\" {code} {res_header_Content-Length}";47 public const CLF = '{hostname} {req_header_User-Agent} - [{date_common_log}] "{method} {target} HTTP/{version}" {code} {res_header_Content-Length}'; 48 48 public const DEBUG = ">>>>>>>>\n{request}\n<<<<<<<<\n{response}\n--------\n{error}"; 49 49 public const SHORT = '[{ts}] "{method} {target} HTTP/{version}" {code}'; … … 91 91 case 'req_headers': 92 92 $result = \trim($request->getMethod() 93 . ' ' .$request->getRequestTarget())94 . ' HTTP/' . $request->getProtocolVersion() ."\r\n"95 . $this->headers($request);93 .' '.$request->getRequestTarget()) 94 .' HTTP/'.$request->getProtocolVersion()."\r\n" 95 .$this->headers($request); 96 96 break; 97 97 case 'res_headers': … … 102 102 $response->getStatusCode(), 103 103 $response->getReasonPhrase() 104 ) . "\r\n" .$this->headers($response)104 )."\r\n".$this->headers($response) 105 105 : 'NULL'; 106 106 break; … … 178 178 179 179 $cache[$matches[1]] = $result; 180 180 181 return $result; 181 182 }, … … 191 192 $result = ''; 192 193 foreach ($message->getHeaders() as $name => $values) { 193 $result .= $name . ': ' . \implode(', ', $values) ."\r\n";194 $result .= $name.': '.\implode(', ', $values)."\r\n"; 194 195 } 195 196 -
cryptopay-wc-lite/trunk/vendor/guzzlehttp/guzzle/src/Middleware.php
r2915472 r2915482 35 35 $cookieJar = $options['cookies']; 36 36 $request = $cookieJar->withCookieHeader($request); 37 37 38 return $handler($request, $options) 38 39 ->then( 39 40 static function (ResponseInterface $response) use ($cookieJar, $request): ResponseInterface { 40 41 $cookieJar->extractCookies($request, $response); 42 41 43 return $response; 42 44 } … … 61 63 return $handler($request, $options); 62 64 } 65 63 66 return $handler($request, $options)->then( 64 67 static function (ResponseInterface $response) use ($request, $bodySummarizer) { … … 94 97 static function ($value) use ($request, &$container, $options) { 95 98 $container[] = [ 96 'request' => $request,99 'request' => $request, 97 100 'response' => $value, 98 'error' => null,99 'options' => $options101 'error' => null, 102 'options' => $options, 100 103 ]; 104 101 105 return $value; 102 106 }, 103 107 static function ($reason) use ($request, &$container, $options) { 104 108 $container[] = [ 105 'request' => $request,109 'request' => $request, 106 110 'response' => null, 107 'error' => $reason,108 'options' => $options111 'error' => $reason, 112 'options' => $options, 109 113 ]; 114 110 115 return P\Create::rejectionFor($reason); 111 116 } … … 139 144 $after($request, $options, $response); 140 145 } 146 141 147 return $response; 142 148 }; … … 203 209 $message = $formatter->format($request, $response); 204 210 $logger->log($logLevel, $message); 211 205 212 return $response; 206 213 }, … … 209 216 $message = $formatter->format($request, $response, P\Create::exceptionFor($reason)); 210 217 $logger->error($message); 218 211 219 return P\Create::rejectionFor($reason); 212 220 } -
cryptopay-wc-lite/trunk/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php
r2915472 r2915482 85 85 if ($expect === true) { 86 86 $modify['set_headers']['Expect'] = '100-Continue'; 87 87 88 return; 88 89 } -
cryptopay-wc-lite/trunk/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php
r2915472 r2915482 28 28 */ 29 29 public static $defaultSettings = [ 30 'max' => 5,31 'protocols' => ['http', 'https'],32 'strict' => false,33 'referer' => false,30 'max' => 5, 31 'protocols' => ['http', 'https'], 32 'strict' => false, 33 'referer' => false, 34 34 'track_redirects' => false, 35 35 ]; -
cryptopay-wc-lite/trunk/vendor/guzzlehttp/guzzle/src/RequestOptions.php
r2915472 r2915482 8 8 * More documentation for each option can be found at http://guzzlephp.org/. 9 9 * 10 * @ linkhttp://docs.guzzlephp.org/en/v6/request-options.html10 * @see http://docs.guzzlephp.org/en/v6/request-options.html 11 11 */ 12 12 final class RequestOptions … … 71 71 * connect_timeout: (float, default=0) Float describing the number of 72 72 * seconds to wait while trying to connect to a server. Use 0 to wait 73 * indefinitely(the default behavior).73 * 300 seconds (the default behavior). 74 74 */ 75 75 public const CONNECT_TIMEOUT = 'connect_timeout'; 76 77 /** 78 * crypto_method: (int) A value describing the minimum TLS protocol 79 * version to use. 80 * 81 * This setting must be set to one of the 82 * ``STREAM_CRYPTO_METHOD_TLS*_CLIENT`` constants. PHP 7.4 or higher is 83 * required in order to use TLS 1.3, and cURL 7.34.0 or higher is required 84 * in order to specify a crypto method, with cURL 7.52.0 or higher being 85 * required to use TLS 1.3. 86 */ 87 public const CRYPTO_METHOD = 'crypto_method'; 76 88 77 89 /** -
cryptopay-wc-lite/trunk/vendor/guzzlehttp/guzzle/src/RetryMiddleware.php
r2915472 r2915482 45 45 $this->decider = $decider; 46 46 $this->nextHandler = $nextHandler; 47 $this->delay = $delay ?: __CLASS__ .'::exponentialDelay';47 $this->delay = $delay ?: __CLASS__.'::exponentialDelay'; 48 48 } 49 49 … … 55 55 public static function exponentialDelay(int $retries): int 56 56 { 57 return (int) \pow(2,$retries - 1) * 1000;57 return (int) 2 ** ($retries - 1) * 1000; 58 58 } 59 59 … … 65 65 66 66 $fn = $this->nextHandler; 67 67 68 return $fn($request, $options) 68 69 ->then( … … 86 87 return $value; 87 88 } 89 88 90 return $this->doRetry($request, $options, $value); 89 91 }; … … 104 106 return P\Create::rejectionFor($reason); 105 107 } 108 106 109 return $this->doRetry($req, $options); 107 110 }; -
cryptopay-wc-lite/trunk/vendor/guzzlehttp/guzzle/src/Utils.php
r2915472 r2915482 24 24 switch (\gettype($input)) { 25 25 case 'object': 26 return 'object(' . \get_class($input) .')';26 return 'object('.\get_class($input).')'; 27 27 case 'array': 28 return 'array(' . \count($input) .')';28 return 'array('.\count($input).')'; 29 29 default: 30 30 \ob_start(); … … 80 80 * The returned handler is not wrapped by any default middlewares. 81 81 * 82 * @return callable(\Psr\Http\Message\RequestInterface, array): \GuzzleHttp\Promise\PromiseInterface Returns the best handler for the given system. 83 * 82 84 * @throws \RuntimeException if no viable Handler is available. 83 *84 * @return callable(\Psr\Http\Message\RequestInterface, array): \GuzzleHttp\Promise\PromiseInterface Returns the best handler for the given system.85 85 */ 86 86 public static function chooseHandler(): callable … … 248 248 // Special match if the area when prefixed with ".". Remove any 249 249 // existing leading "." and add a new leading ".". 250 $area = '.' .\ltrim($area, '.');251 if (\substr($host, - (\strlen($area))) === $area) {250 $area = '.'.\ltrim($area, '.'); 251 if (\substr($host, -\strlen($area)) === $area) { 252 252 return true; 253 253 } … … 270 270 * @throws InvalidArgumentException if the JSON cannot be decoded. 271 271 * 272 * @ linkhttps://www.php.net/manual/en/function.json-decode.php272 * @see https://www.php.net/manual/en/function.json-decode.php 273 273 */ 274 274 public static function jsonDecode(string $json, bool $assoc = false, int $depth = 512, int $options = 0) … … 276 276 $data = \json_decode($json, $assoc, $depth, $options); 277 277 if (\JSON_ERROR_NONE !== \json_last_error()) { 278 throw new InvalidArgumentException('json_decode error: ' .\json_last_error_msg());278 throw new InvalidArgumentException('json_decode error: '.\json_last_error_msg()); 279 279 } 280 280 … … 291 291 * @throws InvalidArgumentException if the JSON cannot be encoded. 292 292 * 293 * @ linkhttps://www.php.net/manual/en/function.json-encode.php293 * @see https://www.php.net/manual/en/function.json-encode.php 294 294 */ 295 295 public static function jsonEncode($value, int $options = 0, int $depth = 512): string … … 297 297 $json = \json_encode($value, $options, $depth); 298 298 if (\JSON_ERROR_NONE !== \json_last_error()) { 299 throw new InvalidArgumentException('json_encode error: ' .\json_last_error_msg());299 throw new InvalidArgumentException('json_encode error: '.\json_last_error_msg()); 300 300 } 301 301 … … 342 342 $errorMessage = 'IDN conversion failed'; 343 343 if ($errors) { 344 $errorMessage .= ' (errors: ' . implode(', ', $errors) .')';344 $errorMessage .= ' (errors: '.implode(', ', $errors).')'; 345 345 } 346 346 -
cryptopay-wc-lite/trunk/vendor/guzzlehttp/guzzle/src/functions.php
r2915472 r2915482 51 51 * The returned handler is not wrapped by any default middlewares. 52 52 * 53 * @return callable(\Psr\Http\Message\RequestInterface, array): \GuzzleHttp\Promise\PromiseInterface Returns the best handler for the given system. 54 * 53 55 * @throws \RuntimeException if no viable Handler is available. 54 *55 * @return callable(\Psr\Http\Message\RequestInterface, array): \GuzzleHttp\Promise\PromiseInterface Returns the best handler for the given system.56 56 * 57 57 * @deprecated choose_handler will be removed in guzzlehttp/guzzle:8.0. Use Utils::chooseHandler instead. … … 142 142 * @throws Exception\InvalidArgumentException if the JSON cannot be decoded. 143 143 * 144 * @ linkhttps://www.php.net/manual/en/function.json-decode.php144 * @see https://www.php.net/manual/en/function.json-decode.php 145 145 * @deprecated json_decode will be removed in guzzlehttp/guzzle:8.0. Use Utils::jsonDecode instead. 146 146 */ … … 159 159 * @throws Exception\InvalidArgumentException if the JSON cannot be encoded. 160 160 * 161 * @ linkhttps://www.php.net/manual/en/function.json-encode.php161 * @see https://www.php.net/manual/en/function.json-encode.php 162 162 * @deprecated json_encode will be removed in guzzlehttp/guzzle:8.0. Use Utils::jsonEncode instead. 163 163 */ -
cryptopay-wc-lite/trunk/vendor/guzzlehttp/guzzle/src/functions_include.php
r2915472 r2915482 3 3 // Don't redefine the functions if included multiple times. 4 4 if (!\function_exists('GuzzleHttp\describe_type')) { 5 require __DIR__ .'/functions.php';5 require __DIR__.'/functions.php'; 6 6 } -
cryptopay-wc-lite/trunk/vendor/guzzlehttp/promises/CHANGELOG.md
r2915472 r2915482 1 1 # CHANGELOG 2 3 4 ## 2.0.0 - TBC 5 6 ### Added 7 8 - Added PHP 7 type hints 9 10 ### Changed 11 12 - All previously non-final non-exception classes have been marked as soft-final 13 14 ### Removed 15 16 - Dropped PHP < 7.2 support 17 - All functions in the `GuzzleHttp\Promise` namespace 18 19 20 ## 1.5.3 - 2023-05-21 21 22 ### Changed 23 24 - Removed remaining usage of deprecated functions 25 2 26 3 27 ## 1.5.2 - 2022-08-07 … … 7 31 - Officially support PHP 8.2 8 32 33 9 34 ## 1.5.1 - 2021-10-22 10 35 … … 13 38 - Revert "Call handler when waiting on fulfilled/rejected Promise" 14 39 - Fix pool memory leak when empty array of promises provided 40 15 41 16 42 ## 1.5.0 - 2021-10-07 … … 25 51 - Fix manually settle promises generated with `Utils::task` 26 52 53 27 54 ## 1.4.1 - 2021-02-18 28 55 … … 30 57 31 58 - Fixed `each_limit` skipping promises and failing 59 32 60 33 61 ## 1.4.0 - 2020-09-30 -
cryptopay-wc-lite/trunk/vendor/guzzlehttp/promises/README.md
r2915472 r2915482 30 30 31 31 32 ## Installation 33 34 ```shell 35 composer require guzzlehttp/promises 36 ``` 37 38 39 ## Version Guidance 40 41 | Version | Status | PHP Version | 42 |---------|------------------------|--------------| 43 | 1.x | Bug and security fixes | >=5.5,<8.3 | 44 | 2.x | Latest | >=7.2.5,<8.3 | 45 46 32 47 ## Quick Start 33 48 … … 431 446 ``` 432 447 433 *TODO*: Perhaps adding a `futureTick()` on each tick would be faster?434 435 448 436 449 ## Implementation Notes … … 502 515 A static API was first introduced in 1.4.0, in order to mitigate problems with 503 516 functions conflicting between global and local copies of the package. The 504 function API w ill be removed in 2.0.0. A migration table has been provided here505 foryour convenience:517 function API was removed in 2.0.0. A migration table has been provided here for 518 your convenience: 506 519 507 520 | Original Function | Replacement Method | -
cryptopay-wc-lite/trunk/vendor/guzzlehttp/promises/composer.json
r2915472 r2915482 27 27 ], 28 28 "require": { 29 "php": " >=5.5"29 "php": "^7.2.5 || ^8.0" 30 30 }, 31 31 "require-dev": { 32 "symfony/phpunit-bridge": "^4.4 || ^5.1" 32 "bamarni/composer-bin-plugin": "^1.8.1", 33 "phpunit/phpunit": "^8.5.29 || ^9.5.23" 33 34 }, 34 35 "autoload": { 35 36 "psr-4": { 36 37 "GuzzleHttp\\Promise\\": "src/" 37 }, 38 "files": ["src/functions_include.php"] 38 } 39 39 }, 40 40 "autoload-dev": { … … 43 43 } 44 44 }, 45 "scripts": {46 "test": "vendor/bin/simple-phpunit",47 "test-ci": "vendor/bin/simple-phpunit --coverage-text"48 },49 45 "extra": { 50 "branch-alias": { 51 "dev-master": "1.5-dev" 46 "bamarni-bin": { 47 "bin-links": true, 48 "forward-command": false 52 49 } 53 50 }, 54 51 "config": { 52 "allow-plugins": { 53 "bamarni/composer-bin-plugin": true 54 }, 55 55 "preferred-install": "dist", 56 56 "sort-packages": true -
cryptopay-wc-lite/trunk/vendor/guzzlehttp/promises/src/AggregateException.php
r2915472 r2915482 1 1 <?php 2 3 declare(strict_types=1); 2 4 3 5 namespace GuzzleHttp\Promise; … … 8 10 class AggregateException extends RejectionException 9 11 { 10 public function __construct( $msg, array $reasons)12 public function __construct(string $msg, array $reasons) 11 13 { 12 14 parent::__construct( -
cryptopay-wc-lite/trunk/vendor/guzzlehttp/promises/src/CancellationException.php
r2915472 r2915482 1 1 <?php 2 3 declare(strict_types=1); 2 4 3 5 namespace GuzzleHttp\Promise; -
cryptopay-wc-lite/trunk/vendor/guzzlehttp/promises/src/Coroutine.php
r2915472 r2915482 1 1 <?php 2 3 declare(strict_types=1); 2 4 3 5 namespace GuzzleHttp\Promise; 4 6 5 use Exception;6 7 use Generator; 7 8 use Throwable; … … 28 29 * try { 29 30 * $value = (yield createPromise($value . 'b')); 30 * } catch (\ Exception$e) {31 * } catch (\Throwable $e) { 31 32 * // The promise was rejected. 32 33 * } … … 41 42 * @return Promise 42 43 * 43 * @ linkhttps://github.com/petkaantonov/bluebird/blob/master/API.md#generators inspiration44 * @see https://github.com/petkaantonov/bluebird/blob/master/API.md#generators inspiration 44 45 */ 45 46 final class Coroutine implements PromiseInterface … … 63 64 { 64 65 $this->generator = $generatorFn(); 65 $this->result = new Promise(function () {66 $this->result = new Promise(function (): void { 66 67 while (isset($this->currentPromise)) { 67 68 $this->currentPromise->wait(); … … 70 71 try { 71 72 $this->nextCoroutine($this->generator->current()); 72 } catch (\Exception $exception) {73 $this->result->reject($exception);74 73 } catch (Throwable $throwable) { 75 74 $this->result->reject($throwable); … … 79 78 /** 80 79 * Create a new coroutine. 81 *82 * @return self83 80 */ 84 public static function of(callable $generatorFn) 81 public static function of(callable $generatorFn): self 85 82 { 86 83 return new self($generatorFn); … … 90 87 callable $onFulfilled = null, 91 88 callable $onRejected = null 92 ) {89 ): PromiseInterface { 93 90 return $this->result->then($onFulfilled, $onRejected); 94 91 } 95 92 96 public function otherwise(callable $onRejected) 93 public function otherwise(callable $onRejected): PromiseInterface 97 94 { 98 95 return $this->result->otherwise($onRejected); 99 96 } 100 97 101 public function wait( $unwrap = true)98 public function wait(bool $unwrap = true) 102 99 { 103 100 return $this->result->wait($unwrap); 104 101 } 105 102 106 public function getState() 103 public function getState(): string 107 104 { 108 105 return $this->result->getState(); 109 106 } 110 107 111 public function resolve($value) 108 public function resolve($value): void 112 109 { 113 110 $this->result->resolve($value); 114 111 } 115 112 116 public function reject($reason) 113 public function reject($reason): void 117 114 { 118 115 $this->result->reject($reason); 119 116 } 120 117 121 public function cancel() 118 public function cancel(): void 122 119 { 123 120 $this->currentPromise->cancel(); … … 125 122 } 126 123 127 private function nextCoroutine($yielded) 124 private function nextCoroutine($yielded): void 128 125 { 129 126 $this->currentPromise = Create::promiseFor($yielded) … … 134 131 * @internal 135 132 */ 136 public function _handleSuccess($value) 133 public function _handleSuccess($value): void 137 134 { 138 135 unset($this->currentPromise); … … 144 141 $this->result->resolve($value); 145 142 } 146 } catch (Exception $exception) {147 $this->result->reject($exception);148 143 } catch (Throwable $throwable) { 149 144 $this->result->reject($throwable); … … 154 149 * @internal 155 150 */ 156 public function _handleFailure($reason) 151 public function _handleFailure($reason): void 157 152 { 158 153 unset($this->currentPromise); … … 161 156 // The throw was caught, so keep iterating on the coroutine 162 157 $this->nextCoroutine($nextYield); 163 } catch (Exception $exception) {164 $this->result->reject($exception);165 158 } catch (Throwable $throwable) { 166 159 $this->result->reject($throwable); -
cryptopay-wc-lite/trunk/vendor/guzzlehttp/promises/src/Create.php
r2915472 r2915482 1 1 <?php 2 3 declare(strict_types=1); 2 4 3 5 namespace GuzzleHttp\Promise; … … 9 11 * 10 12 * @param mixed $value Promise or value. 11 *12 * @return PromiseInterface13 13 */ 14 public static function promiseFor($value) 14 public static function promiseFor($value): PromiseInterface 15 15 { 16 16 if ($value instanceof PromiseInterface) { … … 24 24 $promise = new Promise($wfn, $cfn); 25 25 $value->then([$promise, 'resolve'], [$promise, 'reject']); 26 26 27 return $promise; 27 28 } … … 35 36 * 36 37 * @param mixed $reason Promise or reason. 37 *38 * @return PromiseInterface39 38 */ 40 public static function rejectionFor($reason) 39 public static function rejectionFor($reason): PromiseInterface 41 40 { 42 41 if ($reason instanceof PromiseInterface) { … … 51 50 * 52 51 * @param mixed $reason 53 *54 * @return \Exception|\Throwable55 52 */ 56 public static function exceptionFor($reason) 53 public static function exceptionFor($reason): \Throwable 57 54 { 58 if ($reason instanceof \ Exception || $reason instanceof \Throwable) {55 if ($reason instanceof \Throwable) { 59 56 return $reason; 60 57 } … … 67 64 * 68 65 * @param mixed $value 69 *70 * @return \Iterator71 66 */ 72 public static function iterFor($value) 67 public static function iterFor($value): \Iterator 73 68 { 74 69 if ($value instanceof \Iterator) { -
cryptopay-wc-lite/trunk/vendor/guzzlehttp/promises/src/Each.php
r2915472 r2915482 1 1 <?php 2 3 declare(strict_types=1); 2 4 3 5 namespace GuzzleHttp\Promise; … … 21 23 * @param callable $onFulfilled 22 24 * @param callable $onRejected 23 *24 * @return PromiseInterface25 25 */ 26 26 public static function of( … … 28 28 callable $onFulfilled = null, 29 29 callable $onRejected = null 30 ) {30 ): PromiseInterface { 31 31 return (new EachPromise($iterable, [ 32 32 'fulfilled' => $onFulfilled, 33 'rejected' => $onRejected33 'rejected' => $onRejected, 34 34 ]))->promise(); 35 35 } … … 47 47 * @param callable $onFulfilled 48 48 * @param callable $onRejected 49 *50 * @return PromiseInterface51 49 */ 52 50 public static function ofLimit( … … 55 53 callable $onFulfilled = null, 56 54 callable $onRejected = null 57 ) {55 ): PromiseInterface { 58 56 return (new EachPromise($iterable, [ 59 'fulfilled' => $onFulfilled,60 'rejected' => $onRejected,61 'concurrency' => $concurrency 57 'fulfilled' => $onFulfilled, 58 'rejected' => $onRejected, 59 'concurrency' => $concurrency, 62 60 ]))->promise(); 63 61 } … … 71 69 * @param int|callable $concurrency 72 70 * @param callable $onFulfilled 73 *74 * @return PromiseInterface75 71 */ 76 72 public static function ofLimitAll( … … 78 74 $concurrency, 79 75 callable $onFulfilled = null 80 ) {81 return each_limit(76 ): PromiseInterface { 77 return self::ofLimit( 82 78 $iterable, 83 79 $concurrency, 84 80 $onFulfilled, 85 function ($reason, $idx, PromiseInterface $aggregate) {81 function ($reason, $idx, PromiseInterface $aggregate): void { 86 82 $aggregate->reject($reason); 87 83 } -
cryptopay-wc-lite/trunk/vendor/guzzlehttp/promises/src/EachPromise.php
r2915472 r2915482 1 1 <?php 2 3 declare(strict_types=1); 2 4 3 5 namespace GuzzleHttp\Promise; … … 6 8 * Represents a promise that iterates over many promises and invokes 7 9 * side-effect functions in the process. 10 * 11 * @final 8 12 */ 9 13 class EachPromise implements PromisorInterface … … 70 74 71 75 /** @psalm-suppress InvalidNullableReturnType */ 72 public function promise() 76 public function promise(): PromiseInterface 73 77 { 74 78 if ($this->aggregate) { … … 83 87 } catch (\Throwable $e) { 84 88 $this->aggregate->reject($e); 85 } catch (\Exception $e) {86 $this->aggregate->reject($e);87 89 } 88 90 89 91 /** 90 92 * @psalm-suppress NullableReturnStatement 91 * @phpstan-ignore-next-line92 93 */ 93 94 return $this->aggregate; 94 95 } 95 96 96 private function createPromise() 97 private function createPromise(): void 97 98 { 98 99 $this->mutex = false; 99 $this->aggregate = new Promise(function () {100 $this->aggregate = new Promise(function (): void { 100 101 if ($this->checkIfFinished()) { 101 102 return; … … 114 115 115 116 // Clear the references when the promise is resolved. 116 $clearFn = function () {117 $clearFn = function (): void { 117 118 $this->iterable = $this->concurrency = $this->pending = null; 118 119 $this->onFulfilled = $this->onRejected = null; … … 123 124 } 124 125 125 private function refillPending() 126 private function refillPending(): void 126 127 { 127 128 if (!$this->concurrency) { 128 129 // Add all pending promises. 129 while ($this->addPending() && $this->advanceIterator()); 130 while ($this->addPending() && $this->advanceIterator()) { 131 } 132 130 133 return; 131 134 } … … 148 151 while (--$concurrency 149 152 && $this->advanceIterator() 150 && $this->addPending()); 151 } 152 153 private function addPending() 153 && $this->addPending()) { 154 } 155 } 156 157 private function addPending(): bool 154 158 { 155 159 if (!$this->iterable || !$this->iterable->valid()) { … … 165 169 166 170 $this->pending[$idx] = $promise->then( 167 function ($value) use ($idx, $key) {171 function ($value) use ($idx, $key): void { 168 172 if ($this->onFulfilled) { 169 173 call_user_func( … … 176 180 $this->step($idx); 177 181 }, 178 function ($reason) use ($idx, $key) {182 function ($reason) use ($idx, $key): void { 179 183 if ($this->onRejected) { 180 184 call_user_func( … … 192 196 } 193 197 194 private function advanceIterator() 198 private function advanceIterator(): bool 195 199 { 196 200 // Place a lock on the iterator so that we ensure to not recurse, … … 205 209 $this->iterable->next(); 206 210 $this->mutex = false; 211 207 212 return true; 208 213 } catch (\Throwable $e) { 209 214 $this->aggregate->reject($e); 210 215 $this->mutex = false; 216 211 217 return false; 212 } catch (\Exception $e) { 213 $this->aggregate->reject($e); 214 $this->mutex = false; 215 return false; 216 } 217 } 218 219 private function step($idx) 218 } 219 } 220 221 private function step(int $idx): void 220 222 { 221 223 // If the promise was already resolved, then ignore this step. … … 235 237 } 236 238 237 private function checkIfFinished() 239 private function checkIfFinished(): bool 238 240 { 239 241 if (!$this->pending && !$this->iterable->valid()) { 240 242 // Resolve the promise if there's nothing left to do. 241 243 $this->aggregate->resolve(null); 244 242 245 return true; 243 246 } -
cryptopay-wc-lite/trunk/vendor/guzzlehttp/promises/src/FulfilledPromise.php
r2915472 r2915482 1 1 <?php 2 3 declare(strict_types=1); 2 4 3 5 namespace GuzzleHttp\Promise; … … 8 10 * Thenning off of this promise will invoke the onFulfilled callback 9 11 * immediately and ignore other callbacks. 12 * 13 * @final 10 14 */ 11 15 class FulfilledPromise implements PromiseInterface … … 13 17 private $value; 14 18 19 /** 20 * @param mixed $value 21 */ 15 22 public function __construct($value) 16 23 { … … 27 34 callable $onFulfilled = null, 28 35 callable $onRejected = null 29 ) {36 ): PromiseInterface { 30 37 // Return itself if there is no onFulfilled function. 31 38 if (!$onFulfilled) { … … 36 43 $p = new Promise([$queue, 'run']); 37 44 $value = $this->value; 38 $queue->add(static function () use ($p, $value, $onFulfilled) {45 $queue->add(static function () use ($p, $value, $onFulfilled): void { 39 46 if (Is::pending($p)) { 40 47 try { 41 48 $p->resolve($onFulfilled($value)); 42 49 } catch (\Throwable $e) { 43 $p->reject($e);44 } catch (\Exception $e) {45 50 $p->reject($e); 46 51 } … … 51 56 } 52 57 53 public function otherwise(callable $onRejected) 58 public function otherwise(callable $onRejected): PromiseInterface 54 59 { 55 60 return $this->then(null, $onRejected); 56 61 } 57 62 58 public function wait( $unwrap = true, $defaultDelivery = null)63 public function wait(bool $unwrap = true) 59 64 { 60 65 return $unwrap ? $this->value : null; 61 66 } 62 67 63 public function getState() 68 public function getState(): string 64 69 { 65 70 return self::FULFILLED; 66 71 } 67 72 68 public function resolve($value) 73 public function resolve($value): void 69 74 { 70 75 if ($value !== $this->value) { 71 throw new \LogicException( "Cannot resolve a fulfilled promise");76 throw new \LogicException('Cannot resolve a fulfilled promise'); 72 77 } 73 78 } 74 79 75 public function reject($reason) 80 public function reject($reason): void 76 81 { 77 throw new \LogicException( "Cannot reject a fulfilled promise");82 throw new \LogicException('Cannot reject a fulfilled promise'); 78 83 } 79 84 80 public function cancel() 85 public function cancel(): void 81 86 { 82 87 // pass -
cryptopay-wc-lite/trunk/vendor/guzzlehttp/promises/src/Is.php
r2915472 r2915482 1 1 <?php 2 3 declare(strict_types=1); 2 4 3 5 namespace GuzzleHttp\Promise; … … 7 9 /** 8 10 * Returns true if a promise is pending. 9 *10 * @return bool11 11 */ 12 public static function pending(PromiseInterface $promise) 12 public static function pending(PromiseInterface $promise): bool 13 13 { 14 14 return $promise->getState() === PromiseInterface::PENDING; … … 17 17 /** 18 18 * Returns true if a promise is fulfilled or rejected. 19 *20 * @return bool21 19 */ 22 public static function settled(PromiseInterface $promise) 20 public static function settled(PromiseInterface $promise): bool 23 21 { 24 22 return $promise->getState() !== PromiseInterface::PENDING; … … 27 25 /** 28 26 * Returns true if a promise is fulfilled. 29 *30 * @return bool31 27 */ 32 public static function fulfilled(PromiseInterface $promise) 28 public static function fulfilled(PromiseInterface $promise): bool 33 29 { 34 30 return $promise->getState() === PromiseInterface::FULFILLED; … … 37 33 /** 38 34 * Returns true if a promise is rejected. 39 *40 * @return bool41 35 */ 42 public static function rejected(PromiseInterface $promise) 36 public static function rejected(PromiseInterface $promise): bool 43 37 { 44 38 return $promise->getState() === PromiseInterface::REJECTED; -
cryptopay-wc-lite/trunk/vendor/guzzlehttp/promises/src/Promise.php
r2915472 r2915482 1 1 <?php 2 3 declare(strict_types=1); 2 4 3 5 namespace GuzzleHttp\Promise; … … 6 8 * Promises/A+ implementation that avoids recursion when possible. 7 9 * 8 * @link https://promisesaplus.com/ 10 * @see https://promisesaplus.com/ 11 * 12 * @final 9 13 */ 10 14 class Promise implements PromiseInterface … … 32 36 callable $onFulfilled = null, 33 37 callable $onRejected = null 34 ) {38 ): PromiseInterface { 35 39 if ($this->state === self::PENDING) { 36 40 $p = new Promise(null, [$this, 'cancel']); … … 38 42 $p->waitList = $this->waitList; 39 43 $p->waitList[] = $this; 44 40 45 return $p; 41 46 } … … 44 49 if ($this->state === self::FULFILLED) { 45 50 $promise = Create::promiseFor($this->result); 51 46 52 return $onFulfilled ? $promise->then($onFulfilled) : $promise; 47 53 } … … 50 56 // and immediately invoke any callbacks. 51 57 $rejection = Create::rejectionFor($this->result); 58 52 59 return $onRejected ? $rejection->then(null, $onRejected) : $rejection; 53 60 } 54 61 55 public function otherwise(callable $onRejected) 62 public function otherwise(callable $onRejected): PromiseInterface 56 63 { 57 64 return $this->then(null, $onRejected); 58 65 } 59 66 60 public function wait( $unwrap = true)67 public function wait(bool $unwrap = true) 61 68 { 62 69 $this->waitIfPending(); … … 74 81 } 75 82 76 public function getState() 83 public function getState(): string 77 84 { 78 85 return $this->state; 79 86 } 80 87 81 public function cancel() 88 public function cancel(): void 82 89 { 83 90 if ($this->state !== self::PENDING) { … … 94 101 } catch (\Throwable $e) { 95 102 $this->reject($e); 96 } catch (\Exception $e) {97 $this->reject($e);98 103 } 99 104 } … … 106 111 } 107 112 108 public function resolve($value) 113 public function resolve($value): void 109 114 { 110 115 $this->settle(self::FULFILLED, $value); 111 116 } 112 117 113 public function reject($reason) 118 public function reject($reason): void 114 119 { 115 120 $this->settle(self::REJECTED, $reason); 116 121 } 117 122 118 private function settle( $state, $value)123 private function settle(string $state, $value): void 119 124 { 120 125 if ($this->state !== self::PENDING) { … … 149 154 $id = $state === self::FULFILLED ? 1 : 2; 150 155 // It's a success, so resolve the handlers in the queue. 151 Utils::queue()->add(static function () use ($id, $value, $handlers) {156 Utils::queue()->add(static function () use ($id, $value, $handlers): void { 152 157 foreach ($handlers as $handler) { 153 158 self::callHandler($id, $value, $handler); … … 160 165 // Resolve the handlers when the forwarded promise is resolved. 161 166 $value->then( 162 static function ($value) use ($handlers) {167 static function ($value) use ($handlers): void { 163 168 foreach ($handlers as $handler) { 164 169 self::callHandler(1, $value, $handler); 165 170 } 166 171 }, 167 static function ($reason) use ($handlers) {172 static function ($reason) use ($handlers): void { 168 173 foreach ($handlers as $handler) { 169 174 self::callHandler(2, $reason, $handler); … … 181 186 * @param array $handler Array of handler data (promise and callbacks). 182 187 */ 183 private static function callHandler( $index, $value, array $handler)188 private static function callHandler(int $index, $value, array $handler): void 184 189 { 185 190 /** @var PromiseInterface $promise */ … … 212 217 } catch (\Throwable $reason) { 213 218 $promise->reject($reason); 214 } catch (\Exception $reason) { 215 $promise->reject($reason); 216 } 217 } 218 219 private function waitIfPending() 219 } 220 } 221 222 private function waitIfPending(): void 220 223 { 221 224 if ($this->state !== self::PENDING) { … … 228 231 // If there's no wait function, then reject the promise. 229 232 $this->reject('Cannot wait on a promise that has ' 230 . 'no internal wait function. You must provide a wait '231 . 'function when constructing the promise to be able to '232 . 'wait on a promise.');233 .'no internal wait function. You must provide a wait ' 234 .'function when constructing the promise to be able to ' 235 .'wait on a promise.'); 233 236 } 234 237 … … 241 244 } 242 245 243 private function invokeWaitFn() 246 private function invokeWaitFn(): void 244 247 { 245 248 try { … … 247 250 $this->waitFn = null; 248 251 $wfn(true); 249 } catch (\ Exception$reason) {252 } catch (\Throwable $reason) { 250 253 if ($this->state === self::PENDING) { 251 254 // The promise has not been resolved yet, so reject the promise … … 260 263 } 261 264 262 private function invokeWaitList() 265 private function invokeWaitList(): void 263 266 { 264 267 $waitList = $this->waitList; -
cryptopay-wc-lite/trunk/vendor/guzzlehttp/promises/src/PromiseInterface.php
r2915472 r2915482 1 1 <?php 2 3 declare(strict_types=1); 2 4 3 5 namespace GuzzleHttp\Promise; … … 10 12 * the reason why the promise cannot be fulfilled. 11 13 * 12 * @ linkhttps://promisesaplus.com/14 * @see https://promisesaplus.com/ 13 15 */ 14 16 interface PromiseInterface 15 17 { 16 const PENDING = 'pending';17 const FULFILLED = 'fulfilled';18 const REJECTED = 'rejected';18 public const PENDING = 'pending'; 19 public const FULFILLED = 'fulfilled'; 20 public const REJECTED = 'rejected'; 19 21 20 22 /** … … 24 26 * @param callable $onFulfilled Invoked when the promise fulfills. 25 27 * @param callable $onRejected Invoked when the promise is rejected. 26 *27 * @return PromiseInterface28 28 */ 29 29 public function then( 30 30 callable $onFulfilled = null, 31 31 callable $onRejected = null 32 ) ;32 ): PromiseInterface; 33 33 34 34 /** … … 39 39 * 40 40 * @param callable $onRejected Invoked when the promise is rejected. 41 *42 * @return PromiseInterface43 41 */ 44 public function otherwise(callable $onRejected) ;42 public function otherwise(callable $onRejected): PromiseInterface; 45 43 46 44 /** … … 49 47 * The three states can be checked against the constants defined on 50 48 * PromiseInterface: PENDING, FULFILLED, and REJECTED. 51 *52 * @return string53 49 */ 54 public function getState() ;50 public function getState(): string; 55 51 56 52 /** … … 61 57 * @throws \RuntimeException if the promise is already resolved. 62 58 */ 63 public function resolve($value) ;59 public function resolve($value): void; 64 60 65 61 /** … … 70 66 * @throws \RuntimeException if the promise is already resolved. 71 67 */ 72 public function reject($reason) ;68 public function reject($reason): void; 73 69 74 70 /** 75 71 * Cancels the promise if possible. 76 72 * 77 * @ linkhttps://github.com/promises-aplus/cancellation-spec/issues/773 * @see https://github.com/promises-aplus/cancellation-spec/issues/7 78 74 */ 79 public function cancel() ;75 public function cancel(): void; 80 76 81 77 /** … … 87 83 * If the promise cannot be waited on, then the promise will be rejected. 88 84 * 89 * @param bool $unwrap90 *91 85 * @return mixed 92 86 * … … 94 88 * promise does not settle after waiting. 95 89 */ 96 public function wait( $unwrap = true);90 public function wait(bool $unwrap = true); 97 91 } -
cryptopay-wc-lite/trunk/vendor/guzzlehttp/promises/src/PromisorInterface.php
r2915472 r2915482 1 1 <?php 2 3 declare(strict_types=1); 2 4 3 5 namespace GuzzleHttp\Promise; … … 10 12 /** 11 13 * Returns a promise. 12 *13 * @return PromiseInterface14 14 */ 15 public function promise() ;15 public function promise(): PromiseInterface; 16 16 } -
cryptopay-wc-lite/trunk/vendor/guzzlehttp/promises/src/RejectedPromise.php
r2915472 r2915482 1 1 <?php 2 3 declare(strict_types=1); 2 4 3 5 namespace GuzzleHttp\Promise; … … 8 10 * Thenning off of this promise will invoke the onRejected callback 9 11 * immediately and ignore other callbacks. 12 * 13 * @final 10 14 */ 11 15 class RejectedPromise implements PromiseInterface … … 13 17 private $reason; 14 18 19 /** 20 * @param mixed $reason 21 */ 15 22 public function __construct($reason) 16 23 { … … 27 34 callable $onFulfilled = null, 28 35 callable $onRejected = null 29 ) {36 ): PromiseInterface { 30 37 // If there's no onRejected callback then just return self. 31 38 if (!$onRejected) { … … 36 43 $reason = $this->reason; 37 44 $p = new Promise([$queue, 'run']); 38 $queue->add(static function () use ($p, $reason, $onRejected) {45 $queue->add(static function () use ($p, $reason, $onRejected): void { 39 46 if (Is::pending($p)) { 40 47 try { … … 42 49 $p->resolve($onRejected($reason)); 43 50 } catch (\Throwable $e) { 44 // onRejected threw, so return a rejected promise.45 $p->reject($e);46 } catch (\Exception $e) {47 51 // onRejected threw, so return a rejected promise. 48 52 $p->reject($e); … … 54 58 } 55 59 56 public function otherwise(callable $onRejected) 60 public function otherwise(callable $onRejected): PromiseInterface 57 61 { 58 62 return $this->then(null, $onRejected); 59 63 } 60 64 61 public function wait( $unwrap = true, $defaultDelivery = null)65 public function wait(bool $unwrap = true) 62 66 { 63 67 if ($unwrap) { … … 68 72 } 69 73 70 public function getState() 74 public function getState(): string 71 75 { 72 76 return self::REJECTED; 73 77 } 74 78 75 public function resolve($value) 79 public function resolve($value): void 76 80 { 77 throw new \LogicException( "Cannot resolve a rejected promise");81 throw new \LogicException('Cannot resolve a rejected promise'); 78 82 } 79 83 80 public function reject($reason) 84 public function reject($reason): void 81 85 { 82 86 if ($reason !== $this->reason) { 83 throw new \LogicException( "Cannot reject a rejected promise");87 throw new \LogicException('Cannot reject a rejected promise'); 84 88 } 85 89 } 86 90 87 public function cancel() 91 public function cancel(): void 88 92 { 89 93 // pass -
cryptopay-wc-lite/trunk/vendor/guzzlehttp/promises/src/RejectionException.php
r2915472 r2915482 1 1 <?php 2 3 declare(strict_types=1); 2 4 3 5 namespace GuzzleHttp\Promise; … … 14 16 15 17 /** 16 * @param mixed $reason Rejection reason.17 * @param string $description Optional description18 * @param mixed $reason Rejection reason. 19 * @param string|null $description Optional description. 18 20 */ 19 21 public function __construct($reason, $description = null) … … 24 26 25 27 if ($description) { 26 $message .= ' with reason: ' .$description;28 $message .= ' with reason: '.$description; 27 29 } elseif (is_string($reason) 28 30 || (is_object($reason) && method_exists($reason, '__toString')) 29 31 ) { 30 $message .= ' with reason: ' .$this->reason;32 $message .= ' with reason: '.$this->reason; 31 33 } elseif ($reason instanceof \JsonSerializable) { 32 $message .= ' with reason: ' 33 . json_encode($this->reason, JSON_PRETTY_PRINT); 34 $message .= ' with reason: '.json_encode($this->reason, JSON_PRETTY_PRINT); 34 35 } 35 36 -
cryptopay-wc-lite/trunk/vendor/guzzlehttp/promises/src/TaskQueue.php
r2915472 r2915482 1 1 <?php 2 3 declare(strict_types=1); 2 4 3 5 namespace GuzzleHttp\Promise; … … 11 13 * 12 14 * GuzzleHttp\Promise\Utils::queue()->run(); 15 * 16 * @final 13 17 */ 14 18 class TaskQueue implements TaskQueueInterface … … 17 21 private $queue = []; 18 22 19 public function __construct( $withShutdown = true)23 public function __construct(bool $withShutdown = true) 20 24 { 21 25 if ($withShutdown) { 22 register_shutdown_function(function () {26 register_shutdown_function(function (): void { 23 27 if ($this->enableShutdown) { 24 28 // Only run the tasks if an E_ERROR didn't occur. … … 32 36 } 33 37 34 public function isEmpty() 38 public function isEmpty(): bool 35 39 { 36 40 return !$this->queue; 37 41 } 38 42 39 public function add(callable $task) 43 public function add(callable $task): void 40 44 { 41 45 $this->queue[] = $task; 42 46 } 43 47 44 public function run() 48 public function run(): void 45 49 { 46 50 while ($task = array_shift($this->queue)) { … … 61 65 * Note: This shutdown will occur before any destructors are triggered. 62 66 */ 63 public function disableShutdown() 67 public function disableShutdown(): void 64 68 { 65 69 $this->enableShutdown = false; -
cryptopay-wc-lite/trunk/vendor/guzzlehttp/promises/src/TaskQueueInterface.php
r2915472 r2915482 1 1 <?php 2 3 declare(strict_types=1); 2 4 3 5 namespace GuzzleHttp\Promise; … … 7 9 /** 8 10 * Returns true if the queue is empty. 9 *10 * @return bool11 11 */ 12 public function isEmpty() ;12 public function isEmpty(): bool; 13 13 14 14 /** … … 16 16 * called. 17 17 */ 18 public function add(callable $task) ;18 public function add(callable $task): void; 19 19 20 20 /** 21 21 * Execute all of the pending task in the queue. 22 22 */ 23 public function run() ;23 public function run(): void; 24 24 } -
cryptopay-wc-lite/trunk/vendor/guzzlehttp/promises/src/Utils.php
r2915472 r2915482 1 1 <?php 2 3 declare(strict_types=1); 2 4 3 5 namespace GuzzleHttp\Promise; … … 18 20 * </code> 19 21 * 20 * @param TaskQueueInterface $assign Optionally specify a new queue instance. 21 * 22 * @return TaskQueueInterface 23 */ 24 public static function queue(TaskQueueInterface $assign = null) 22 * @param TaskQueueInterface|null $assign Optionally specify a new queue instance. 23 */ 24 public static function queue(TaskQueueInterface $assign = null): TaskQueueInterface 25 25 { 26 26 static $queue; … … 40 40 * 41 41 * @param callable $task Task function to run. 42 * 43 * @return PromiseInterface 44 */ 45 public static function task(callable $task) 42 */ 43 public static function task(callable $task): PromiseInterface 46 44 { 47 45 $queue = self::queue(); 48 46 $promise = new Promise([$queue, 'run']); 49 $queue->add(function () use ($task, $promise) {47 $queue->add(function () use ($task, $promise): void { 50 48 try { 51 49 if (Is::pending($promise)) { … … 53 51 } 54 52 } catch (\Throwable $e) { 55 $promise->reject($e);56 } catch (\Exception $e) {57 53 $promise->reject($e); 58 54 } … … 73 69 * 74 70 * @param PromiseInterface $promise Promise or value. 75 * 76 * @return array 77 */ 78 public static function inspect(PromiseInterface $promise) 71 */ 72 public static function inspect(PromiseInterface $promise): array 79 73 { 80 74 try { 81 75 return [ 82 76 'state' => PromiseInterface::FULFILLED, 83 'value' => $promise->wait() 77 'value' => $promise->wait(), 84 78 ]; 85 79 } catch (RejectionException $e) { … … 87 81 } catch (\Throwable $e) { 88 82 return ['state' => PromiseInterface::REJECTED, 'reason' => $e]; 89 } catch (\Exception $e) {90 return ['state' => PromiseInterface::REJECTED, 'reason' => $e];91 83 } 92 84 } … … 101 93 * 102 94 * @param PromiseInterface[] $promises Traversable of promises to wait upon. 103 * 104 * @return array 105 */ 106 public static function inspectAll($promises) 95 */ 96 public static function inspectAll($promises): array 107 97 { 108 98 $results = []; 109 99 foreach ($promises as $key => $promise) { 110 $results[$key] = inspect($promise);100 $results[$key] = self::inspect($promise); 111 101 } 112 102 … … 123 113 * @param iterable<PromiseInterface> $promises Iterable of PromiseInterface objects to wait on. 124 114 * 125 * @return array 126 * 127 * @throws \Exception on error 128 * @throws \Throwable on error in PHP >=7 129 */ 130 public static function unwrap($promises) 115 * @throws \Throwable on error 116 */ 117 public static function unwrap($promises): array 131 118 { 132 119 $results = []; … … 148 135 * @param mixed $promises Promises or values. 149 136 * @param bool $recursive If true, resolves new promises that might have been added to the stack during its own resolution. 150 * 151 * @return PromiseInterface 152 */ 153 public static function all($promises, $recursive = false) 137 */ 138 public static function all($promises, bool $recursive = false): PromiseInterface 154 139 { 155 140 $results = []; 156 141 $promise = Each::of( 157 142 $promises, 158 function ($value, $idx) use (&$results) {143 function ($value, $idx) use (&$results): void { 159 144 $results[$idx] = $value; 160 145 }, 161 function ($reason, $idx, Promise $aggregate) {146 function ($reason, $idx, Promise $aggregate): void { 162 147 $aggregate->reject($reason); 163 148 } 164 149 )->then(function () use (&$results) { 165 150 ksort($results); 151 166 152 return $results; 167 153 }); … … 174 160 } 175 161 } 162 176 163 return $results; 177 164 }); … … 194 181 * @param int $count Total number of promises. 195 182 * @param mixed $promises Promises or values. 196 * 197 * @return PromiseInterface 198 */ 199 public static function some($count, $promises) 183 */ 184 public static function some(int $count, $promises): PromiseInterface 200 185 { 201 186 $results = []; … … 204 189 return Each::of( 205 190 $promises, 206 function ($value, $idx, PromiseInterface $p) use (&$results, $count) {191 function ($value, $idx, PromiseInterface $p) use (&$results, $count): void { 207 192 if (Is::settled($p)) { 208 193 return; … … 213 198 } 214 199 }, 215 function ($reason) use (&$rejections) {200 function ($reason) use (&$rejections): void { 216 201 $rejections[] = $reason; 217 202 } … … 225 210 } 226 211 ksort($results); 212 227 213 return array_values($results); 228 214 } … … 235 221 * 236 222 * @param mixed $promises Promises or values. 237 * 238 * @return PromiseInterface 239 */ 240 public static function any($promises) 223 */ 224 public static function any($promises): PromiseInterface 241 225 { 242 226 return self::some(1, $promises)->then(function ($values) { … … 254 238 * 255 239 * @param mixed $promises Promises or values. 256 * 257 * @return PromiseInterface 258 */ 259 public static function settle($promises) 240 */ 241 public static function settle($promises): PromiseInterface 260 242 { 261 243 $results = []; … … 263 245 return Each::of( 264 246 $promises, 265 function ($value, $idx) use (&$results) {247 function ($value, $idx) use (&$results): void { 266 248 $results[$idx] = ['state' => PromiseInterface::FULFILLED, 'value' => $value]; 267 249 }, 268 function ($reason, $idx) use (&$results) {250 function ($reason, $idx) use (&$results): void { 269 251 $results[$idx] = ['state' => PromiseInterface::REJECTED, 'reason' => $reason]; 270 252 } 271 253 )->then(function () use (&$results) { 272 254 ksort($results); 255 273 256 return $results; 274 257 }); -
cryptopay-wc-lite/trunk/vendor/guzzlehttp/psr7/CHANGELOG.md
r2915472 r2915482 7 7 8 8 ## Unreleased 9 10 ## 2.5.0 - 2023-04-17 11 12 ### Changed 13 14 - Adjusted `psr/http-message` version constraint to `^1.1 || ^2.0` 15 16 ## 2.4.5 - 2023-04-17 17 18 ### Fixed 19 20 - Prevent possible warnings on unset variables in `ServerRequest::normalizeNestedFileSpec` 21 - Fixed `Message::bodySummary` when `preg_match` fails 22 - Fixed header validation issue 9 23 10 24 ## 2.4.4 - 2023-03-09 -
cryptopay-wc-lite/trunk/vendor/guzzlehttp/psr7/composer.json
r2915472 r2915482 53 53 "php": "^7.2.5 || ^8.0", 54 54 "psr/http-factory": "^1.0", 55 "psr/http-message": "^1. 0",55 "psr/http-message": "^1.1 || ^2.0", 56 56 "ralouphie/getallheaders": "^3.0" 57 57 }, … … 82 82 "bin-links": true, 83 83 "forward-command": false 84 },85 "branch-alias": {86 "dev-master": "2.4-dev"87 84 } 88 85 }, -
cryptopay-wc-lite/trunk/vendor/guzzlehttp/psr7/src/Message.php
r2915472 r2915482 78 78 // Matches any printable character, including unicode characters: 79 79 // letters, marks, numbers, punctuation, spacing, and separators. 80 if (preg_match('/[^\pL\pM\pN\pP\pS\pZ\n\r\t]/u', $summary) ) {80 if (preg_match('/[^\pL\pM\pN\pP\pS\pZ\n\r\t]/u', $summary) !== 0) { 81 81 return null; 82 82 } -
cryptopay-wc-lite/trunk/vendor/guzzlehttp/psr7/src/MessageTrait.php
r2915472 r2915482 225 225 } 226 226 227 if (! preg_match('/^[a-zA-Z0-9\'`#$%&*+.^_|~!-]+$/ ', $header)) {227 if (! preg_match('/^[a-zA-Z0-9\'`#$%&*+.^_|~!-]+$/D', $header)) { 228 228 throw new \InvalidArgumentException( 229 sprintf( 230 '"%s" is not valid header name', 231 $header 232 ) 229 sprintf('"%s" is not valid header name.', $header) 233 230 ); 234 231 } … … 258 255 // likely very rare. Line folding is a fairly obscure feature of HTTP/1.1 and thus not accepting 259 256 // folding is not likely to break any legitimate use case. 260 if (! preg_match('/^[\x20\x09\x21-\x7E\x80-\xFF]*$/', $value)) { 261 throw new \InvalidArgumentException(sprintf('"%s" is not valid header value', $value)); 257 if (! preg_match('/^[\x20\x09\x21-\x7E\x80-\xFF]*$/D', $value)) { 258 throw new \InvalidArgumentException( 259 sprintf('"%s" is not valid header value.', $value) 260 ); 262 261 } 263 262 } -
cryptopay-wc-lite/trunk/vendor/guzzlehttp/psr7/src/ServerRequest.php
r2915472 r2915482 145 145 $spec = [ 146 146 'tmp_name' => $files['tmp_name'][$key], 147 'size' => $files['size'][$key] ,148 'error' => $files['error'][$key] ,149 'name' => $files['name'][$key] ,150 'type' => $files['type'][$key] ,147 'size' => $files['size'][$key] ?? null, 148 'error' => $files['error'][$key] ?? null, 149 'name' => $files['name'][$key] ?? null, 150 'type' => $files['type'][$key] ?? null, 151 151 ]; 152 152 $normalizedFiles[$key] = self::createUploadedFileFromSpec($spec); -
cryptopay-wc-lite/trunk/vendor/multiplechain/evm-chains/src/Transaction.php
r2915472 r2915482 56 56 public function getData() : ?object 57 57 { 58 if ($this->data) return $this->data;59 58 $this->provider->methods->getTransactionByHash($this->hash, function($err, $tx){ 60 59 if ($err) { … … 86 85 public function decodeInput() : ?object 87 86 { 88 $this->getData();89 87 $input = $this->data->input; 90 88 $pattern = '/.+?(?=000000000000000000000000)/'; … … 108 106 { 109 107 try { 110 $this->getData();111 108 $currentBlock = $this->provider->getBlockNumber(); 112 109 if ($this->data->blockNumber === null) return 0; … … 128 125 public function getStatus() : ?bool 129 126 { 130 $this->getData();131 127 $result = null; 132 128 -
cryptopay-wc-lite/trunk/vendor/psr/http-client/README.md
r2915472 r2915482 8 8 The installable [package][package-url] and [implementations][implementation-url] are listed on Packagist. 9 9 10 [psr-url]: http ://www.php-fig.org/psr/psr-1810 [psr-url]: https://www.php-fig.org/psr/psr-18 11 11 [package-url]: https://packagist.org/packages/psr/http-client 12 12 [implementation-url]: https://packagist.org/providers/psr/http-client-implementation -
cryptopay-wc-lite/trunk/vendor/psr/http-client/composer.json
r2915472 r2915482 8 8 { 9 9 "name": "PHP-FIG", 10 "homepage": "http ://www.php-fig.org/"10 "homepage": "https://www.php-fig.org/" 11 11 } 12 12 ], 13 13 "require": { 14 14 "php": "^7.0 || ^8.0", 15 "psr/http-message": "^1.0 "15 "psr/http-message": "^1.0 || ^2.0" 16 16 }, 17 17 "autoload": { -
cryptopay-wc-lite/trunk/vendor/psr/http-factory/README.md
r2915472 r2915482 2 2 ============== 3 3 4 This repository holds all interfaces related to [PSR-17 (HTTP Message Factories)][psr-17]. 5 Please refer to the specification for a description. 4 This repository holds all interfaces related to [PSR-17 (HTTP Factories)][psr-url]. 6 5 7 You can find implementations of the specification by looking for packages providing the 8 [psr/http-factory-implementation](https://packagist.org/providers/psr/http-factory-implementation) virtual package. 6 Note that this is not a HTTP Factory implementation of its own. It is merely interfaces that describe the components of a HTTP Factory. 9 7 10 [psr-17]: https://www.php-fig.org/psr/psr-17/ 8 The installable [package][package-url] and [implementations][implementation-url] are listed on Packagist. 9 10 [psr-url]: https://www.php-fig.org/psr/psr-17/ 11 [package-url]: https://packagist.org/packages/psr/http-factory 12 [implementation-url]: https://packagist.org/providers/psr/http-factory-implementation -
cryptopay-wc-lite/trunk/vendor/psr/http-factory/composer.json
r2915472 r2915482 16 16 { 17 17 "name": "PHP-FIG", 18 "homepage": "http ://www.php-fig.org/"18 "homepage": "https://www.php-fig.org/" 19 19 } 20 20 ], 21 21 "require": { 22 22 "php": ">=7.0.0", 23 "psr/http-message": "^1.0 "23 "psr/http-message": "^1.0 || ^2.0" 24 24 }, 25 25 "autoload": { -
cryptopay-wc-lite/trunk/vendor/psr/http-message/README.md
r2915472 r2915482 11 11 ----- 12 12 13 We'll certainly need some stuff in here. 13 Before reading the usage guide we recommend reading the PSR-7 interfaces method list: 14 15 * [`PSR-7 Interfaces Method List`](docs/PSR7-Interfaces.md) 16 * [`PSR-7 Usage Guide`](docs/PSR7-Usage.md) -
cryptopay-wc-lite/trunk/vendor/psr/http-message/composer.json
r2915472 r2915482 8 8 { 9 9 "name": "PHP-FIG", 10 "homepage": "http ://www.php-fig.org/"10 "homepage": "https://www.php-fig.org/" 11 11 } 12 12 ], 13 13 "require": { 14 "php": " >=5.3.0"14 "php": "^7.2 || ^8.0" 15 15 }, 16 16 "autoload": { … … 21 21 "extra": { 22 22 "branch-alias": { 23 "dev-master": " 1.0.x-dev"23 "dev-master": "2.0.x-dev" 24 24 } 25 25 } -
cryptopay-wc-lite/trunk/vendor/psr/http-message/src/MessageInterface.php
r2915472 r2915482 24 24 * @return string HTTP protocol version. 25 25 */ 26 public function getProtocolVersion() ;26 public function getProtocolVersion(): string; 27 27 28 28 /** … … 39 39 * @return static 40 40 */ 41 public function withProtocolVersion( $version);41 public function withProtocolVersion(string $version): MessageInterface; 42 42 43 43 /** … … 66 66 * for that header. 67 67 */ 68 public function getHeaders() ;68 public function getHeaders(): array; 69 69 70 70 /** … … 76 76 * no matching header name is found in the message. 77 77 */ 78 public function hasHeader( $name);78 public function hasHeader(string $name): bool; 79 79 80 80 /** … … 92 92 * return an empty array. 93 93 */ 94 public function getHeader( $name);94 public function getHeader(string $name): array; 95 95 96 96 /** … … 113 113 * the message, this method MUST return an empty string. 114 114 */ 115 public function getHeaderLine( $name);115 public function getHeaderLine(string $name): string; 116 116 117 117 /** … … 130 130 * @throws \InvalidArgumentException for invalid header names or values. 131 131 */ 132 public function withHeader( $name, $value);132 public function withHeader(string $name, $value): MessageInterface; 133 133 134 134 /** … … 148 148 * @throws \InvalidArgumentException for invalid header names or values. 149 149 */ 150 public function withAddedHeader( $name, $value);150 public function withAddedHeader(string $name, $value): MessageInterface; 151 151 152 152 /** … … 162 162 * @return static 163 163 */ 164 public function withoutHeader( $name);164 public function withoutHeader(string $name): MessageInterface; 165 165 166 166 /** … … 169 169 * @return StreamInterface Returns the body as a stream. 170 170 */ 171 public function getBody() ;171 public function getBody(): StreamInterface; 172 172 173 173 /** … … 184 184 * @throws \InvalidArgumentException When the body is not valid. 185 185 */ 186 public function withBody(StreamInterface $body) ;186 public function withBody(StreamInterface $body): MessageInterface; 187 187 } -
cryptopay-wc-lite/trunk/vendor/psr/http-message/src/RequestInterface.php
r2915472 r2915482 40 40 * @return string 41 41 */ 42 public function getRequestTarget() ;42 public function getRequestTarget(): string; 43 43 44 44 /** … … 56 56 * @link http://tools.ietf.org/html/rfc7230#section-5.3 (for the various 57 57 * request-target forms allowed in request messages) 58 * @param mixed$requestTarget58 * @param string $requestTarget 59 59 * @return static 60 60 */ 61 public function withRequestTarget($requestTarget); 61 public function withRequestTarget(string $requestTarget): RequestInterface; 62 62 63 63 64 /** … … 66 67 * @return string Returns the request method. 67 68 */ 68 public function getMethod() ;69 public function getMethod(): string; 69 70 70 71 /** … … 83 84 * @throws \InvalidArgumentException for invalid HTTP methods. 84 85 */ 85 public function withMethod( $method);86 public function withMethod(string $method): RequestInterface; 86 87 87 88 /** … … 94 95 * representing the URI of the request. 95 96 */ 96 public function getUri() ;97 public function getUri(): UriInterface; 97 98 98 99 /** … … 126 127 * @return static 127 128 */ 128 public function withUri(UriInterface $uri, $preserveHost = false);129 public function withUri(UriInterface $uri, bool $preserveHost = false): RequestInterface; 129 130 } -
cryptopay-wc-lite/trunk/vendor/psr/http-message/src/ResponseInterface.php
r2915472 r2915482 28 28 * @return int Status code. 29 29 */ 30 public function getStatusCode() ;30 public function getStatusCode(): int; 31 31 32 32 /** … … 50 50 * @throws \InvalidArgumentException For invalid status code arguments. 51 51 */ 52 public function withStatus( $code, $reasonPhrase = '');52 public function withStatus(int $code, string $reasonPhrase = ''): ResponseInterface; 53 53 54 54 /** … … 65 65 * @return string Reason phrase; must return an empty string if none present. 66 66 */ 67 public function getReasonPhrase() ;67 public function getReasonPhrase(): string; 68 68 } -
cryptopay-wc-lite/trunk/vendor/psr/http-message/src/ServerRequestInterface.php
r2915472 r2915482 52 52 * @return array 53 53 */ 54 public function getServerParams() ;54 public function getServerParams(): array; 55 55 56 56 /** … … 64 64 * @return array 65 65 */ 66 public function getCookieParams() ;66 public function getCookieParams(): array; 67 67 68 68 /** … … 83 83 * @return static 84 84 */ 85 public function withCookieParams(array $cookies) ;85 public function withCookieParams(array $cookies): ServerRequestInterface; 86 86 87 87 /** … … 97 97 * @return array 98 98 */ 99 public function getQueryParams() ;99 public function getQueryParams(): array; 100 100 101 101 /** … … 121 121 * @return static 122 122 */ 123 public function withQueryParams(array $query) ;123 public function withQueryParams(array $query): ServerRequestInterface; 124 124 125 125 /** … … 135 135 * array MUST be returned if no data is present. 136 136 */ 137 public function getUploadedFiles() ;137 public function getUploadedFiles(): array; 138 138 139 139 /** … … 148 148 * @throws \InvalidArgumentException if an invalid structure is provided. 149 149 */ 150 public function withUploadedFiles(array $uploadedFiles) ;150 public function withUploadedFiles(array $uploadedFiles): ServerRequestInterface; 151 151 152 152 /** … … 195 195 * provided. 196 196 */ 197 public function withParsedBody($data) ;197 public function withParsedBody($data): ServerRequestInterface; 198 198 199 199 /** … … 208 208 * @return array Attributes derived from the request. 209 209 */ 210 public function getAttributes() ;210 public function getAttributes(): array; 211 211 212 212 /** … … 225 225 * @return mixed 226 226 */ 227 public function getAttribute( $name, $default = null);227 public function getAttribute(string $name, $default = null); 228 228 229 229 /** … … 242 242 * @return static 243 243 */ 244 public function withAttribute( $name, $value);244 public function withAttribute(string $name, $value): ServerRequestInterface; 245 245 246 246 /** … … 258 258 * @return static 259 259 */ 260 public function withoutAttribute( $name);260 public function withoutAttribute(string $name): ServerRequestInterface; 261 261 } -
cryptopay-wc-lite/trunk/vendor/psr/http-message/src/StreamInterface.php
r2915472 r2915482 26 26 * @return string 27 27 */ 28 public function __toString() ;28 public function __toString(): string; 29 29 30 30 /** … … 33 33 * @return void 34 34 */ 35 public function close() ;35 public function close(): void; 36 36 37 37 /** … … 49 49 * @return int|null Returns the size in bytes if known, or null if unknown. 50 50 */ 51 public function getSize() ;51 public function getSize(): ?int; 52 52 53 53 /** … … 57 57 * @throws \RuntimeException on error. 58 58 */ 59 public function tell() ;59 public function tell(): int; 60 60 61 61 /** … … 64 64 * @return bool 65 65 */ 66 public function eof() ;66 public function eof(): bool; 67 67 68 68 /** … … 71 71 * @return bool 72 72 */ 73 public function isSeekable() ;73 public function isSeekable(): bool; 74 74 75 75 /** … … 85 85 * @throws \RuntimeException on failure. 86 86 */ 87 public function seek( $offset, $whence = SEEK_SET);87 public function seek(int $offset, int $whence = SEEK_SET): void; 88 88 89 89 /** … … 97 97 * @throws \RuntimeException on failure. 98 98 */ 99 public function rewind() ;99 public function rewind(): void; 100 100 101 101 /** … … 104 104 * @return bool 105 105 */ 106 public function isWritable() ;106 public function isWritable(): bool; 107 107 108 108 /** … … 113 113 * @throws \RuntimeException on failure. 114 114 */ 115 public function write( $string);115 public function write(string $string): int; 116 116 117 117 /** … … 120 120 * @return bool 121 121 */ 122 public function isReadable() ;122 public function isReadable(): bool; 123 123 124 124 /** … … 132 132 * @throws \RuntimeException if an error occurs. 133 133 */ 134 public function read( $length);134 public function read(int $length): string; 135 135 136 136 /** … … 141 141 * reading. 142 142 */ 143 public function getContents() ;143 public function getContents(): string; 144 144 145 145 /** … … 150 150 * 151 151 * @link http://php.net/manual/en/function.stream-get-meta-data.php 152 * @param string $key Specific metadata to retrieve.152 * @param string|null $key Specific metadata to retrieve. 153 153 * @return array|mixed|null Returns an associative array if no key is 154 154 * provided. Returns a specific key value if a key is provided and the 155 155 * value is found, or null if the key is not found. 156 156 */ 157 public function getMetadata( $key = null);157 public function getMetadata(?string $key = null); 158 158 } -
cryptopay-wc-lite/trunk/vendor/psr/http-message/src/UploadedFileInterface.php
r2915472 r2915482 29 29 * created. 30 30 */ 31 public function getStream() ;31 public function getStream(): StreamInterface; 32 32 33 33 /** … … 63 63 * the second or subsequent call to the method. 64 64 */ 65 public function moveTo( $targetPath);65 public function moveTo(string $targetPath): void; 66 66 67 67 /** … … 74 74 * @return int|null The file size in bytes or null if unknown. 75 75 */ 76 public function getSize() ;76 public function getSize(): ?int; 77 77 78 78 /** … … 90 90 * @return int One of PHP's UPLOAD_ERR_XXX constants. 91 91 */ 92 public function getError() ;92 public function getError(): int; 93 93 94 94 /** … … 105 105 * was provided. 106 106 */ 107 public function getClientFilename() ;107 public function getClientFilename(): ?string; 108 108 109 109 /** … … 120 120 * was provided. 121 121 */ 122 public function getClientMediaType() ;122 public function getClientMediaType(): ?string; 123 123 } -
cryptopay-wc-lite/trunk/vendor/psr/http-message/src/UriInterface.php
r2915472 r2915482 1 1 <?php 2 2 3 namespace Psr\Http\Message; 3 4 … … 38 39 * @return string The URI scheme. 39 40 */ 40 public function getScheme() ;41 public function getScheme(): string; 41 42 42 43 /** … … 58 59 * @return string The URI authority, in "[user-info@]host[:port]" format. 59 60 */ 60 public function getAuthority() ;61 public function getAuthority(): string; 61 62 62 63 /** … … 75 76 * @return string The URI user information, in "username[:password]" format. 76 77 */ 77 public function getUserInfo() ;78 public function getUserInfo(): string; 78 79 79 80 /** … … 88 89 * @return string The URI host. 89 90 */ 90 public function getHost() ;91 public function getHost(): string; 91 92 92 93 /** … … 105 106 * @return null|int The URI port. 106 107 */ 107 public function getPort() ;108 public function getPort(): ?int; 108 109 109 110 /** … … 132 133 * @return string The URI path. 133 134 */ 134 public function getPath() ;135 public function getPath(): string; 135 136 136 137 /** … … 154 155 * @return string The URI query string. 155 156 */ 156 public function getQuery() ;157 public function getQuery(): string; 157 158 158 159 /** … … 172 173 * @return string The URI fragment. 173 174 */ 174 public function getFragment() ;175 public function getFragment(): string; 175 176 176 177 /** … … 189 190 * @throws \InvalidArgumentException for invalid or unsupported schemes. 190 191 */ 191 public function withScheme( $scheme);192 public function withScheme(string $scheme): UriInterface; 192 193 193 194 /** … … 205 206 * @return static A new instance with the specified user information. 206 207 */ 207 public function withUserInfo( $user, $password = null);208 public function withUserInfo(string $user, ?string $password = null): UriInterface; 208 209 209 210 /** … … 219 220 * @throws \InvalidArgumentException for invalid hostnames. 220 221 */ 221 public function withHost( $host);222 public function withHost(string $host): UriInterface; 222 223 223 224 /** … … 238 239 * @throws \InvalidArgumentException for invalid ports. 239 240 */ 240 public function withPort( $port);241 public function withPort(?int $port): UriInterface; 241 242 242 243 /** … … 262 263 * @throws \InvalidArgumentException for invalid paths. 263 264 */ 264 public function withPath( $path);265 public function withPath(string $path): UriInterface; 265 266 266 267 /** … … 279 280 * @throws \InvalidArgumentException for invalid query strings. 280 281 */ 281 public function withQuery( $query);282 public function withQuery(string $query): UriInterface; 282 283 283 284 /** … … 295 296 * @return static A new instance with the specified fragment. 296 297 */ 297 public function withFragment( $fragment);298 public function withFragment(string $fragment): UriInterface; 298 299 299 300 /** … … 320 321 * @return string 321 322 */ 322 public function __toString() ;323 public function __toString(): string; 323 324 }
Note: See TracChangeset
for help on using the changeset viewer.