Changeset 2955014
- Timestamp:
- 08/17/2023 03:13:07 PM (3 years ago)
- Location:
- bitfinex-pay
- Files:
-
- 214 added
- 4 deleted
- 76 edited
-
tags/3.0.0 (added)
-
tags/3.0.0/LICENSE (added)
-
tags/3.0.0/README.md (added)
-
tags/3.0.0/assets (added)
-
tags/3.0.0/assets/img (added)
-
tags/3.0.0/assets/img/bfx-pay-dark.svg (added)
-
tags/3.0.0/assets/img/bfx-pay-white-mail.png (added)
-
tags/3.0.0/assets/img/bfx-pay-white.svg (added)
-
tags/3.0.0/bfx-pay-woocommerce.php (added)
-
tags/3.0.0/bfx-pay-wp-directory.png (added)
-
tags/3.0.0/composer.json (added)
-
tags/3.0.0/composer.lock (added)
-
tags/3.0.0/includes (added)
-
tags/3.0.0/includes/class-wc-bfx-pay-gateway.php (added)
-
tags/3.0.0/languages (added)
-
tags/3.0.0/languages/bitfinex-pay.pot (added)
-
tags/3.0.0/readme.txt (added)
-
tags/3.0.0/vendor (added)
-
tags/3.0.0/vendor/autoload.php (added)
-
tags/3.0.0/vendor/composer (added)
-
tags/3.0.0/vendor/composer/ClassLoader.php (added)
-
tags/3.0.0/vendor/composer/InstalledVersions.php (added)
-
tags/3.0.0/vendor/composer/LICENSE (added)
-
tags/3.0.0/vendor/composer/autoload_classmap.php (added)
-
tags/3.0.0/vendor/composer/autoload_files.php (added)
-
tags/3.0.0/vendor/composer/autoload_namespaces.php (added)
-
tags/3.0.0/vendor/composer/autoload_psr4.php (added)
-
tags/3.0.0/vendor/composer/autoload_real.php (added)
-
tags/3.0.0/vendor/composer/autoload_static.php (added)
-
tags/3.0.0/vendor/composer/installed.json (added)
-
tags/3.0.0/vendor/composer/installed.php (added)
-
tags/3.0.0/vendor/composer/platform_check.php (added)
-
tags/3.0.0/vendor/guzzlehttp (added)
-
tags/3.0.0/vendor/guzzlehttp/guzzle (added)
-
tags/3.0.0/vendor/guzzlehttp/guzzle/CHANGELOG.md (added)
-
tags/3.0.0/vendor/guzzlehttp/guzzle/LICENSE (added)
-
tags/3.0.0/vendor/guzzlehttp/guzzle/README.md (added)
-
tags/3.0.0/vendor/guzzlehttp/guzzle/UPGRADING.md (added)
-
tags/3.0.0/vendor/guzzlehttp/guzzle/composer.json (added)
-
tags/3.0.0/vendor/guzzlehttp/guzzle/src (added)
-
tags/3.0.0/vendor/guzzlehttp/guzzle/src/BodySummarizer.php (added)
-
tags/3.0.0/vendor/guzzlehttp/guzzle/src/BodySummarizerInterface.php (added)
-
tags/3.0.0/vendor/guzzlehttp/guzzle/src/Client.php (added)
-
tags/3.0.0/vendor/guzzlehttp/guzzle/src/ClientInterface.php (added)
-
tags/3.0.0/vendor/guzzlehttp/guzzle/src/ClientTrait.php (added)
-
tags/3.0.0/vendor/guzzlehttp/guzzle/src/Cookie (added)
-
tags/3.0.0/vendor/guzzlehttp/guzzle/src/Cookie/CookieJar.php (added)
-
tags/3.0.0/vendor/guzzlehttp/guzzle/src/Cookie/CookieJarInterface.php (added)
-
tags/3.0.0/vendor/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php (added)
-
tags/3.0.0/vendor/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php (added)
-
tags/3.0.0/vendor/guzzlehttp/guzzle/src/Cookie/SetCookie.php (added)
-
tags/3.0.0/vendor/guzzlehttp/guzzle/src/Exception (added)
-
tags/3.0.0/vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php (added)
-
tags/3.0.0/vendor/guzzlehttp/guzzle/src/Exception/ClientException.php (added)
-
tags/3.0.0/vendor/guzzlehttp/guzzle/src/Exception/ConnectException.php (added)
-
tags/3.0.0/vendor/guzzlehttp/guzzle/src/Exception/GuzzleException.php (added)
-
tags/3.0.0/vendor/guzzlehttp/guzzle/src/Exception/InvalidArgumentException.php (added)
-
tags/3.0.0/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php (added)
-
tags/3.0.0/vendor/guzzlehttp/guzzle/src/Exception/ServerException.php (added)
-
tags/3.0.0/vendor/guzzlehttp/guzzle/src/Exception/TooManyRedirectsException.php (added)
-
tags/3.0.0/vendor/guzzlehttp/guzzle/src/Exception/TransferException.php (added)
-
tags/3.0.0/vendor/guzzlehttp/guzzle/src/Handler (added)
-
tags/3.0.0/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php (added)
-
tags/3.0.0/vendor/guzzlehttp/guzzle/src/Handler/CurlFactoryInterface.php (added)
-
tags/3.0.0/vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php (added)
-
tags/3.0.0/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php (added)
-
tags/3.0.0/vendor/guzzlehttp/guzzle/src/Handler/EasyHandle.php (added)
-
tags/3.0.0/vendor/guzzlehttp/guzzle/src/Handler/HeaderProcessor.php (added)
-
tags/3.0.0/vendor/guzzlehttp/guzzle/src/Handler/MockHandler.php (added)
-
tags/3.0.0/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php (added)
-
tags/3.0.0/vendor/guzzlehttp/guzzle/src/Handler/StreamHandler.php (added)
-
tags/3.0.0/vendor/guzzlehttp/guzzle/src/HandlerStack.php (added)
-
tags/3.0.0/vendor/guzzlehttp/guzzle/src/MessageFormatter.php (added)
-
tags/3.0.0/vendor/guzzlehttp/guzzle/src/MessageFormatterInterface.php (added)
-
tags/3.0.0/vendor/guzzlehttp/guzzle/src/Middleware.php (added)
-
tags/3.0.0/vendor/guzzlehttp/guzzle/src/Pool.php (added)
-
tags/3.0.0/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php (added)
-
tags/3.0.0/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php (added)
-
tags/3.0.0/vendor/guzzlehttp/guzzle/src/RequestOptions.php (added)
-
tags/3.0.0/vendor/guzzlehttp/guzzle/src/RetryMiddleware.php (added)
-
tags/3.0.0/vendor/guzzlehttp/guzzle/src/TransferStats.php (added)
-
tags/3.0.0/vendor/guzzlehttp/guzzle/src/Utils.php (added)
-
tags/3.0.0/vendor/guzzlehttp/guzzle/src/functions.php (added)
-
tags/3.0.0/vendor/guzzlehttp/guzzle/src/functions_include.php (added)
-
tags/3.0.0/vendor/guzzlehttp/promises (added)
-
tags/3.0.0/vendor/guzzlehttp/promises/CHANGELOG.md (added)
-
tags/3.0.0/vendor/guzzlehttp/promises/LICENSE (added)
-
tags/3.0.0/vendor/guzzlehttp/promises/README.md (added)
-
tags/3.0.0/vendor/guzzlehttp/promises/composer.json (added)
-
tags/3.0.0/vendor/guzzlehttp/promises/src (added)
-
tags/3.0.0/vendor/guzzlehttp/promises/src/AggregateException.php (added)
-
tags/3.0.0/vendor/guzzlehttp/promises/src/CancellationException.php (added)
-
tags/3.0.0/vendor/guzzlehttp/promises/src/Coroutine.php (added)
-
tags/3.0.0/vendor/guzzlehttp/promises/src/Create.php (added)
-
tags/3.0.0/vendor/guzzlehttp/promises/src/Each.php (added)
-
tags/3.0.0/vendor/guzzlehttp/promises/src/EachPromise.php (added)
-
tags/3.0.0/vendor/guzzlehttp/promises/src/FulfilledPromise.php (added)
-
tags/3.0.0/vendor/guzzlehttp/promises/src/Is.php (added)
-
tags/3.0.0/vendor/guzzlehttp/promises/src/Promise.php (added)
-
tags/3.0.0/vendor/guzzlehttp/promises/src/PromiseInterface.php (added)
-
tags/3.0.0/vendor/guzzlehttp/promises/src/PromisorInterface.php (added)
-
tags/3.0.0/vendor/guzzlehttp/promises/src/RejectedPromise.php (added)
-
tags/3.0.0/vendor/guzzlehttp/promises/src/RejectionException.php (added)
-
tags/3.0.0/vendor/guzzlehttp/promises/src/TaskQueue.php (added)
-
tags/3.0.0/vendor/guzzlehttp/promises/src/TaskQueueInterface.php (added)
-
tags/3.0.0/vendor/guzzlehttp/promises/src/Utils.php (added)
-
tags/3.0.0/vendor/guzzlehttp/promises/vendor-bin (added)
-
tags/3.0.0/vendor/guzzlehttp/promises/vendor-bin/php-cs-fixer (added)
-
tags/3.0.0/vendor/guzzlehttp/promises/vendor-bin/php-cs-fixer/composer.json (added)
-
tags/3.0.0/vendor/guzzlehttp/promises/vendor-bin/phpstan (added)
-
tags/3.0.0/vendor/guzzlehttp/promises/vendor-bin/phpstan/composer.json (added)
-
tags/3.0.0/vendor/guzzlehttp/promises/vendor-bin/psalm (added)
-
tags/3.0.0/vendor/guzzlehttp/promises/vendor-bin/psalm/composer.json (added)
-
tags/3.0.0/vendor/guzzlehttp/psr7 (added)
-
tags/3.0.0/vendor/guzzlehttp/psr7/CHANGELOG.md (added)
-
tags/3.0.0/vendor/guzzlehttp/psr7/LICENSE (added)
-
tags/3.0.0/vendor/guzzlehttp/psr7/README.md (added)
-
tags/3.0.0/vendor/guzzlehttp/psr7/composer.json (added)
-
tags/3.0.0/vendor/guzzlehttp/psr7/src (added)
-
tags/3.0.0/vendor/guzzlehttp/psr7/src/AppendStream.php (added)
-
tags/3.0.0/vendor/guzzlehttp/psr7/src/BufferStream.php (added)
-
tags/3.0.0/vendor/guzzlehttp/psr7/src/CachingStream.php (added)
-
tags/3.0.0/vendor/guzzlehttp/psr7/src/DroppingStream.php (added)
-
tags/3.0.0/vendor/guzzlehttp/psr7/src/Exception (added)
-
tags/3.0.0/vendor/guzzlehttp/psr7/src/Exception/MalformedUriException.php (added)
-
tags/3.0.0/vendor/guzzlehttp/psr7/src/FnStream.php (added)
-
tags/3.0.0/vendor/guzzlehttp/psr7/src/Header.php (added)
-
tags/3.0.0/vendor/guzzlehttp/psr7/src/HttpFactory.php (added)
-
tags/3.0.0/vendor/guzzlehttp/psr7/src/InflateStream.php (added)
-
tags/3.0.0/vendor/guzzlehttp/psr7/src/LazyOpenStream.php (added)
-
tags/3.0.0/vendor/guzzlehttp/psr7/src/LimitStream.php (added)
-
tags/3.0.0/vendor/guzzlehttp/psr7/src/Message.php (added)
-
tags/3.0.0/vendor/guzzlehttp/psr7/src/MessageTrait.php (added)
-
tags/3.0.0/vendor/guzzlehttp/psr7/src/MimeType.php (added)
-
tags/3.0.0/vendor/guzzlehttp/psr7/src/MultipartStream.php (added)
-
tags/3.0.0/vendor/guzzlehttp/psr7/src/NoSeekStream.php (added)
-
tags/3.0.0/vendor/guzzlehttp/psr7/src/PumpStream.php (added)
-
tags/3.0.0/vendor/guzzlehttp/psr7/src/Query.php (added)
-
tags/3.0.0/vendor/guzzlehttp/psr7/src/Request.php (added)
-
tags/3.0.0/vendor/guzzlehttp/psr7/src/Response.php (added)
-
tags/3.0.0/vendor/guzzlehttp/psr7/src/Rfc7230.php (added)
-
tags/3.0.0/vendor/guzzlehttp/psr7/src/ServerRequest.php (added)
-
tags/3.0.0/vendor/guzzlehttp/psr7/src/Stream.php (added)
-
tags/3.0.0/vendor/guzzlehttp/psr7/src/StreamDecoratorTrait.php (added)
-
tags/3.0.0/vendor/guzzlehttp/psr7/src/StreamWrapper.php (added)
-
tags/3.0.0/vendor/guzzlehttp/psr7/src/UploadedFile.php (added)
-
tags/3.0.0/vendor/guzzlehttp/psr7/src/Uri.php (added)
-
tags/3.0.0/vendor/guzzlehttp/psr7/src/UriComparator.php (added)
-
tags/3.0.0/vendor/guzzlehttp/psr7/src/UriNormalizer.php (added)
-
tags/3.0.0/vendor/guzzlehttp/psr7/src/UriResolver.php (added)
-
tags/3.0.0/vendor/guzzlehttp/psr7/src/Utils.php (added)
-
tags/3.0.0/vendor/psr (added)
-
tags/3.0.0/vendor/psr/http-client (added)
-
tags/3.0.0/vendor/psr/http-client/CHANGELOG.md (added)
-
tags/3.0.0/vendor/psr/http-client/LICENSE (added)
-
tags/3.0.0/vendor/psr/http-client/README.md (added)
-
tags/3.0.0/vendor/psr/http-client/composer.json (added)
-
tags/3.0.0/vendor/psr/http-client/src (added)
-
tags/3.0.0/vendor/psr/http-client/src/ClientExceptionInterface.php (added)
-
tags/3.0.0/vendor/psr/http-client/src/ClientInterface.php (added)
-
tags/3.0.0/vendor/psr/http-client/src/NetworkExceptionInterface.php (added)
-
tags/3.0.0/vendor/psr/http-client/src/RequestExceptionInterface.php (added)
-
tags/3.0.0/vendor/psr/http-factory (added)
-
tags/3.0.0/vendor/psr/http-factory/LICENSE (added)
-
tags/3.0.0/vendor/psr/http-factory/README.md (added)
-
tags/3.0.0/vendor/psr/http-factory/composer.json (added)
-
tags/3.0.0/vendor/psr/http-factory/src (added)
-
tags/3.0.0/vendor/psr/http-factory/src/RequestFactoryInterface.php (added)
-
tags/3.0.0/vendor/psr/http-factory/src/ResponseFactoryInterface.php (added)
-
tags/3.0.0/vendor/psr/http-factory/src/ServerRequestFactoryInterface.php (added)
-
tags/3.0.0/vendor/psr/http-factory/src/StreamFactoryInterface.php (added)
-
tags/3.0.0/vendor/psr/http-factory/src/UploadedFileFactoryInterface.php (added)
-
tags/3.0.0/vendor/psr/http-factory/src/UriFactoryInterface.php (added)
-
tags/3.0.0/vendor/psr/http-message (added)
-
tags/3.0.0/vendor/psr/http-message/CHANGELOG.md (added)
-
tags/3.0.0/vendor/psr/http-message/LICENSE (added)
-
tags/3.0.0/vendor/psr/http-message/README.md (added)
-
tags/3.0.0/vendor/psr/http-message/composer.json (added)
-
tags/3.0.0/vendor/psr/http-message/docs (added)
-
tags/3.0.0/vendor/psr/http-message/docs/PSR7-Interfaces.md (added)
-
tags/3.0.0/vendor/psr/http-message/docs/PSR7-Usage.md (added)
-
tags/3.0.0/vendor/psr/http-message/src (added)
-
tags/3.0.0/vendor/psr/http-message/src/MessageInterface.php (added)
-
tags/3.0.0/vendor/psr/http-message/src/RequestInterface.php (added)
-
tags/3.0.0/vendor/psr/http-message/src/ResponseInterface.php (added)
-
tags/3.0.0/vendor/psr/http-message/src/ServerRequestInterface.php (added)
-
tags/3.0.0/vendor/psr/http-message/src/StreamInterface.php (added)
-
tags/3.0.0/vendor/psr/http-message/src/UploadedFileInterface.php (added)
-
tags/3.0.0/vendor/psr/http-message/src/UriInterface.php (added)
-
tags/3.0.0/vendor/ralouphie (added)
-
tags/3.0.0/vendor/ralouphie/getallheaders (added)
-
tags/3.0.0/vendor/ralouphie/getallheaders/LICENSE (added)
-
tags/3.0.0/vendor/ralouphie/getallheaders/README.md (added)
-
tags/3.0.0/vendor/ralouphie/getallheaders/composer.json (added)
-
tags/3.0.0/vendor/ralouphie/getallheaders/src (added)
-
tags/3.0.0/vendor/ralouphie/getallheaders/src/getallheaders.php (added)
-
tags/3.0.0/vendor/symfony (added)
-
tags/3.0.0/vendor/symfony/deprecation-contracts (added)
-
tags/3.0.0/vendor/symfony/deprecation-contracts/.gitignore (added)
-
tags/3.0.0/vendor/symfony/deprecation-contracts/CHANGELOG.md (added)
-
tags/3.0.0/vendor/symfony/deprecation-contracts/LICENSE (added)
-
tags/3.0.0/vendor/symfony/deprecation-contracts/README.md (added)
-
tags/3.0.0/vendor/symfony/deprecation-contracts/composer.json (added)
-
tags/3.0.0/vendor/symfony/deprecation-contracts/function.php (added)
-
trunk/bfx-pay-woocommerce.php (modified) (3 diffs)
-
trunk/composer.json (modified) (1 diff)
-
trunk/composer.lock (modified) (45 diffs)
-
trunk/includes/class-wc-bfx-pay-gateway.php (modified) (12 diffs)
-
trunk/readme.txt (modified) (5 diffs)
-
trunk/vendor/autoload.php (modified) (1 diff)
-
trunk/vendor/composer/ClassLoader.php (modified) (4 diffs)
-
trunk/vendor/composer/InstalledVersions.php (modified) (11 diffs)
-
trunk/vendor/composer/autoload_files.php (modified) (1 diff)
-
trunk/vendor/composer/autoload_real.php (modified) (3 diffs)
-
trunk/vendor/composer/autoload_static.php (modified) (2 diffs)
-
trunk/vendor/composer/installed.json (modified) (21 diffs)
-
trunk/vendor/composer/installed.php (modified) (6 diffs)
-
trunk/vendor/guzzlehttp/guzzle/CHANGELOG.md (modified) (32 diffs)
-
trunk/vendor/guzzlehttp/guzzle/README.md (modified) (1 diff)
-
trunk/vendor/guzzlehttp/guzzle/composer.json (modified) (3 diffs)
-
trunk/vendor/guzzlehttp/guzzle/src/Client.php (modified) (9 diffs)
-
trunk/vendor/guzzlehttp/guzzle/src/Cookie/CookieJar.php (modified) (9 diffs)
-
trunk/vendor/guzzlehttp/guzzle/src/Cookie/CookieJarInterface.php (modified) (1 diff)
-
trunk/vendor/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php (modified) (1 diff)
-
trunk/vendor/guzzlehttp/guzzle/src/Cookie/SetCookie.php (modified) (6 diffs)
-
trunk/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php (modified) (12 diffs)
-
trunk/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php (modified) (1 diff)
-
trunk/vendor/guzzlehttp/guzzle/src/Handler/EasyHandle.php (modified) (1 diff)
-
trunk/vendor/guzzlehttp/guzzle/src/Handler/HeaderProcessor.php (modified) (1 diff)
-
trunk/vendor/guzzlehttp/guzzle/src/Handler/MockHandler.php (modified) (2 diffs)
-
trunk/vendor/guzzlehttp/guzzle/src/Handler/StreamHandler.php (modified) (11 diffs)
-
trunk/vendor/guzzlehttp/guzzle/src/HandlerStack.php (modified) (3 diffs)
-
trunk/vendor/guzzlehttp/guzzle/src/MessageFormatter.php (modified) (5 diffs)
-
trunk/vendor/guzzlehttp/guzzle/src/Middleware.php (modified) (6 diffs)
-
trunk/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php (modified) (1 diff)
-
trunk/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php (modified) (1 diff)
-
trunk/vendor/guzzlehttp/guzzle/src/RequestOptions.php (modified) (2 diffs)
-
trunk/vendor/guzzlehttp/guzzle/src/RetryMiddleware.php (modified) (5 diffs)
-
trunk/vendor/guzzlehttp/guzzle/src/Utils.php (modified) (8 diffs)
-
trunk/vendor/guzzlehttp/guzzle/src/functions.php (modified) (3 diffs)
-
trunk/vendor/guzzlehttp/guzzle/src/functions_include.php (modified) (1 diff)
-
trunk/vendor/guzzlehttp/promises/CHANGELOG.md (modified) (5 diffs)
-
trunk/vendor/guzzlehttp/promises/README.md (modified) (3 diffs)
-
trunk/vendor/guzzlehttp/promises/composer.json (modified) (2 diffs)
-
trunk/vendor/guzzlehttp/promises/src/AggregateException.php (modified) (2 diffs)
-
trunk/vendor/guzzlehttp/promises/src/CancellationException.php (modified) (1 diff)
-
trunk/vendor/guzzlehttp/promises/src/Coroutine.php (modified) (12 diffs)
-
trunk/vendor/guzzlehttp/promises/src/Create.php (modified) (6 diffs)
-
trunk/vendor/guzzlehttp/promises/src/Each.php (modified) (7 diffs)
-
trunk/vendor/guzzlehttp/promises/src/EachPromise.php (modified) (12 diffs)
-
trunk/vendor/guzzlehttp/promises/src/FulfilledPromise.php (modified) (6 diffs)
-
trunk/vendor/guzzlehttp/promises/src/Is.php (modified) (5 diffs)
-
trunk/vendor/guzzlehttp/promises/src/Promise.php (modified) (17 diffs)
-
trunk/vendor/guzzlehttp/promises/src/PromiseInterface.php (modified) (9 diffs)
-
trunk/vendor/guzzlehttp/promises/src/PromisorInterface.php (modified) (2 diffs)
-
trunk/vendor/guzzlehttp/promises/src/RejectedPromise.php (modified) (8 diffs)
-
trunk/vendor/guzzlehttp/promises/src/RejectionException.php (modified) (3 diffs)
-
trunk/vendor/guzzlehttp/promises/src/TaskQueue.php (modified) (5 diffs)
-
trunk/vendor/guzzlehttp/promises/src/TaskQueueInterface.php (modified) (3 diffs)
-
trunk/vendor/guzzlehttp/promises/src/Utils.php (modified) (17 diffs)
-
trunk/vendor/guzzlehttp/promises/src/functions.php (deleted)
-
trunk/vendor/guzzlehttp/promises/src/functions_include.php (deleted)
-
trunk/vendor/guzzlehttp/promises/vendor-bin (added)
-
trunk/vendor/guzzlehttp/promises/vendor-bin/php-cs-fixer (added)
-
trunk/vendor/guzzlehttp/promises/vendor-bin/php-cs-fixer/composer.json (added)
-
trunk/vendor/guzzlehttp/promises/vendor-bin/phpstan (added)
-
trunk/vendor/guzzlehttp/promises/vendor-bin/phpstan/composer.json (added)
-
trunk/vendor/guzzlehttp/promises/vendor-bin/psalm (added)
-
trunk/vendor/guzzlehttp/promises/vendor-bin/psalm/composer.json (added)
-
trunk/vendor/guzzlehttp/psr7/CHANGELOG.md (modified) (1 diff)
-
trunk/vendor/guzzlehttp/psr7/README.md (modified) (2 diffs)
-
trunk/vendor/guzzlehttp/psr7/composer.json (modified) (2 diffs)
-
trunk/vendor/guzzlehttp/psr7/src/LazyOpenStream.php (modified) (3 diffs)
-
trunk/vendor/guzzlehttp/psr7/src/Message.php (modified) (1 diff)
-
trunk/vendor/guzzlehttp/psr7/src/MessageTrait.php (modified) (2 diffs)
-
trunk/vendor/guzzlehttp/psr7/src/ServerRequest.php (modified) (1 diff)
-
trunk/vendor/psr/http-client/README.md (modified) (1 diff)
-
trunk/vendor/psr/http-client/composer.json (modified) (1 diff)
-
trunk/vendor/psr/http-factory/.gitignore (deleted)
-
trunk/vendor/psr/http-factory/.pullapprove.yml (deleted)
-
trunk/vendor/psr/http-factory/README.md (modified) (1 diff)
-
trunk/vendor/psr/http-factory/composer.json (modified) (1 diff)
-
trunk/vendor/psr/http-message/README.md (modified) (1 diff)
-
trunk/vendor/psr/http-message/composer.json (modified) (2 diffs)
-
trunk/vendor/psr/http-message/docs (added)
-
trunk/vendor/psr/http-message/docs/PSR7-Interfaces.md (added)
-
trunk/vendor/psr/http-message/docs/PSR7-Usage.md (added)
-
trunk/vendor/psr/http-message/src/MessageInterface.php (modified) (11 diffs)
-
trunk/vendor/psr/http-message/src/RequestInterface.php (modified) (6 diffs)
-
trunk/vendor/psr/http-message/src/ResponseInterface.php (modified) (3 diffs)
-
trunk/vendor/psr/http-message/src/ServerRequestInterface.php (modified) (12 diffs)
-
trunk/vendor/psr/http-message/src/StreamInterface.php (modified) (14 diffs)
-
trunk/vendor/psr/http-message/src/UploadedFileInterface.php (modified) (6 diffs)
-
trunk/vendor/psr/http-message/src/UriInterface.php (modified) (17 diffs)
Legend:
- Unmodified
- Added
- Removed
-
bitfinex-pay/trunk/bfx-pay-woocommerce.php
r2904091 r2955014 5 5 * Plugin URI: https://github.com/bitfinexcom/bfx-pay-woocommerce/ 6 6 * Description: Allows e-commerce customers to pay for goods and services with crypto currencies. It provides a payment gateway that could be used by any e-commerce to sell their products and services as long as they have an Intermediate-verified (or higher KYC level) Merchant account on the Bitfinex platform. 7 * Version: 2.0.27 * Version: 3.0.0 8 8 * Author: Bitfinex 9 9 * Author URI: https://www.bitfinex.com/ … … 24 24 add_action('woocommerce_after_add_to_cart_form', 'bfx_pay_buy_checkout_on_archive'); 25 25 add_action('template_redirect', 'bfx_pay_addtocart_on_archives_redirect_checkout'); 26 add_action('wp_mail_failed', 'log_mailer_errors', 10, 1);27 26 28 27 add_filter('plugin_action_links_' . plugin_basename(__FILE__), 'bfx_pay_settings_link', 10); … … 31 30 32 31 add_filter('pre_option_woocommerce_currency_pos', 'currency_position'); 32 33 34 // Cron 35 add_filter('cron_schedules', 'bfx_pay_cron_add_fifteen_min'); 36 add_action( 'bfx_pay_cron_hook', 'bfx_pay_cron_exec' ); 37 add_action('wp', 'bfx_pay_add_cron'); 38 39 40 function bfx_pay_cron_add_fifteen_min($schedules) 41 { 42 $schedules['bfx_pay_fifteen_min'] = [ 43 'interval' => 60 * 15, 44 'display' => 'Every 15 minute', 45 ]; 46 47 return $schedules; 48 } 49 50 function bfx_pay_cron_exec() { 51 if (class_exists('WC_Bfx_Pay_Gateway')) { 52 $instance = new WC_Bfx_Pay_Gateway(); 53 $instance->cron_invoice_check(); 54 } 55 } 56 57 function bfx_pay_add_cron() { 58 if ( ! wp_next_scheduled( 'bfx_pay_cron_hook' ) ) { 59 wp_schedule_event( time(), 'bfx_pay_fifteen_min', 'bfx_pay_cron_hook' ); 60 } 61 } 62 33 63 34 64 function currency_position() -
bitfinex-pay/trunk/composer.json
r2867137 r2955014 2 2 "require": { 3 3 "php": ">=7.4", 4 "guzzlehttp/guzzle": "^7. 5"4 "guzzlehttp/guzzle": "^7.7.0" 5 5 }, 6 6 "require-dev": { 7 "friendsofphp/php-cs-fixer": "^3.14" 7 "friendsofphp/php-cs-fixer": "^3.20.0" 8 }, 9 "config": { 10 "platform": { 11 "php": "7.4.0" 12 } 8 13 }, 9 14 "scripts": { -
bitfinex-pay/trunk/composer.lock
r2867137 r2955014 5 5 "This file is @generated automatically" 6 6 ], 7 "content-hash": " f475f23b7b053be0d15c146979ea28f9",7 "content-hash": "59ef0a171b72ad67283a889090f8cd2d", 8 8 "packages": [ 9 9 { 10 10 "name": "guzzlehttp/guzzle", 11 "version": "7. 5.0",11 "version": "7.7.0", 12 12 "source": { 13 13 "type": "git", 14 14 "url": "https://github.com/guzzle/guzzle.git", 15 "reference": " b50a2a1251152e43f6a37f0fa053e730a67d25ba"16 }, 17 "dist": { 18 "type": "zip", 19 "url": "https://api.github.com/repos/guzzle/guzzle/zipball/ b50a2a1251152e43f6a37f0fa053e730a67d25ba",20 "reference": " b50a2a1251152e43f6a37f0fa053e730a67d25ba",15 "reference": "fb7566caccf22d74d1ab270de3551f72a58399f5" 16 }, 17 "dist": { 18 "type": "zip", 19 "url": "https://api.github.com/repos/guzzle/guzzle/zipball/fb7566caccf22d74d1ab270de3551f72a58399f5", 20 "reference": "fb7566caccf22d74d1ab270de3551f72a58399f5", 21 21 "shasum": "" 22 22 }, 23 23 "require": { 24 24 "ext-json": "*", 25 "guzzlehttp/promises": "^1.5 ",26 "guzzlehttp/psr7": "^1.9 || ^2.4",25 "guzzlehttp/promises": "^1.5.3 || ^2.0", 26 "guzzlehttp/psr7": "^1.9.1 || ^2.4.5", 27 27 "php": "^7.2.5 || ^8.0", 28 28 "psr/http-client": "^1.0", … … 35 35 "bamarni/composer-bin-plugin": "^1.8.1", 36 36 "ext-curl": "*", 37 "php-http/client-integration-tests": "^3.0", 37 "php-http/client-integration-tests": "dev-master#2c025848417c1135031fdf9c728ee53d0a7ceaee as 3.0.999", 38 "php-http/message-factory": "^1.1", 38 39 "phpunit/phpunit": "^8.5.29 || ^9.5.23", 39 40 "psr/log": "^1.1 || ^2.0 || ^3.0" … … 49 50 "bin-links": true, 50 51 "forward-command": false 51 },52 "branch-alias": {53 "dev-master": "7.5-dev"54 52 } 55 53 }, … … 117 115 "support": { 118 116 "issues": "https://github.com/guzzle/guzzle/issues", 119 "source": "https://github.com/guzzle/guzzle/tree/7. 5.0"117 "source": "https://github.com/guzzle/guzzle/tree/7.7.0" 120 118 }, 121 119 "funding": [ … … 133 131 } 134 132 ], 135 "time": "202 2-08-28T15:39:27+00:00"133 "time": "2023-05-21T14:04:53+00:00" 136 134 }, 137 135 { 138 136 "name": "guzzlehttp/promises", 139 "version": " 1.5.2",137 "version": "2.0.0", 140 138 "source": { 141 139 "type": "git", 142 140 "url": "https://github.com/guzzle/promises.git", 143 "reference": " b94b2807d85443f9719887892882d0329d1e2598"144 }, 145 "dist": { 146 "type": "zip", 147 "url": "https://api.github.com/repos/guzzle/promises/zipball/ b94b2807d85443f9719887892882d0329d1e2598",148 "reference": " b94b2807d85443f9719887892882d0329d1e2598",149 "shasum": "" 150 }, 151 "require": { 152 "php": " >=5.5"141 "reference": "3a494dc7dc1d7d12e511890177ae2d0e6c107da6" 142 }, 143 "dist": { 144 "type": "zip", 145 "url": "https://api.github.com/repos/guzzle/promises/zipball/3a494dc7dc1d7d12e511890177ae2d0e6c107da6", 146 "reference": "3a494dc7dc1d7d12e511890177ae2d0e6c107da6", 147 "shasum": "" 148 }, 149 "require": { 150 "php": "^7.2.5 || ^8.0" 153 151 }, 154 152 "require-dev": { 155 "symfony/phpunit-bridge": "^4.4 || ^5.1" 153 "bamarni/composer-bin-plugin": "^1.8.1", 154 "phpunit/phpunit": "^8.5.29 || ^9.5.23" 156 155 }, 157 156 "type": "library", 158 157 "extra": { 159 "branch-alias": { 160 "dev-master": "1.5-dev" 161 } 162 }, 163 "autoload": { 164 "files": [ 165 "src/functions_include.php" 166 ], 158 "bamarni-bin": { 159 "bin-links": true, 160 "forward-command": false 161 } 162 }, 163 "autoload": { 167 164 "psr-4": { 168 165 "GuzzleHttp\\Promise\\": "src/" … … 201 198 "support": { 202 199 "issues": "https://github.com/guzzle/promises/issues", 203 "source": "https://github.com/guzzle/promises/tree/ 1.5.2"200 "source": "https://github.com/guzzle/promises/tree/2.0.0" 204 201 }, 205 202 "funding": [ … … 217 214 } 218 215 ], 219 "time": "202 2-08-28T14:55:35+00:00"216 "time": "2023-05-21T13:50:22+00:00" 220 217 }, 221 218 { 222 219 "name": "guzzlehttp/psr7", 223 "version": "2. 4.3",220 "version": "2.5.0", 224 221 "source": { 225 222 "type": "git", 226 223 "url": "https://github.com/guzzle/psr7.git", 227 "reference": " 67c26b443f348a51926030c83481b85718457d3d"228 }, 229 "dist": { 230 "type": "zip", 231 "url": "https://api.github.com/repos/guzzle/psr7/zipball/ 67c26b443f348a51926030c83481b85718457d3d",232 "reference": " 67c26b443f348a51926030c83481b85718457d3d",224 "reference": "b635f279edd83fc275f822a1188157ffea568ff6" 225 }, 226 "dist": { 227 "type": "zip", 228 "url": "https://api.github.com/repos/guzzle/psr7/zipball/b635f279edd83fc275f822a1188157ffea568ff6", 229 "reference": "b635f279edd83fc275f822a1188157ffea568ff6", 233 230 "shasum": "" 234 231 }, … … 236 233 "php": "^7.2.5 || ^8.0", 237 234 "psr/http-factory": "^1.0", 238 "psr/http-message": "^1. 0",235 "psr/http-message": "^1.1 || ^2.0", 239 236 "ralouphie/getallheaders": "^3.0" 240 237 }, … … 256 253 "bin-links": true, 257 254 "forward-command": false 258 },259 "branch-alias": {260 "dev-master": "2.4-dev"261 255 } 262 256 }, … … 320 314 "support": { 321 315 "issues": "https://github.com/guzzle/psr7/issues", 322 "source": "https://github.com/guzzle/psr7/tree/2. 4.3"316 "source": "https://github.com/guzzle/psr7/tree/2.5.0" 323 317 }, 324 318 "funding": [ … … 336 330 } 337 331 ], 338 "time": "202 2-10-26T14:07:24+00:00"332 "time": "2023-04-17T16:11:26+00:00" 339 333 }, 340 334 { 341 335 "name": "psr/http-client", 342 "version": "1.0. 1",336 "version": "1.0.2", 343 337 "source": { 344 338 "type": "git", 345 339 "url": "https://github.com/php-fig/http-client.git", 346 "reference": " 2dfb5f6c5eff0e91e20e913f8c5452ed95b86621"347 }, 348 "dist": { 349 "type": "zip", 350 "url": "https://api.github.com/repos/php-fig/http-client/zipball/ 2dfb5f6c5eff0e91e20e913f8c5452ed95b86621",351 "reference": " 2dfb5f6c5eff0e91e20e913f8c5452ed95b86621",340 "reference": "0955afe48220520692d2d09f7ab7e0f93ffd6a31" 341 }, 342 "dist": { 343 "type": "zip", 344 "url": "https://api.github.com/repos/php-fig/http-client/zipball/0955afe48220520692d2d09f7ab7e0f93ffd6a31", 345 "reference": "0955afe48220520692d2d09f7ab7e0f93ffd6a31", 352 346 "shasum": "" 353 347 }, 354 348 "require": { 355 349 "php": "^7.0 || ^8.0", 356 "psr/http-message": "^1.0 "350 "psr/http-message": "^1.0 || ^2.0" 357 351 }, 358 352 "type": "library", … … 374 368 { 375 369 "name": "PHP-FIG", 376 "homepage": "http ://www.php-fig.org/"370 "homepage": "https://www.php-fig.org/" 377 371 } 378 372 ], … … 386 380 ], 387 381 "support": { 388 "source": "https://github.com/php-fig/http-client/tree/ master"389 }, 390 "time": "202 0-06-29T06:28:15+00:00"382 "source": "https://github.com/php-fig/http-client/tree/1.0.2" 383 }, 384 "time": "2023-04-10T20:12:12+00:00" 391 385 }, 392 386 { 393 387 "name": "psr/http-factory", 394 "version": "1.0. 1",388 "version": "1.0.2", 395 389 "source": { 396 390 "type": "git", 397 391 "url": "https://github.com/php-fig/http-factory.git", 398 "reference": " 12ac7fcd07e5b077433f5f2bee95b3a771bf61be"399 }, 400 "dist": { 401 "type": "zip", 402 "url": "https://api.github.com/repos/php-fig/http-factory/zipball/ 12ac7fcd07e5b077433f5f2bee95b3a771bf61be",403 "reference": " 12ac7fcd07e5b077433f5f2bee95b3a771bf61be",392 "reference": "e616d01114759c4c489f93b099585439f795fe35" 393 }, 394 "dist": { 395 "type": "zip", 396 "url": "https://api.github.com/repos/php-fig/http-factory/zipball/e616d01114759c4c489f93b099585439f795fe35", 397 "reference": "e616d01114759c4c489f93b099585439f795fe35", 404 398 "shasum": "" 405 399 }, 406 400 "require": { 407 401 "php": ">=7.0.0", 408 "psr/http-message": "^1.0 "402 "psr/http-message": "^1.0 || ^2.0" 409 403 }, 410 404 "type": "library", … … 426 420 { 427 421 "name": "PHP-FIG", 428 "homepage": "http ://www.php-fig.org/"422 "homepage": "https://www.php-fig.org/" 429 423 } 430 424 ], … … 441 435 ], 442 436 "support": { 443 "source": "https://github.com/php-fig/http-factory/tree/ master"444 }, 445 "time": "20 19-04-30T12:38:16+00:00"437 "source": "https://github.com/php-fig/http-factory/tree/1.0.2" 438 }, 439 "time": "2023-04-10T20:10:41+00:00" 446 440 }, 447 441 { 448 442 "name": "psr/http-message", 449 "version": " 1.0.1",443 "version": "2.0", 450 444 "source": { 451 445 "type": "git", 452 446 "url": "https://github.com/php-fig/http-message.git", 453 "reference": " f6561bf28d520154e4b0ec72be95418abe6d9363"454 }, 455 "dist": { 456 "type": "zip", 457 "url": "https://api.github.com/repos/php-fig/http-message/zipball/ f6561bf28d520154e4b0ec72be95418abe6d9363",458 "reference": " f6561bf28d520154e4b0ec72be95418abe6d9363",459 "shasum": "" 460 }, 461 "require": { 462 "php": " >=5.3.0"447 "reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71" 448 }, 449 "dist": { 450 "type": "zip", 451 "url": "https://api.github.com/repos/php-fig/http-message/zipball/402d35bcb92c70c026d1a6a9883f06b2ead23d71", 452 "reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71", 453 "shasum": "" 454 }, 455 "require": { 456 "php": "^7.2 || ^8.0" 463 457 }, 464 458 "type": "library", 465 459 "extra": { 466 460 "branch-alias": { 467 "dev-master": " 1.0.x-dev"461 "dev-master": "2.0.x-dev" 468 462 } 469 463 }, … … 480 474 { 481 475 "name": "PHP-FIG", 482 "homepage": "http ://www.php-fig.org/"476 "homepage": "https://www.php-fig.org/" 483 477 } 484 478 ], … … 494 488 ], 495 489 "support": { 496 "source": "https://github.com/php-fig/http-message/tree/ master"497 }, 498 "time": "20 16-08-06T14:39:51+00:00"490 "source": "https://github.com/php-fig/http-message/tree/2.0" 491 }, 492 "time": "2023-04-04T09:54:51+00:00" 499 493 }, 500 494 { … … 907 901 { 908 902 "name": "doctrine/deprecations", 909 "version": "v1. 0.0",903 "version": "v1.1.1", 910 904 "source": { 911 905 "type": "git", 912 906 "url": "https://github.com/doctrine/deprecations.git", 913 "reference": " 0e2a4f1f8cdfc7a92ec3b01c9334898c806b30de"914 }, 915 "dist": { 916 "type": "zip", 917 "url": "https://api.github.com/repos/doctrine/deprecations/zipball/ 0e2a4f1f8cdfc7a92ec3b01c9334898c806b30de",918 "reference": " 0e2a4f1f8cdfc7a92ec3b01c9334898c806b30de",919 "shasum": "" 920 }, 921 "require": { 922 "php": "^7.1 |^8.0"907 "reference": "612a3ee5ab0d5dd97b7cf3874a6efe24325efac3" 908 }, 909 "dist": { 910 "type": "zip", 911 "url": "https://api.github.com/repos/doctrine/deprecations/zipball/612a3ee5ab0d5dd97b7cf3874a6efe24325efac3", 912 "reference": "612a3ee5ab0d5dd97b7cf3874a6efe24325efac3", 913 "shasum": "" 914 }, 915 "require": { 916 "php": "^7.1 || ^8.0" 923 917 }, 924 918 "require-dev": { 925 919 "doctrine/coding-standard": "^9", 926 "phpunit/phpunit": "^7.5|^8.5|^9.5", 927 "psr/log": "^1|^2|^3" 920 "phpstan/phpstan": "1.4.10 || 1.10.15", 921 "phpstan/phpstan-phpunit": "^1.0", 922 "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", 923 "psalm/plugin-phpunit": "0.18.4", 924 "psr/log": "^1 || ^2 || ^3", 925 "vimeo/psalm": "4.30.0 || 5.12.0" 928 926 }, 929 927 "suggest": { … … 944 942 "support": { 945 943 "issues": "https://github.com/doctrine/deprecations/issues", 946 "source": "https://github.com/doctrine/deprecations/tree/v1. 0.0"947 }, 948 "time": "202 2-05-02T15:47:09+00:00"944 "source": "https://github.com/doctrine/deprecations/tree/v1.1.1" 945 }, 946 "time": "2023-06-03T09:27:29+00:00" 949 947 }, 950 948 { … … 1028 1026 { 1029 1027 "name": "friendsofphp/php-cs-fixer", 1030 "version": "v3. 14.4",1028 "version": "v3.20.0", 1031 1029 "source": { 1032 1030 "type": "git", 1033 1031 "url": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer.git", 1034 "reference": " 1b3d9dba63d93b8a202c31e824748218781eae6b"1035 }, 1036 "dist": { 1037 "type": "zip", 1038 "url": "https://api.github.com/repos/PHP-CS-Fixer/PHP-CS-Fixer/zipball/ 1b3d9dba63d93b8a202c31e824748218781eae6b",1039 "reference": " 1b3d9dba63d93b8a202c31e824748218781eae6b",1032 "reference": "0e8249e0b15e2bc022fbbd1090ce29d071481e69" 1033 }, 1034 "dist": { 1035 "type": "zip", 1036 "url": "https://api.github.com/repos/PHP-CS-Fixer/PHP-CS-Fixer/zipball/0e8249e0b15e2bc022fbbd1090ce29d071481e69", 1037 "reference": "0e8249e0b15e2bc022fbbd1090ce29d071481e69", 1040 1038 "shasum": "" 1041 1039 }, … … 1104 1102 ], 1105 1103 "description": "A tool to automatically fix PHP code style", 1104 "keywords": [ 1105 "Static code analysis", 1106 "fixer", 1107 "standards", 1108 "static analysis" 1109 ], 1106 1110 "support": { 1107 1111 "issues": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/issues", 1108 "source": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/tree/v3. 14.4"1112 "source": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/tree/v3.20.0" 1109 1113 }, 1110 1114 "funding": [ … … 1114 1118 } 1115 1119 ], 1116 "time": "2023-0 2-09T21:49:13+00:00"1120 "time": "2023-06-27T20:22:39+00:00" 1117 1121 }, 1118 1122 { … … 1315 1319 { 1316 1320 "name": "sebastian/diff", 1317 "version": "4.0. 4",1321 "version": "4.0.5", 1318 1322 "source": { 1319 1323 "type": "git", 1320 1324 "url": "https://github.com/sebastianbergmann/diff.git", 1321 "reference": " 3461e3fccc7cfdfc2720be910d3bd73c69be590d"1322 }, 1323 "dist": { 1324 "type": "zip", 1325 "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/ 3461e3fccc7cfdfc2720be910d3bd73c69be590d",1326 "reference": " 3461e3fccc7cfdfc2720be910d3bd73c69be590d",1325 "reference": "74be17022044ebaaecfdf0c5cd504fc9cd5a7131" 1326 }, 1327 "dist": { 1328 "type": "zip", 1329 "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/74be17022044ebaaecfdf0c5cd504fc9cd5a7131", 1330 "reference": "74be17022044ebaaecfdf0c5cd504fc9cd5a7131", 1327 1331 "shasum": "" 1328 1332 }, … … 1369 1373 "support": { 1370 1374 "issues": "https://github.com/sebastianbergmann/diff/issues", 1371 "source": "https://github.com/sebastianbergmann/diff/tree/4.0. 4"1375 "source": "https://github.com/sebastianbergmann/diff/tree/4.0.5" 1372 1376 }, 1373 1377 "funding": [ … … 1377 1381 } 1378 1382 ], 1379 "time": "202 0-10-26T13:10:38+00:00"1383 "time": "2023-05-07T05:35:17+00:00" 1380 1384 }, 1381 1385 { 1382 1386 "name": "symfony/console", 1383 "version": "v5.4. 19",1387 "version": "v5.4.24", 1384 1388 "source": { 1385 1389 "type": "git", 1386 1390 "url": "https://github.com/symfony/console.git", 1387 "reference": " dccb8d251a9017d5994c988b034d3e18aaabf740"1388 }, 1389 "dist": { 1390 "type": "zip", 1391 "url": "https://api.github.com/repos/symfony/console/zipball/ dccb8d251a9017d5994c988b034d3e18aaabf740",1392 "reference": " dccb8d251a9017d5994c988b034d3e18aaabf740",1391 "reference": "560fc3ed7a43e6d30ea94a07d77f9a60b8ed0fb8" 1392 }, 1393 "dist": { 1394 "type": "zip", 1395 "url": "https://api.github.com/repos/symfony/console/zipball/560fc3ed7a43e6d30ea94a07d77f9a60b8ed0fb8", 1396 "reference": "560fc3ed7a43e6d30ea94a07d77f9a60b8ed0fb8", 1393 1397 "shasum": "" 1394 1398 }, … … 1455 1459 "keywords": [ 1456 1460 "cli", 1457 "command line",1461 "command-line", 1458 1462 "console", 1459 1463 "terminal" 1460 1464 ], 1461 1465 "support": { 1462 "source": "https://github.com/symfony/console/tree/v5.4. 19"1466 "source": "https://github.com/symfony/console/tree/v5.4.24" 1463 1467 }, 1464 1468 "funding": [ … … 1476 1480 } 1477 1481 ], 1478 "time": "2023-0 1-01T08:32:19+00:00"1482 "time": "2023-05-26T05:13:16+00:00" 1479 1483 }, 1480 1484 { 1481 1485 "name": "symfony/event-dispatcher", 1482 "version": "v5.4. 19",1486 "version": "v5.4.22", 1483 1487 "source": { 1484 1488 "type": "git", 1485 1489 "url": "https://github.com/symfony/event-dispatcher.git", 1486 "reference": " abf49cc084c087d94b4cb939c3f3672971784e0c"1487 }, 1488 "dist": { 1489 "type": "zip", 1490 "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/ abf49cc084c087d94b4cb939c3f3672971784e0c",1491 "reference": " abf49cc084c087d94b4cb939c3f3672971784e0c",1490 "reference": "1df20e45d56da29a4b1d8259dd6e950acbf1b13f" 1491 }, 1492 "dist": { 1493 "type": "zip", 1494 "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/1df20e45d56da29a4b1d8259dd6e950acbf1b13f", 1495 "reference": "1df20e45d56da29a4b1d8259dd6e950acbf1b13f", 1492 1496 "shasum": "" 1493 1497 }, … … 1545 1549 "homepage": "https://symfony.com", 1546 1550 "support": { 1547 "source": "https://github.com/symfony/event-dispatcher/tree/v5.4. 19"1551 "source": "https://github.com/symfony/event-dispatcher/tree/v5.4.22" 1548 1552 }, 1549 1553 "funding": [ … … 1561 1565 } 1562 1566 ], 1563 "time": "2023-0 1-01T08:32:19+00:00"1567 "time": "2023-03-17T11:31:58+00:00" 1564 1568 }, 1565 1569 { … … 1644 1648 { 1645 1649 "name": "symfony/filesystem", 1646 "version": "v5.4. 19",1650 "version": "v5.4.25", 1647 1651 "source": { 1648 1652 "type": "git", 1649 1653 "url": "https://github.com/symfony/filesystem.git", 1650 "reference": " 648bfaca6a494f3e22378123bcee2894045dc9d8"1651 }, 1652 "dist": { 1653 "type": "zip", 1654 "url": "https://api.github.com/repos/symfony/filesystem/zipball/ 648bfaca6a494f3e22378123bcee2894045dc9d8",1655 "reference": " 648bfaca6a494f3e22378123bcee2894045dc9d8",1654 "reference": "0ce3a62c9579a53358d3a7eb6b3dfb79789a6364" 1655 }, 1656 "dist": { 1657 "type": "zip", 1658 "url": "https://api.github.com/repos/symfony/filesystem/zipball/0ce3a62c9579a53358d3a7eb6b3dfb79789a6364", 1659 "reference": "0ce3a62c9579a53358d3a7eb6b3dfb79789a6364", 1656 1660 "shasum": "" 1657 1661 }, … … 1688 1692 "homepage": "https://symfony.com", 1689 1693 "support": { 1690 "source": "https://github.com/symfony/filesystem/tree/v5.4. 19"1694 "source": "https://github.com/symfony/filesystem/tree/v5.4.25" 1691 1695 }, 1692 1696 "funding": [ … … 1704 1708 } 1705 1709 ], 1706 "time": "2023-0 1-14T19:14:44+00:00"1710 "time": "2023-05-31T13:04:02+00:00" 1707 1711 }, 1708 1712 { 1709 1713 "name": "symfony/finder", 1710 "version": "v5.4. 19",1714 "version": "v5.4.21", 1711 1715 "source": { 1712 1716 "type": "git", 1713 1717 "url": "https://github.com/symfony/finder.git", 1714 "reference": " 6071aebf810ad13fe8200c224f36103abb37cf1f"1715 }, 1716 "dist": { 1717 "type": "zip", 1718 "url": "https://api.github.com/repos/symfony/finder/zipball/ 6071aebf810ad13fe8200c224f36103abb37cf1f",1719 "reference": " 6071aebf810ad13fe8200c224f36103abb37cf1f",1718 "reference": "078e9a5e1871fcfe6a5ce421b539344c21afef19" 1719 }, 1720 "dist": { 1721 "type": "zip", 1722 "url": "https://api.github.com/repos/symfony/finder/zipball/078e9a5e1871fcfe6a5ce421b539344c21afef19", 1723 "reference": "078e9a5e1871fcfe6a5ce421b539344c21afef19", 1720 1724 "shasum": "" 1721 1725 }, … … 1751 1755 "homepage": "https://symfony.com", 1752 1756 "support": { 1753 "source": "https://github.com/symfony/finder/tree/v5.4. 19"1757 "source": "https://github.com/symfony/finder/tree/v5.4.21" 1754 1758 }, 1755 1759 "funding": [ … … 1767 1771 } 1768 1772 ], 1769 "time": "2023-0 1-14T19:14:44+00:00"1773 "time": "2023-02-16T09:33:00+00:00" 1770 1774 }, 1771 1775 { 1772 1776 "name": "symfony/options-resolver", 1773 "version": "v5.4. 19",1777 "version": "v5.4.21", 1774 1778 "source": { 1775 1779 "type": "git", 1776 1780 "url": "https://github.com/symfony/options-resolver.git", 1777 "reference": " b03c99236445492f20c61666e8f7e5d388b078e5"1778 }, 1779 "dist": { 1780 "type": "zip", 1781 "url": "https://api.github.com/repos/symfony/options-resolver/zipball/ b03c99236445492f20c61666e8f7e5d388b078e5",1782 "reference": " b03c99236445492f20c61666e8f7e5d388b078e5",1781 "reference": "4fe5cf6ede71096839f0e4b4444d65dd3a7c1eb9" 1782 }, 1783 "dist": { 1784 "type": "zip", 1785 "url": "https://api.github.com/repos/symfony/options-resolver/zipball/4fe5cf6ede71096839f0e4b4444d65dd3a7c1eb9", 1786 "reference": "4fe5cf6ede71096839f0e4b4444d65dd3a7c1eb9", 1783 1787 "shasum": "" 1784 1788 }, … … 1820 1824 ], 1821 1825 "support": { 1822 "source": "https://github.com/symfony/options-resolver/tree/v5.4. 19"1826 "source": "https://github.com/symfony/options-resolver/tree/v5.4.21" 1823 1827 }, 1824 1828 "funding": [ … … 1836 1840 } 1837 1841 ], 1838 "time": "2023-0 1-01T08:32:19+00:00"1842 "time": "2023-02-14T08:03:56+00:00" 1839 1843 }, 1840 1844 { … … 2411 2415 { 2412 2416 "name": "symfony/process", 2413 "version": "v5.4. 19",2417 "version": "v5.4.24", 2414 2418 "source": { 2415 2419 "type": "git", 2416 2420 "url": "https://github.com/symfony/process.git", 2417 "reference": " c5ba874c9b636dbccf761e22ce750e88ec3f55e1"2418 }, 2419 "dist": { 2420 "type": "zip", 2421 "url": "https://api.github.com/repos/symfony/process/zipball/ c5ba874c9b636dbccf761e22ce750e88ec3f55e1",2422 "reference": " c5ba874c9b636dbccf761e22ce750e88ec3f55e1",2421 "reference": "e3c46cc5689c8782944274bb30702106ecbe3b64" 2422 }, 2423 "dist": { 2424 "type": "zip", 2425 "url": "https://api.github.com/repos/symfony/process/zipball/e3c46cc5689c8782944274bb30702106ecbe3b64", 2426 "reference": "e3c46cc5689c8782944274bb30702106ecbe3b64", 2423 2427 "shasum": "" 2424 2428 }, … … 2453 2457 "homepage": "https://symfony.com", 2454 2458 "support": { 2455 "source": "https://github.com/symfony/process/tree/v5.4. 19"2459 "source": "https://github.com/symfony/process/tree/v5.4.24" 2456 2460 }, 2457 2461 "funding": [ … … 2469 2473 } 2470 2474 ], 2471 "time": "2023-0 1-01T08:32:19+00:00"2475 "time": "2023-05-17T11:26:05+00:00" 2472 2476 }, 2473 2477 { … … 2556 2560 { 2557 2561 "name": "symfony/stopwatch", 2558 "version": "v5.4. 19",2562 "version": "v5.4.21", 2559 2563 "source": { 2560 2564 "type": "git", 2561 2565 "url": "https://github.com/symfony/stopwatch.git", 2562 "reference": " bd2b066090fd6a67039371098fa25a84cb2679ec"2563 }, 2564 "dist": { 2565 "type": "zip", 2566 "url": "https://api.github.com/repos/symfony/stopwatch/zipball/ bd2b066090fd6a67039371098fa25a84cb2679ec",2567 "reference": " bd2b066090fd6a67039371098fa25a84cb2679ec",2566 "reference": "f83692cd869a6f2391691d40a01e8acb89e76fee" 2567 }, 2568 "dist": { 2569 "type": "zip", 2570 "url": "https://api.github.com/repos/symfony/stopwatch/zipball/f83692cd869a6f2391691d40a01e8acb89e76fee", 2571 "reference": "f83692cd869a6f2391691d40a01e8acb89e76fee", 2568 2572 "shasum": "" 2569 2573 }, … … 2598 2602 "homepage": "https://symfony.com", 2599 2603 "support": { 2600 "source": "https://github.com/symfony/stopwatch/tree/v5.4. 19"2604 "source": "https://github.com/symfony/stopwatch/tree/v5.4.21" 2601 2605 }, 2602 2606 "funding": [ … … 2614 2618 } 2615 2619 ], 2616 "time": "2023-0 1-01T08:32:19+00:00"2620 "time": "2023-02-14T08:03:56+00:00" 2617 2621 }, 2618 2622 { 2619 2623 "name": "symfony/string", 2620 "version": "v5.4. 19",2624 "version": "v5.4.22", 2621 2625 "source": { 2622 2626 "type": "git", 2623 2627 "url": "https://github.com/symfony/string.git", 2624 "reference": " 0a01071610fd861cc160dfb7e2682ceec66064cb"2625 }, 2626 "dist": { 2627 "type": "zip", 2628 "url": "https://api.github.com/repos/symfony/string/zipball/ 0a01071610fd861cc160dfb7e2682ceec66064cb",2629 "reference": " 0a01071610fd861cc160dfb7e2682ceec66064cb",2628 "reference": "8036a4c76c0dd29e60b6a7cafcacc50cf088ea62" 2629 }, 2630 "dist": { 2631 "type": "zip", 2632 "url": "https://api.github.com/repos/symfony/string/zipball/8036a4c76c0dd29e60b6a7cafcacc50cf088ea62", 2633 "reference": "8036a4c76c0dd29e60b6a7cafcacc50cf088ea62", 2630 2634 "shasum": "" 2631 2635 }, … … 2684 2688 ], 2685 2689 "support": { 2686 "source": "https://github.com/symfony/string/tree/v5.4. 19"2690 "source": "https://github.com/symfony/string/tree/v5.4.22" 2687 2691 }, 2688 2692 "funding": [ … … 2700 2704 } 2701 2705 ], 2702 "time": "2023-0 1-01T08:32:19+00:00"2706 "time": "2023-03-14T06:11:53+00:00" 2703 2707 } 2704 2708 ], … … 2712 2716 }, 2713 2717 "platform-dev": [], 2718 "platform-overrides": { 2719 "php": "7.4.0" 2720 }, 2714 2721 "plugin-api-version": "2.3.0" 2715 2722 } -
bitfinex-pay/trunk/includes/class-wc-bfx-pay-gateway.php
r2904091 r2955014 11 11 * @extends WC_Payment_Gateway 12 12 * 13 * @version 2.0.213 * @version 3.0.0 14 14 */ 15 15 class WC_Bfx_Pay_Gateway extends WC_Payment_Gateway … … 75 75 $this->icon = ('Light' === $this->buttonType) ? apply_filters('woocommerce_bfx_icon', plugins_url('../assets/img/bfx-pay-white.svg', __FILE__)) : apply_filters('woocommerce_bfx_icon', plugins_url('../assets/img/bfx-pay-dark.svg', __FILE__)); 76 76 add_action('woocommerce_update_options_payment_gateways_'.$this->id, [$this, 'process_admin_options']); 77 add_filter('woocommerce_payment_complete_order_status', [$this, 'change_payment_complete_order_status'], 10, 3);78 77 // Customer Emails. 79 78 add_action('woocommerce_email_order_details', [$this, 'remove_order_details'], 1, 4); … … 81 80 add_action('woocommerce_api_bitfinex', [$this, 'webhook']); 82 81 83 // Cron84 add_filter('cron_schedules', [$this, 'cron_add_fifteen_min']);85 82 add_filter('woocommerce_add_error', [$this, 'woocommerce_add_error']); 86 add_action('wp', [$this, 'bitfinex_cron_activation']);87 add_action('bitfinex_fifteen_min_event', [$this, 'cron_invoice_check']);88 83 89 84 $baseUrl = $this->baseApiUrl; … … 126 121 127 122 /** 128 * Cron.129 */130 public function cron_add_fifteen_min($schedules)131 {132 $schedules['fifteen_min'] = [133 'interval' => 60 * 15,134 'display' => 'Bitfinex cron',135 ];136 137 return $schedules;138 }139 140 public function bitfinex_cron_activation()141 {142 if (!wp_next_scheduled('bitfinex_fifteen_min_event')) {143 wp_schedule_event(time(), 'fifteen_min', 'bitfinex_fifteen_min_event');144 }145 }146 147 /**148 123 * Setup general properties for the gateway. 149 124 */ … … 155 130 $this->method_description = __('Bitfinex Payment', 'bitfinex-pay'); 156 131 $this->has_fields = true; 132 } 133 /** 134 * General function to update order status 135 * 136 * @param object $order WC Order 137 * @param string $payment_status Status of the payment 138 * 139 * @return bool true if known status, false for unknown status 140 */ 141 protected function update_order_status($order, $payment_status) 142 { 143 if ('COMPLETED' === $payment_status) { 144 ob_start(); 145 $order->payment_complete(); 146 ob_clean(); 147 return true; 148 } 149 150 if ('PENDING' === $payment_status) { 151 $order->update_status('on-hold'); 152 return true; 153 } 154 155 if ('EXPIRED' === $payment_status) { 156 $order->update_status('failed'); 157 return true; 158 } 159 160 return false; 161 } 162 163 protected function bfx_request($path, $body) { 164 $apiKey = $this->apiKey; 165 $apiSecret = $this->apiSecret; 166 $nonce = (string) (time() * 1000 * 1000); // epoch in ms * 1000 167 $bodyJsonin = json_encode($body, JSON_UNESCAPED_SLASHES); 168 $signaturein = "/api/{$path}{$nonce}{$bodyJsonin}"; 169 $sigin = hash_hmac('sha384', $signaturein, $apiSecret); 170 $headersin = [ 171 'Content-Type' => 'application/json', 172 'Accept' => 'application/json', 173 'bfx-nonce' => $nonce, 174 'bfx-apikey' => $apiKey, 175 'bfx-signature' => $sigin, 176 ]; 177 $rin = $this->client->post($path, [ 178 'headers' => $headersin, 179 'body' => $bodyJsonin, 180 ]); 181 $responsein = $rin->getBody()->getContents(); 182 return $responsein; 183 } 184 185 protected function get_bfx_invoices($start, $end) 186 { 187 $apiPathin = 'v2/auth/r/ext/pay/invoices'; 188 $bodyin = [ 189 'start' => $start, 190 'end' => $end, 191 'limit' => 100, 192 ]; 193 194 return $this->bfx_request($apiPathin, $bodyin); 195 } 196 197 protected function get_bfx_invoice($id) 198 { 199 $apiPathin = 'v2/auth/r/ext/pay/invoices'; 200 $body = [ 201 'id' => $id 202 ]; 203 $response = $this->bfx_request($apiPathin, $body); 204 $data = json_decode($response, true); 205 return $data[0]; 157 206 } 158 207 … … 338 387 throw new Exception(sprintf('This payment method is currently unavailable. Try again later or choose another one')); 339 388 } 340 $apiKey = $this->apiKey;341 $apiSecret = $this->apiSecret;342 389 $url = $this->get_return_url($order); 343 390 $hook = get_site_url().'?wc-api=bitfinex'; … … 347 394 $duration = $this->get_option('duration'); 348 395 $apiPath = 'v2/auth/w/ext/pay/invoice/create'; 349 $nonce = (string) (time() * 1000 * 1000); // epoch in ms * 1000 396 350 397 $body = [ 351 398 'amount' => $totalSum, … … 368 415 ]; 369 416 370 $bodyJson = json_encode($body, JSON_UNESCAPED_SLASHES);371 $signature = "/api/{$apiPath}{$nonce}{$bodyJson}";372 373 $sig = hash_hmac('sha384', $signature, $apiSecret);374 375 $headers = [376 'Content-Type' => 'application/json',377 'Accept' => 'application/json',378 'bfx-nonce' => $nonce,379 'bfx-apikey' => $apiKey,380 'bfx-signature' => $sig,381 ];382 383 417 try { 384 $r = $this->client->post($apiPath, [ 385 'headers' => $headers, 386 'body' => $bodyJson, 387 ]); 388 $response = $r->getBody()->getContents(); 418 $response = $this->bfx_request($apiPath, $body); 389 419 if ($this->debug) { 390 420 $logger = wc_get_logger(); … … 434 464 public function cron_invoice_check() 435 465 { 436 $apiPathin = 'v2/auth/r/ext/pay/invoices';437 $apiKey = $this->apiKey;438 $apiSecret = $this->apiSecret;439 $nonce = (string) (time() * 1000 * 1000); // epoch in ms * 1000466 if ($this->debug) { 467 $logger = wc_get_logger(); 468 $logger->info('BEGIN CRON INVOICE CHECK', ['source' => 'bitfinex-pay']); 469 } 440 470 $now = round(microtime(true) * 1000); 441 471 $end = $now; 442 472 while ($end > $now - (60 * 60000) * 25) { 443 473 $start = $end - (60 * 60000) * 2; 444 $bodyin = [ 445 'start' => $start, 446 'end' => $end, 447 'limit' => 100, 448 ]; 449 $bodyJsonin = json_encode($bodyin, JSON_UNESCAPED_SLASHES); 450 $signaturein = "/api/{$apiPathin}{$nonce}{$bodyJsonin}"; 451 $sigin = hash_hmac('sha384', $signaturein, $apiSecret); 452 $headersin = [ 453 'Content-Type' => 'application/json', 454 'Accept' => 'application/json', 455 'bfx-nonce' => $nonce, 456 'bfx-apikey' => $apiKey, 457 'bfx-signature' => $sigin, 458 ]; 474 459 475 try { 460 $rin = $this->client->post($apiPathin, [ 461 'headers' => $headersin, 462 'body' => $bodyJsonin, 463 ]); 464 $responsein = $rin->getBody()->getContents(); 476 $responsein = $this->get_bfx_invoices($start, $end); 465 477 if ($this->debug) { 466 wc_add_notice($responsein, 'notice');467 478 $logger = wc_get_logger(); 468 479 $logger->info('CRON READ INVOICE CALL >> '.wc_print_r($responsein, true), ['source' => 'bitfinex-pay']); … … 475 486 } 476 487 if ('on-hold' === $order->get_status()) { 477 if ('COMPLETED' === $invoice->status) { 478 $order->payment_complete(); 479 } elseif ('PENDING' === $invoice->status) { 480 $order->update_status('on-hold'); 481 } else { 482 $order->update_status('failed'); 483 } 488 $this->update_order_status($order, $invoice->status); 484 489 } 485 490 } … … 502 507 $data = json_decode($payload, true); 503 508 $order = wc_get_order($data['orderId']); 504 if ('COMPLETED' !== $data['status']) { 505 $order->update_status('failed'); 506 507 return; 508 } 509 ob_start(); 510 511 $order->payment_complete(); 509 510 if (!$order) { 511 exit(); 512 } 512 513 513 514 if ($this->debug) { 514 update_option('webhook_debug', $payload);515 515 $logger = wc_get_logger(); 516 516 $logger->info('WEBHOOK CALL >> '.wc_print_r($payload, true), ['source' => 'bitfinex-pay']); 517 517 } 518 ob_clean(); 519 status_header(200); 520 echo 'true'; 518 519 $invoice_id = get_post_meta($order->id, 'bitfinex_invoice_id', true); 520 $invoice_data = $this->get_bfx_invoice($invoice_id); 521 522 if ($this->debug) { 523 $logger = wc_get_logger(); 524 $logger->info('WEBHOOK INVOICE DATA >> '.wc_print_r($invoice_data, true), ['source' => 'bitfinex-pay']); 525 } 526 527 $is_success = $this->update_order_status($order, $invoice_data['status']); 528 529 if ($is_success) { 530 status_header(200); 531 echo 'true'; 532 } 533 521 534 exit(); 522 }523 524 /**525 * Change payment complete order status to completed for Вitfinex payments method orders.526 *527 * @param string $status current order status528 * @param int $order_id order ID529 * @param WC_Order|false $order order object530 *531 * @return string532 */533 public function change_payment_complete_order_status($status, $order_id = 0, $order = false)534 {535 if ($order && 'bfx_payment' === $order->get_payment_method()) {536 $status = 'completed';537 }538 539 return $status;540 535 } 541 536 … … 555 550 { 556 551 $order->read_meta_data(true); 557 $metadata = $order->get_meta_data(); 558 $invoiceId = null; 559 foreach ($metadata as &$entry) { 560 $data = $entry->get_data(); 561 562 if ($data['key'] === 'bitfinex_invoice_id') { 563 $invoiceId = $data['value']; 564 } 565 } 552 $invoiceId = get_post_meta($order->id, 'bitfinex_invoice_id', true); 553 566 554 if (!$invoiceId) { 567 555 return; 568 556 } 569 557 570 $body = [ 571 'id' => $invoiceId 572 ]; 573 $bodyJson = json_encode($body, JSON_UNESCAPED_SLASHES); 574 575 $headers = [ 576 'Content-Type' => 'application/json', 577 'Accept' => 'application/json', 578 ]; 579 $r = $this->client->post('v2/ext/pay/invoice', [ 580 'headers' => $headers, 581 'body' => $bodyJson, 582 ]); 583 $response = $r->getBody()->getContents(); 584 $data = json_decode($response, true); 558 $data = $this->get_bfx_invoice($invoiceId); 585 559 586 560 $payment = null; -
bitfinex-pay/trunk/readme.txt
r2904091 r2955014 5 5 Tested up to: 6.1.1 6 6 Requires PHP: 7.4 7 Stable tag: 2.0.27 Stable tag: 3.0.0 8 8 License: GPLv3 9 9 License URI: https://github.com/bitfinexcom/bfx-pay-woocommerce/blob/main/LICENSE … … 28 28 - **No additional processing fees** - Bitfinex Pay services come with no additional processing or hidden fees. Check out Bitfinex Pay terms for incurring transaction fees on the network that merchants should be aware of. 29 29 - **Swift process** - Upon successful transactions, you will generally receive the payment in your wallet within minutes. 30 - **Very intuitive** - Bitfinex Pay’s interface is very intuitive, making it easy to navigate by all kinds of customers. 31 - **Backed with Bitfinex’s technology & reputation** - As one of the pioneers in the industry, Bitfinex has an impeccable track record of providing services to our users and the crypto community at large. 30 - **Very intuitive** - Bitfinex Pay’s interface is very intuitive, making it easy to navigate by all kinds of customers. 31 - **Backed with Bitfinex’s technology & reputation** - As one of the pioneers in the industry, Bitfinex has an impeccable track record of providing services to our users and the crypto community at large. 32 32 33 33 … … 42 42 - Your customers click the Bitfinex Pay button on your product page when checking out. 43 43 - Upon clicking, they will be directed to the Bitfinex payment gateway page. (This page contains your customers’ order details.) 44 - The countdown shows the remaining amount of time to complete the payment. 44 - The countdown shows the remaining amount of time to complete the payment. 45 45 - Your customers will be redirected back to your website upon successful payment. 46 46 … … 74 74 - Expired: An invoice payment time has expired, meaning that the funds were not deposited in the required countdown period provided. 75 75 76 = Why my order status is set to completed/processing after payment completed? = 77 This is a standard behaviour from WooCommerce. 78 Most of the time payment completed should mark an order as 'processing' so that admin can process/post the items. If the cart contains only downloadable items then the order is 'completed' since the admin needs to take no action. 79 Additional information can be found in https://woocommerce.wp-a2z.org/oik_api/wc_orderpayment_complete/ 80 76 81 = What are the invoice limitation amounts? = 77 82 … … 86 91 87 92 == Changelog == 93 = 3.0.0 = 94 * Adjusted payment completion to follow default behaviour of woocommerce 95 * Fixed issue with cron schedule 96 * Updated dependencies with security issues 97 * Added safety check for invoice status on webhook calls 98 88 99 = 2.0.2 = 89 100 * Fixed issue with loading debug flag before initialising form fields -
bitfinex-pay/trunk/vendor/autoload.php
r2904091 r2955014 3 3 // autoload.php @generated by Composer 4 4 5 if (PHP_VERSION_ID < 50600) { 6 if (!headers_sent()) { 7 header('HTTP/1.1 500 Internal Server Error'); 8 } 9 $err = 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL; 10 if (!ini_get('display_errors')) { 11 if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') { 12 fwrite(STDERR, $err); 13 } elseif (!headers_sent()) { 14 echo $err; 15 } 16 } 17 trigger_error( 18 $err, 19 E_USER_ERROR 20 ); 21 } 22 5 23 require_once __DIR__ . '/composer/autoload_real.php'; 6 24 7 return ComposerAutoloaderInit 670d59c1e8b39bbe6a8a38fe1b1f611a::getLoader();25 return ComposerAutoloaderInit5b6802600d5981fe38be608127331a9f::getLoader(); -
bitfinex-pay/trunk/vendor/composer/ClassLoader.php
r2706025 r2955014 43 43 class ClassLoader 44 44 { 45 /** @var \Closure(string):void */ 46 private static $includeFile; 47 45 48 /** @var ?string */ 46 49 private $vendorDir; … … 107 110 { 108 111 $this->vendorDir = $vendorDir; 112 self::initializeIncludeClosure(); 109 113 } 110 114 … … 426 430 { 427 431 if ($file = $this->findFile($class)) { 428 includeFile($file); 432 $includeFile = self::$includeFile; 433 $includeFile($file); 429 434 430 435 return true; … … 556 561 return false; 557 562 } 563 564 /** 565 * @return void 566 */ 567 private static function initializeIncludeClosure() 568 { 569 if (self::$includeFile !== null) { 570 return; 571 } 572 573 /** 574 * Scope isolated include. 575 * 576 * Prevents access to $this/self from included files. 577 * 578 * @param string $file 579 * @return void 580 */ 581 self::$includeFile = \Closure::bind(static function($file) { 582 include $file; 583 }, null, null); 584 } 558 585 } 559 560 /**561 * Scope isolated include.562 *563 * Prevents access to $this/self from included files.564 *565 * @param string $file566 * @return void567 * @private568 */569 function includeFile($file)570 {571 include $file;572 } -
bitfinex-pay/trunk/vendor/composer/InstalledVersions.php
r2706025 r2955014 29 29 /** 30 30 * @var mixed[]|null 31 * @psalm-var array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}|array{}|null31 * @psalm-var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}|array{}|null 32 32 */ 33 33 private static $installed; … … 40 40 /** 41 41 * @var array[] 42 * @psalm-var array<string, array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}>42 * @psalm-var array<string, array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}> 43 43 */ 44 44 private static $installedByVendor = array(); … … 99 99 foreach (self::getInstalled() as $installed) { 100 100 if (isset($installed['versions'][$packageName])) { 101 return $includeDevRequirements || empty($installed['versions'][$packageName]['dev_requirement']);101 return $includeDevRequirements || !isset($installed['versions'][$packageName]['dev_requirement']) || $installed['versions'][$packageName]['dev_requirement'] === false; 102 102 } 103 103 } … … 120 120 public static function satisfies(VersionParser $parser, $packageName, $constraint) 121 121 { 122 $constraint = $parser->parseConstraints( $constraint);122 $constraint = $parser->parseConstraints((string) $constraint); 123 123 $provided = $parser->parseConstraints(self::getVersionRanges($packageName)); 124 124 … … 244 244 /** 245 245 * @return array 246 * @psalm-return array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}246 * @psalm-return array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool} 247 247 */ 248 248 public static function getRootPackage() … … 258 258 * @deprecated Use getAllRawData() instead which returns all datasets for all autoloaders present in the process. getRawData only returns the first dataset loaded, which may not be what you expect. 259 259 * @return array[] 260 * @psalm-return array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}260 * @psalm-return array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} 261 261 */ 262 262 public static function getRawData() … … 281 281 * 282 282 * @return array[] 283 * @psalm-return list<array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}>283 * @psalm-return list<array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}> 284 284 */ 285 285 public static function getAllRawData() … … 304 304 * @return void 305 305 * 306 * @psalm-param array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>} $data306 * @psalm-param array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $data 307 307 */ 308 308 public static function reload($data) … … 314 314 /** 315 315 * @return array[] 316 * @psalm-return list<array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}>316 * @psalm-return list<array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}> 317 317 */ 318 318 private static function getInstalled() … … 329 329 $installed[] = self::$installedByVendor[$vendorDir]; 330 330 } elseif (is_file($vendorDir.'/composer/installed.php')) { 331 $installed[] = self::$installedByVendor[$vendorDir] = require $vendorDir.'/composer/installed.php'; 331 /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */ 332 $required = require $vendorDir.'/composer/installed.php'; 333 $installed[] = self::$installedByVendor[$vendorDir] = $required; 332 334 if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) { 333 335 self::$installed = $installed[count($installed) - 1]; … … 341 343 // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937 342 344 if (substr(__DIR__, -8, 1) !== 'C') { 343 self::$installed = require __DIR__ . '/installed.php'; 345 /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */ 346 $required = require __DIR__ . '/installed.php'; 347 self::$installed = $required; 344 348 } else { 345 349 self::$installed = array(); 346 350 } 347 351 } 348 $installed[] = self::$installed; 352 353 if (self::$installed !== array()) { 354 $installed[] = self::$installed; 355 } 349 356 350 357 return $installed; -
bitfinex-pay/trunk/vendor/composer/autoload_files.php
r2866500 r2955014 8 8 return array( 9 9 '7b11c4dc42b3b3023073cb14e519683c' => $vendorDir . '/ralouphie/getallheaders/src/getallheaders.php', 10 'c964ee0ededf28c96ebd9db5099ef910' => $vendorDir . '/guzzlehttp/promises/src/functions_include.php',11 10 '6e3fae29631ef280660b3cdad06f25a8' => $vendorDir . '/symfony/deprecation-contracts/function.php', 12 11 '37a3dc5111fe8f707ab4c132ef1dbc62' => $vendorDir . '/guzzlehttp/guzzle/src/functions_include.php', -
bitfinex-pay/trunk/vendor/composer/autoload_real.php
r2904091 r2955014 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 670d59c1e8b39bbe6a8a38fe1b1f611a5 class ComposerAutoloaderInit5b6802600d5981fe38be608127331a9f 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit 670d59c1e8b39bbe6a8a38fe1b1f611a', 'loadClassLoader'), true, true);27 spl_autoload_register(array('ComposerAutoloaderInit5b6802600d5981fe38be608127331a9f', 'loadClassLoader'), true, true); 28 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 29 spl_autoload_unregister(array('ComposerAutoloaderInit 670d59c1e8b39bbe6a8a38fe1b1f611a', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderInit5b6802600d5981fe38be608127331a9f', 'loadClassLoader')); 30 30 31 31 require __DIR__ . '/autoload_static.php'; 32 \Composer\Autoload\ComposerStaticInit670d59c1e8b39bbe6a8a38fe1b1f611a::getInitializer($loader)();32 call_user_func(\Composer\Autoload\ComposerStaticInit5b6802600d5981fe38be608127331a9f::getInitializer($loader)); 33 33 34 34 $loader->register(true); 35 35 36 $includeFiles = \Composer\Autoload\ComposerStaticInit670d59c1e8b39bbe6a8a38fe1b1f611a::$files; 37 foreach ($includeFiles as $fileIdentifier => $file) { 38 composerRequire670d59c1e8b39bbe6a8a38fe1b1f611a($fileIdentifier, $file); 36 $filesToLoad = \Composer\Autoload\ComposerStaticInit5b6802600d5981fe38be608127331a9f::$files; 37 $requireFile = \Closure::bind(static function ($fileIdentifier, $file) { 38 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { 39 $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true; 40 41 require $file; 42 } 43 }, null, null); 44 foreach ($filesToLoad as $fileIdentifier => $file) { 45 $requireFile($fileIdentifier, $file); 39 46 } 40 47 … … 42 49 } 43 50 } 44 45 /**46 * @param string $fileIdentifier47 * @param string $file48 * @return void49 */50 function composerRequire670d59c1e8b39bbe6a8a38fe1b1f611a($fileIdentifier, $file)51 {52 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {53 $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;54 55 require $file;56 }57 } -
bitfinex-pay/trunk/vendor/composer/autoload_static.php
r2904091 r2955014 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 670d59c1e8b39bbe6a8a38fe1b1f611a7 class ComposerStaticInit5b6802600d5981fe38be608127331a9f 8 8 { 9 9 public static $files = array ( 10 10 '7b11c4dc42b3b3023073cb14e519683c' => __DIR__ . '/..' . '/ralouphie/getallheaders/src/getallheaders.php', 11 'c964ee0ededf28c96ebd9db5099ef910' => __DIR__ . '/..' . '/guzzlehttp/promises/src/functions_include.php',12 11 '6e3fae29631ef280660b3cdad06f25a8' => __DIR__ . '/..' . '/symfony/deprecation-contracts/function.php', 13 12 '37a3dc5111fe8f707ab4c132ef1dbc62' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/functions_include.php', … … 59 58 { 60 59 return \Closure::bind(function () use ($loader) { 61 $loader->prefixLengthsPsr4 = ComposerStaticInit 670d59c1e8b39bbe6a8a38fe1b1f611a::$prefixLengthsPsr4;62 $loader->prefixDirsPsr4 = ComposerStaticInit 670d59c1e8b39bbe6a8a38fe1b1f611a::$prefixDirsPsr4;63 $loader->classMap = ComposerStaticInit 670d59c1e8b39bbe6a8a38fe1b1f611a::$classMap;60 $loader->prefixLengthsPsr4 = ComposerStaticInit5b6802600d5981fe38be608127331a9f::$prefixLengthsPsr4; 61 $loader->prefixDirsPsr4 = ComposerStaticInit5b6802600d5981fe38be608127331a9f::$prefixDirsPsr4; 62 $loader->classMap = ComposerStaticInit5b6802600d5981fe38be608127331a9f::$classMap; 64 63 65 64 }, null, ClassLoader::class); -
bitfinex-pay/trunk/vendor/composer/installed.json
r2867137 r2955014 3 3 { 4 4 "name": "guzzlehttp/guzzle", 5 "version": "7. 5.0",6 "version_normalized": "7. 5.0.0",5 "version": "7.7.0", 6 "version_normalized": "7.7.0.0", 7 7 "source": { 8 8 "type": "git", 9 9 "url": "https://github.com/guzzle/guzzle.git", 10 "reference": " b50a2a1251152e43f6a37f0fa053e730a67d25ba"11 }, 12 "dist": { 13 "type": "zip", 14 "url": "https://api.github.com/repos/guzzle/guzzle/zipball/ b50a2a1251152e43f6a37f0fa053e730a67d25ba",15 "reference": " b50a2a1251152e43f6a37f0fa053e730a67d25ba",10 "reference": "fb7566caccf22d74d1ab270de3551f72a58399f5" 11 }, 12 "dist": { 13 "type": "zip", 14 "url": "https://api.github.com/repos/guzzle/guzzle/zipball/fb7566caccf22d74d1ab270de3551f72a58399f5", 15 "reference": "fb7566caccf22d74d1ab270de3551f72a58399f5", 16 16 "shasum": "" 17 17 }, 18 18 "require": { 19 19 "ext-json": "*", 20 "guzzlehttp/promises": "^1.5 ",21 "guzzlehttp/psr7": "^1.9 || ^2.4",20 "guzzlehttp/promises": "^1.5.3 || ^2.0", 21 "guzzlehttp/psr7": "^1.9.1 || ^2.4.5", 22 22 "php": "^7.2.5 || ^8.0", 23 23 "psr/http-client": "^1.0", … … 30 30 "bamarni/composer-bin-plugin": "^1.8.1", 31 31 "ext-curl": "*", 32 "php-http/client-integration-tests": "^3.0", 32 "php-http/client-integration-tests": "dev-master#2c025848417c1135031fdf9c728ee53d0a7ceaee as 3.0.999", 33 "php-http/message-factory": "^1.1", 33 34 "phpunit/phpunit": "^8.5.29 || ^9.5.23", 34 35 "psr/log": "^1.1 || ^2.0 || ^3.0" … … 39 40 "psr/log": "Required for using the Log middleware" 40 41 }, 41 "time": "202 2-08-28T15:39:27+00:00",42 "time": "2023-05-21T14:04:53+00:00", 42 43 "type": "library", 43 44 "extra": { … … 45 46 "bin-links": true, 46 47 "forward-command": false 47 },48 "branch-alias": {49 "dev-master": "7.5-dev"50 48 } 51 49 }, … … 114 112 "support": { 115 113 "issues": "https://github.com/guzzle/guzzle/issues", 116 "source": "https://github.com/guzzle/guzzle/tree/7. 5.0"114 "source": "https://github.com/guzzle/guzzle/tree/7.7.0" 117 115 }, 118 116 "funding": [ … … 134 132 { 135 133 "name": "guzzlehttp/promises", 136 "version": " 1.5.2",137 "version_normalized": " 1.5.2.0",134 "version": "2.0.0", 135 "version_normalized": "2.0.0.0", 138 136 "source": { 139 137 "type": "git", 140 138 "url": "https://github.com/guzzle/promises.git", 141 "reference": " b94b2807d85443f9719887892882d0329d1e2598"142 }, 143 "dist": { 144 "type": "zip", 145 "url": "https://api.github.com/repos/guzzle/promises/zipball/ b94b2807d85443f9719887892882d0329d1e2598",146 "reference": " b94b2807d85443f9719887892882d0329d1e2598",147 "shasum": "" 148 }, 149 "require": { 150 "php": " >=5.5"139 "reference": "3a494dc7dc1d7d12e511890177ae2d0e6c107da6" 140 }, 141 "dist": { 142 "type": "zip", 143 "url": "https://api.github.com/repos/guzzle/promises/zipball/3a494dc7dc1d7d12e511890177ae2d0e6c107da6", 144 "reference": "3a494dc7dc1d7d12e511890177ae2d0e6c107da6", 145 "shasum": "" 146 }, 147 "require": { 148 "php": "^7.2.5 || ^8.0" 151 149 }, 152 150 "require-dev": { 153 "symfony/phpunit-bridge": "^4.4 || ^5.1" 154 }, 155 "time": "2022-08-28T14:55:35+00:00", 151 "bamarni/composer-bin-plugin": "^1.8.1", 152 "phpunit/phpunit": "^8.5.29 || ^9.5.23" 153 }, 154 "time": "2023-05-21T13:50:22+00:00", 156 155 "type": "library", 157 156 "extra": { 158 "branch-alias": { 159 "dev-master": "1.5-dev" 160 } 161 }, 162 "installation-source": "dist", 163 "autoload": { 164 "files": [ 165 "src/functions_include.php" 166 ], 157 "bamarni-bin": { 158 "bin-links": true, 159 "forward-command": false 160 } 161 }, 162 "installation-source": "dist", 163 "autoload": { 167 164 "psr-4": { 168 165 "GuzzleHttp\\Promise\\": "src/" … … 201 198 "support": { 202 199 "issues": "https://github.com/guzzle/promises/issues", 203 "source": "https://github.com/guzzle/promises/tree/ 1.5.2"200 "source": "https://github.com/guzzle/promises/tree/2.0.0" 204 201 }, 205 202 "funding": [ … … 221 218 { 222 219 "name": "guzzlehttp/psr7", 223 "version": "2. 4.3",224 "version_normalized": "2. 4.3.0",220 "version": "2.5.0", 221 "version_normalized": "2.5.0.0", 225 222 "source": { 226 223 "type": "git", 227 224 "url": "https://github.com/guzzle/psr7.git", 228 "reference": " 67c26b443f348a51926030c83481b85718457d3d"229 }, 230 "dist": { 231 "type": "zip", 232 "url": "https://api.github.com/repos/guzzle/psr7/zipball/ 67c26b443f348a51926030c83481b85718457d3d",233 "reference": " 67c26b443f348a51926030c83481b85718457d3d",225 "reference": "b635f279edd83fc275f822a1188157ffea568ff6" 226 }, 227 "dist": { 228 "type": "zip", 229 "url": "https://api.github.com/repos/guzzle/psr7/zipball/b635f279edd83fc275f822a1188157ffea568ff6", 230 "reference": "b635f279edd83fc275f822a1188157ffea568ff6", 234 231 "shasum": "" 235 232 }, … … 237 234 "php": "^7.2.5 || ^8.0", 238 235 "psr/http-factory": "^1.0", 239 "psr/http-message": "^1. 0",236 "psr/http-message": "^1.1 || ^2.0", 240 237 "ralouphie/getallheaders": "^3.0" 241 238 }, … … 252 249 "laminas/laminas-httphandlerrunner": "Emit PSR-7 responses" 253 250 }, 254 "time": "202 2-10-26T14:07:24+00:00",251 "time": "2023-04-17T16:11:26+00:00", 255 252 "type": "library", 256 253 "extra": { … … 258 255 "bin-links": true, 259 256 "forward-command": false 260 },261 "branch-alias": {262 "dev-master": "2.4-dev"263 257 } 264 258 }, … … 323 317 "support": { 324 318 "issues": "https://github.com/guzzle/psr7/issues", 325 "source": "https://github.com/guzzle/psr7/tree/2. 4.3"319 "source": "https://github.com/guzzle/psr7/tree/2.5.0" 326 320 }, 327 321 "funding": [ … … 343 337 { 344 338 "name": "psr/http-client", 345 "version": "1.0. 1",346 "version_normalized": "1.0. 1.0",339 "version": "1.0.2", 340 "version_normalized": "1.0.2.0", 347 341 "source": { 348 342 "type": "git", 349 343 "url": "https://github.com/php-fig/http-client.git", 350 "reference": " 2dfb5f6c5eff0e91e20e913f8c5452ed95b86621"351 }, 352 "dist": { 353 "type": "zip", 354 "url": "https://api.github.com/repos/php-fig/http-client/zipball/ 2dfb5f6c5eff0e91e20e913f8c5452ed95b86621",355 "reference": " 2dfb5f6c5eff0e91e20e913f8c5452ed95b86621",344 "reference": "0955afe48220520692d2d09f7ab7e0f93ffd6a31" 345 }, 346 "dist": { 347 "type": "zip", 348 "url": "https://api.github.com/repos/php-fig/http-client/zipball/0955afe48220520692d2d09f7ab7e0f93ffd6a31", 349 "reference": "0955afe48220520692d2d09f7ab7e0f93ffd6a31", 356 350 "shasum": "" 357 351 }, 358 352 "require": { 359 353 "php": "^7.0 || ^8.0", 360 "psr/http-message": "^1.0 "361 }, 362 "time": "202 0-06-29T06:28:15+00:00",354 "psr/http-message": "^1.0 || ^2.0" 355 }, 356 "time": "2023-04-10T20:12:12+00:00", 363 357 "type": "library", 364 358 "extra": { … … 380 374 { 381 375 "name": "PHP-FIG", 382 "homepage": "http ://www.php-fig.org/"376 "homepage": "https://www.php-fig.org/" 383 377 } 384 378 ], … … 392 386 ], 393 387 "support": { 394 "source": "https://github.com/php-fig/http-client/tree/ master"388 "source": "https://github.com/php-fig/http-client/tree/1.0.2" 395 389 }, 396 390 "install-path": "../psr/http-client" … … 398 392 { 399 393 "name": "psr/http-factory", 400 "version": "1.0. 1",401 "version_normalized": "1.0. 1.0",394 "version": "1.0.2", 395 "version_normalized": "1.0.2.0", 402 396 "source": { 403 397 "type": "git", 404 398 "url": "https://github.com/php-fig/http-factory.git", 405 "reference": " 12ac7fcd07e5b077433f5f2bee95b3a771bf61be"406 }, 407 "dist": { 408 "type": "zip", 409 "url": "https://api.github.com/repos/php-fig/http-factory/zipball/ 12ac7fcd07e5b077433f5f2bee95b3a771bf61be",410 "reference": " 12ac7fcd07e5b077433f5f2bee95b3a771bf61be",399 "reference": "e616d01114759c4c489f93b099585439f795fe35" 400 }, 401 "dist": { 402 "type": "zip", 403 "url": "https://api.github.com/repos/php-fig/http-factory/zipball/e616d01114759c4c489f93b099585439f795fe35", 404 "reference": "e616d01114759c4c489f93b099585439f795fe35", 411 405 "shasum": "" 412 406 }, 413 407 "require": { 414 408 "php": ">=7.0.0", 415 "psr/http-message": "^1.0 "416 }, 417 "time": "20 19-04-30T12:38:16+00:00",409 "psr/http-message": "^1.0 || ^2.0" 410 }, 411 "time": "2023-04-10T20:10:41+00:00", 418 412 "type": "library", 419 413 "extra": { … … 435 429 { 436 430 "name": "PHP-FIG", 437 "homepage": "http ://www.php-fig.org/"431 "homepage": "https://www.php-fig.org/" 438 432 } 439 433 ], … … 450 444 ], 451 445 "support": { 452 "source": "https://github.com/php-fig/http-factory/tree/ master"446 "source": "https://github.com/php-fig/http-factory/tree/1.0.2" 453 447 }, 454 448 "install-path": "../psr/http-factory" … … 456 450 { 457 451 "name": "psr/http-message", 458 "version": " 1.0.1",459 "version_normalized": " 1.0.1.0",452 "version": "2.0", 453 "version_normalized": "2.0.0.0", 460 454 "source": { 461 455 "type": "git", 462 456 "url": "https://github.com/php-fig/http-message.git", 463 "reference": " f6561bf28d520154e4b0ec72be95418abe6d9363"464 }, 465 "dist": { 466 "type": "zip", 467 "url": "https://api.github.com/repos/php-fig/http-message/zipball/ f6561bf28d520154e4b0ec72be95418abe6d9363",468 "reference": " f6561bf28d520154e4b0ec72be95418abe6d9363",469 "shasum": "" 470 }, 471 "require": { 472 "php": " >=5.3.0"473 }, 474 "time": "20 16-08-06T14:39:51+00:00",457 "reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71" 458 }, 459 "dist": { 460 "type": "zip", 461 "url": "https://api.github.com/repos/php-fig/http-message/zipball/402d35bcb92c70c026d1a6a9883f06b2ead23d71", 462 "reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71", 463 "shasum": "" 464 }, 465 "require": { 466 "php": "^7.2 || ^8.0" 467 }, 468 "time": "2023-04-04T09:54:51+00:00", 475 469 "type": "library", 476 470 "extra": { 477 471 "branch-alias": { 478 "dev-master": " 1.0.x-dev"472 "dev-master": "2.0.x-dev" 479 473 } 480 474 }, … … 492 486 { 493 487 "name": "PHP-FIG", 494 "homepage": "http ://www.php-fig.org/"488 "homepage": "https://www.php-fig.org/" 495 489 } 496 490 ], … … 506 500 ], 507 501 "support": { 508 "source": "https://github.com/php-fig/http-message/tree/ master"502 "source": "https://github.com/php-fig/http-message/tree/2.0" 509 503 }, 510 504 "install-path": "../psr/http-message" -
bitfinex-pay/trunk/vendor/composer/installed.php
r2904088 r2955014 1 1 <?php return array( 2 2 'root' => array( 3 'name' => '__root__', 3 4 'pretty_version' => 'dev-main', 4 5 'version' => 'dev-main', 6 'reference' => '78913cd562843fe3cb4ef87b3b3f3dbeb6f8b109', 5 7 'type' => 'library', 6 8 'install_path' => __DIR__ . '/../../', 7 9 'aliases' => array(), 8 'reference' => '77d1ead1a71987b5c4b50a40eec57b1276e84748',9 'name' => '__root__',10 10 'dev' => false, 11 11 ), … … 14 14 'pretty_version' => 'dev-main', 15 15 'version' => 'dev-main', 16 'reference' => '78913cd562843fe3cb4ef87b3b3f3dbeb6f8b109', 16 17 'type' => 'library', 17 18 'install_path' => __DIR__ . '/../../', 18 19 'aliases' => array(), 19 'reference' => '77d1ead1a71987b5c4b50a40eec57b1276e84748',20 20 'dev_requirement' => false, 21 21 ), 22 22 'guzzlehttp/guzzle' => array( 23 'pretty_version' => '7.5.0', 24 'version' => '7.5.0.0', 23 'pretty_version' => '7.7.0', 24 'version' => '7.7.0.0', 25 'reference' => 'fb7566caccf22d74d1ab270de3551f72a58399f5', 25 26 'type' => 'library', 26 27 'install_path' => __DIR__ . '/../guzzlehttp/guzzle', 27 28 'aliases' => array(), 28 'reference' => 'b50a2a1251152e43f6a37f0fa053e730a67d25ba',29 29 'dev_requirement' => false, 30 30 ), 31 31 'guzzlehttp/promises' => array( 32 'pretty_version' => '1.5.2', 33 'version' => '1.5.2.0', 32 'pretty_version' => '2.0.0', 33 'version' => '2.0.0.0', 34 'reference' => '3a494dc7dc1d7d12e511890177ae2d0e6c107da6', 34 35 'type' => 'library', 35 36 'install_path' => __DIR__ . '/../guzzlehttp/promises', 36 37 'aliases' => array(), 37 'reference' => 'b94b2807d85443f9719887892882d0329d1e2598',38 38 'dev_requirement' => false, 39 39 ), 40 40 'guzzlehttp/psr7' => array( 41 'pretty_version' => '2.4.3', 42 'version' => '2.4.3.0', 41 'pretty_version' => '2.5.0', 42 'version' => '2.5.0.0', 43 'reference' => 'b635f279edd83fc275f822a1188157ffea568ff6', 43 44 'type' => 'library', 44 45 'install_path' => __DIR__ . '/../guzzlehttp/psr7', 45 46 'aliases' => array(), 46 'reference' => '67c26b443f348a51926030c83481b85718457d3d',47 47 'dev_requirement' => false, 48 48 ), 49 49 'psr/http-client' => array( 50 'pretty_version' => '1.0.1', 51 'version' => '1.0.1.0', 50 'pretty_version' => '1.0.2', 51 'version' => '1.0.2.0', 52 'reference' => '0955afe48220520692d2d09f7ab7e0f93ffd6a31', 52 53 'type' => 'library', 53 54 'install_path' => __DIR__ . '/../psr/http-client', 54 55 'aliases' => array(), 55 'reference' => '2dfb5f6c5eff0e91e20e913f8c5452ed95b86621',56 56 'dev_requirement' => false, 57 57 ), … … 63 63 ), 64 64 'psr/http-factory' => array( 65 'pretty_version' => '1.0.1', 66 'version' => '1.0.1.0', 65 'pretty_version' => '1.0.2', 66 'version' => '1.0.2.0', 67 'reference' => 'e616d01114759c4c489f93b099585439f795fe35', 67 68 'type' => 'library', 68 69 'install_path' => __DIR__ . '/../psr/http-factory', 69 70 'aliases' => array(), 70 'reference' => '12ac7fcd07e5b077433f5f2bee95b3a771bf61be',71 71 'dev_requirement' => false, 72 72 ), … … 78 78 ), 79 79 'psr/http-message' => array( 80 'pretty_version' => '1.0.1', 81 'version' => '1.0.1.0', 80 'pretty_version' => '2.0', 81 'version' => '2.0.0.0', 82 'reference' => '402d35bcb92c70c026d1a6a9883f06b2ead23d71', 82 83 'type' => 'library', 83 84 'install_path' => __DIR__ . '/../psr/http-message', 84 85 'aliases' => array(), 85 'reference' => 'f6561bf28d520154e4b0ec72be95418abe6d9363',86 86 'dev_requirement' => false, 87 87 ), … … 95 95 'pretty_version' => '3.0.3', 96 96 'version' => '3.0.3.0', 97 'reference' => '120b605dfeb996808c31b6477290a714d356e822', 97 98 'type' => 'library', 98 99 'install_path' => __DIR__ . '/../ralouphie/getallheaders', 99 100 'aliases' => array(), 100 'reference' => '120b605dfeb996808c31b6477290a714d356e822',101 101 'dev_requirement' => false, 102 102 ), … … 104 104 'pretty_version' => 'v2.5.2', 105 105 'version' => '2.5.2.0', 106 'reference' => 'e8b495ea28c1d97b5e0c121748d6f9b53d075c66', 106 107 'type' => 'library', 107 108 'install_path' => __DIR__ . '/../symfony/deprecation-contracts', 108 109 'aliases' => array(), 109 'reference' => 'e8b495ea28c1d97b5e0c121748d6f9b53d075c66',110 110 'dev_requirement' => false, 111 111 ), -
bitfinex-pay/trunk/vendor/guzzlehttp/guzzle/CHANGELOG.md
r2866500 r2955014 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 -
bitfinex-pay/trunk/vendor/guzzlehttp/guzzle/README.md
r2866500 r2955014 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 -
bitfinex-pay/trunk/vendor/guzzlehttp/guzzle/composer.json
r2866500 r2955014 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 }, -
bitfinex-pay/trunk/vendor/guzzlehttp/guzzle/src/Client.php
r2866500 r2955014 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 } -
bitfinex-pay/trunk/vendor/guzzlehttp/guzzle/src/Cookie/CookieJar.php
r2866500 r2955014 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 } -
bitfinex-pay/trunk/vendor/guzzlehttp/guzzle/src/Cookie/CookieJarInterface.php
r2866500 r2955014 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 */ -
bitfinex-pay/trunk/vendor/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php
r2706025 r2955014 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 } -
bitfinex-pay/trunk/vendor/guzzlehttp/guzzle/src/Cookie/SetCookie.php
r2866500 r2955014 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 -
bitfinex-pay/trunk/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php
r2866500 r2955014 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 }; -
bitfinex-pay/trunk/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php
r2866500 r2955014 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(); -
bitfinex-pay/trunk/vendor/guzzlehttp/guzzle/src/Handler/EasyHandle.php
r2866500 r2955014 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 } -
bitfinex-pay/trunk/vendor/guzzlehttp/guzzle/src/Handler/HeaderProcessor.php
r2867137 r2955014 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 -
bitfinex-pay/trunk/vendor/guzzlehttp/guzzle/src/Handler/MockHandler.php
r2866500 r2955014 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 } -
bitfinex-pay/trunk/vendor/guzzlehttp/guzzle/src/Handler/StreamHandler.php
r2866500 r2955014 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 } -
bitfinex-pay/trunk/vendor/guzzlehttp/guzzle/src/HandlerStack.php
r2866500 r2955014 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 } -
bitfinex-pay/trunk/vendor/guzzlehttp/guzzle/src/MessageFormatter.php
r2866500 r2955014 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 -
bitfinex-pay/trunk/vendor/guzzlehttp/guzzle/src/Middleware.php
r2866500 r2955014 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 } -
bitfinex-pay/trunk/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php
r2866500 r2955014 85 85 if ($expect === true) { 86 86 $modify['set_headers']['Expect'] = '100-Continue'; 87 87 88 return; 88 89 } -
bitfinex-pay/trunk/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php
r2866500 r2955014 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 ]; -
bitfinex-pay/trunk/vendor/guzzlehttp/guzzle/src/RequestOptions.php
r2706025 r2955014 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 /** -
bitfinex-pay/trunk/vendor/guzzlehttp/guzzle/src/RetryMiddleware.php
r2866500 r2955014 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 }; -
bitfinex-pay/trunk/vendor/guzzlehttp/guzzle/src/Utils.php
r2866500 r2955014 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 -
bitfinex-pay/trunk/vendor/guzzlehttp/guzzle/src/functions.php
r2866500 r2955014 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 */ -
bitfinex-pay/trunk/vendor/guzzlehttp/guzzle/src/functions_include.php
r2866500 r2955014 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 } -
bitfinex-pay/trunk/vendor/guzzlehttp/promises/CHANGELOG.md
r2866500 r2955014 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 -
bitfinex-pay/trunk/vendor/guzzlehttp/promises/README.md
r2866500 r2955014 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 | -
bitfinex-pay/trunk/vendor/guzzlehttp/promises/composer.json
r2706025 r2955014 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 -
bitfinex-pay/trunk/vendor/guzzlehttp/promises/src/AggregateException.php
r2706025 r2955014 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( -
bitfinex-pay/trunk/vendor/guzzlehttp/promises/src/CancellationException.php
r2706025 r2955014 1 1 <?php 2 3 declare(strict_types=1); 2 4 3 5 namespace GuzzleHttp\Promise; -
bitfinex-pay/trunk/vendor/guzzlehttp/promises/src/Coroutine.php
r2706025 r2955014 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); -
bitfinex-pay/trunk/vendor/guzzlehttp/promises/src/Create.php
r2706025 r2955014 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) { -
bitfinex-pay/trunk/vendor/guzzlehttp/promises/src/Each.php
r2706025 r2955014 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 } -
bitfinex-pay/trunk/vendor/guzzlehttp/promises/src/EachPromise.php
r2866500 r2955014 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 } -
bitfinex-pay/trunk/vendor/guzzlehttp/promises/src/FulfilledPromise.php
r2706025 r2955014 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 -
bitfinex-pay/trunk/vendor/guzzlehttp/promises/src/Is.php
r2706025 r2955014 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; -
bitfinex-pay/trunk/vendor/guzzlehttp/promises/src/Promise.php
r2706025 r2955014 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; -
bitfinex-pay/trunk/vendor/guzzlehttp/promises/src/PromiseInterface.php
r2706025 r2955014 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 } -
bitfinex-pay/trunk/vendor/guzzlehttp/promises/src/PromisorInterface.php
r2706025 r2955014 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 } -
bitfinex-pay/trunk/vendor/guzzlehttp/promises/src/RejectedPromise.php
r2706025 r2955014 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 -
bitfinex-pay/trunk/vendor/guzzlehttp/promises/src/RejectionException.php
r2706025 r2955014 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 -
bitfinex-pay/trunk/vendor/guzzlehttp/promises/src/TaskQueue.php
r2706025 r2955014 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; -
bitfinex-pay/trunk/vendor/guzzlehttp/promises/src/TaskQueueInterface.php
r2706025 r2955014 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 } -
bitfinex-pay/trunk/vendor/guzzlehttp/promises/src/Utils.php
r2706025 r2955014 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 }); -
bitfinex-pay/trunk/vendor/guzzlehttp/psr7/CHANGELOG.md
r2866500 r2955014 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 23 24 ## 2.4.4 - 2023-03-09 25 26 ### Changed 27 28 - Removed the need for `AllowDynamicProperties` in `LazyOpenStream` 9 29 10 30 ## 2.4.3 - 2022-10-26 -
bitfinex-pay/trunk/vendor/guzzlehttp/psr7/README.md
r2866500 r2955014 8 8  9 9 10 11 # Installation 12 13 ```shell 14 composer require guzzlehttp/psr7 15 ``` 10 16 11 17 # Stream implementation … … 245 251 246 252 private $callback; 253 254 private $stream; 247 255 248 256 public function __construct(StreamInterface $stream, callable $cb) -
bitfinex-pay/trunk/vendor/guzzlehttp/psr7/composer.json
r2866500 r2955014 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 }, -
bitfinex-pay/trunk/vendor/guzzlehttp/psr7/src/LazyOpenStream.php
r2866500 r2955014 11 11 * take place on the stream. 12 12 */ 13 #[\AllowDynamicProperties]14 13 final class LazyOpenStream implements StreamInterface 15 14 { … … 23 22 24 23 /** 24 * @var StreamInterface 25 */ 26 private $stream; 27 28 /** 25 29 * @param string $filename File to lazily open 26 30 * @param string $mode fopen mode to use when opening the stream … … 30 34 $this->filename = $filename; 31 35 $this->mode = $mode; 36 37 // unsetting the property forces the first access to go through 38 // __get(). 39 unset($this->stream); 32 40 } 33 41 -
bitfinex-pay/trunk/vendor/guzzlehttp/psr7/src/Message.php
r2866500 r2955014 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 } -
bitfinex-pay/trunk/vendor/guzzlehttp/psr7/src/MessageTrait.php
r2866500 r2955014 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 } -
bitfinex-pay/trunk/vendor/guzzlehttp/psr7/src/ServerRequest.php
r2866500 r2955014 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); -
bitfinex-pay/trunk/vendor/psr/http-client/README.md
r2706025 r2955014 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 -
bitfinex-pay/trunk/vendor/psr/http-client/composer.json
r2706025 r2955014 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": { -
bitfinex-pay/trunk/vendor/psr/http-factory/README.md
r2867137 r2955014 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 -
bitfinex-pay/trunk/vendor/psr/http-factory/composer.json
r2867137 r2955014 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": { -
bitfinex-pay/trunk/vendor/psr/http-message/README.md
r2706025 r2955014 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) -
bitfinex-pay/trunk/vendor/psr/http-message/composer.json
r2706025 r2955014 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 } -
bitfinex-pay/trunk/vendor/psr/http-message/src/MessageInterface.php
r2706025 r2955014 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 } -
bitfinex-pay/trunk/vendor/psr/http-message/src/RequestInterface.php
r2706025 r2955014 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 } -
bitfinex-pay/trunk/vendor/psr/http-message/src/ResponseInterface.php
r2706025 r2955014 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 } -
bitfinex-pay/trunk/vendor/psr/http-message/src/ServerRequestInterface.php
r2706025 r2955014 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 } -
bitfinex-pay/trunk/vendor/psr/http-message/src/StreamInterface.php
r2706025 r2955014 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 } -
bitfinex-pay/trunk/vendor/psr/http-message/src/UploadedFileInterface.php
r2706025 r2955014 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 } -
bitfinex-pay/trunk/vendor/psr/http-message/src/UriInterface.php
r2706025 r2955014 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.