Changeset 3150005
- Timestamp:
- 09/11/2024 11:25:11 AM (19 months ago)
- Location:
- dotmailer-sign-up-widget/trunk
- Files:
-
- 57 edited
-
dm_signup_form.php (modified) (2 diffs)
-
includes/rest/class-dotdigital-wordpress-signup-widget-controller.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
-
vendor/autoload.php (modified) (1 diff)
-
vendor/composer/autoload_real.php (modified) (2 diffs)
-
vendor/composer/autoload_static.php (modified) (2 diffs)
-
vendor/composer/installed.json (modified) (20 diffs)
-
vendor/composer/installed.php (modified) (1 diff)
-
vendor/guzzlehttp/guzzle/composer.json (modified) (2 diffs)
-
vendor/guzzlehttp/guzzle/src/BodySummarizer.php (modified) (2 diffs)
-
vendor/guzzlehttp/guzzle/src/Client.php (modified) (2 diffs)
-
vendor/guzzlehttp/guzzle/src/ClientInterface.php (modified) (1 diff)
-
vendor/guzzlehttp/guzzle/src/Cookie/CookieJar.php (modified) (1 diff)
-
vendor/guzzlehttp/guzzle/src/Cookie/CookieJarInterface.php (modified) (1 diff)
-
vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php (modified) (1 diff)
-
vendor/guzzlehttp/guzzle/src/Exception/ConnectException.php (modified) (1 diff)
-
vendor/guzzlehttp/guzzle/src/Exception/RequestException.php (modified) (5 diffs)
-
vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php (modified) (10 diffs)
-
vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php (modified) (3 diffs)
-
vendor/guzzlehttp/guzzle/src/Handler/MockHandler.php (modified) (4 diffs)
-
vendor/guzzlehttp/guzzle/src/Handler/StreamHandler.php (modified) (3 diffs)
-
vendor/guzzlehttp/guzzle/src/HandlerStack.php (modified) (3 diffs)
-
vendor/guzzlehttp/guzzle/src/MessageFormatter.php (modified) (1 diff)
-
vendor/guzzlehttp/guzzle/src/MessageFormatterInterface.php (modified) (1 diff)
-
vendor/guzzlehttp/guzzle/src/Middleware.php (modified) (3 diffs)
-
vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php (modified) (1 diff)
-
vendor/guzzlehttp/guzzle/src/RequestOptions.php (modified) (1 diff)
-
vendor/guzzlehttp/guzzle/src/RetryMiddleware.php (modified) (2 diffs)
-
vendor/guzzlehttp/guzzle/src/TransferStats.php (modified) (1 diff)
-
vendor/guzzlehttp/guzzle/src/Utils.php (modified) (2 diffs)
-
vendor/guzzlehttp/promises/composer.json (modified) (1 diff)
-
vendor/guzzlehttp/promises/src/Coroutine.php (modified) (1 diff)
-
vendor/guzzlehttp/promises/src/Each.php (modified) (3 diffs)
-
vendor/guzzlehttp/promises/src/FulfilledPromise.php (modified) (1 diff)
-
vendor/guzzlehttp/promises/src/Promise.php (modified) (1 diff)
-
vendor/guzzlehttp/promises/src/PromiseInterface.php (modified) (1 diff)
-
vendor/guzzlehttp/promises/src/RejectedPromise.php (modified) (1 diff)
-
vendor/guzzlehttp/promises/src/RejectionException.php (modified) (1 diff)
-
vendor/guzzlehttp/promises/src/Utils.php (modified) (1 diff)
-
vendor/guzzlehttp/psr7/composer.json (modified) (1 diff)
-
vendor/guzzlehttp/psr7/src/CachingStream.php (modified) (1 diff)
-
vendor/guzzlehttp/psr7/src/HttpFactory.php (modified) (1 diff)
-
vendor/guzzlehttp/psr7/src/MultipartStream.php (modified) (1 diff)
-
vendor/guzzlehttp/psr7/src/Query.php (modified) (4 diffs)
-
vendor/guzzlehttp/psr7/src/Response.php (modified) (1 diff)
-
vendor/guzzlehttp/psr7/src/StreamWrapper.php (modified) (2 diffs)
-
vendor/guzzlehttp/psr7/src/UploadedFile.php (modified) (1 diff)
-
vendor/guzzlehttp/psr7/src/Uri.php (modified) (1 diff)
-
vendor/guzzlehttp/psr7/src/Utils.php (modified) (2 diffs)
-
vendor/scoper-autoload.php (modified) (3 diffs)
-
vendor/symfony/polyfill-mbstring/Mbstring.php (modified) (4 diffs)
-
vendor/symfony/polyfill-mbstring/bootstrap.php (modified) (1 diff)
-
vendor/symfony/polyfill-mbstring/bootstrap80.php (modified) (2 diffs)
-
vendor/symfony/polyfill-mbstring/composer.json (modified) (1 diff)
-
vendor/symfony/polyfill-php73/composer.json (modified) (1 diff)
-
vendor/symfony/polyfill-php80/composer.json (modified) (1 diff)
-
vendor/symfony/translation/Loader/CsvFileLoader.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dotmailer-sign-up-widget/trunk/dm_signup_form.php
r3110990 r3150005 9 9 * Plugin URI: https://integrations.dotdigital.com/technology-partners/wordpress 10 10 * Description: Add a "Subscribe to Newsletter" widget to your website that will insert your contact in one of your Dotdigital lists. 11 * Version: 7.2. 311 * Version: 7.2.4 12 12 * Author: dotdigital 13 13 * Author URI: https://www.dotdigital.com/ … … 25 25 require_once __DIR__ . '/vendor/autoload.php'; 26 26 27 define( 'DOTDIGITAL_WORDPRESS_VERSION', '7.2. 3' );27 define( 'DOTDIGITAL_WORDPRESS_VERSION', '7.2.4' ); 28 28 define( 'DOTDIGITAL_WORDPRESS_PLUGIN_NAME', 'dotdigital-for-wordpress' ); 29 29 define( 'DOTDIGITAL_WORDPRESS_PLUGIN_SLUG', 'dotdigital_for_wordpress' ); -
dotmailer-sign-up-widget/trunk/includes/rest/class-dotdigital-wordpress-signup-widget-controller.php
r3059202 r3150005 8 8 namespace Dotdigital_WordPress\Includes\Rest; 9 9 10 use Dotdigital_WordPress_Vendor\Dotdigital\Exception\ResponseValidationException; 10 11 use Dotdigital_WordPress_Vendor\Dotdigital\V3\Models\Contact; 11 12 use Dotdigital_WordPress\Includes\Client\Dotdigital_WordPress_Contact; … … 87 88 $contact = new Contact(); 88 89 $contact->setIdentifiers(array('email' => $data['email'])); 89 $contact->setLists(\array_values($data['lists'] ?? array())); 90 $contact->setDataFields($this->prepare_data_fields($data['datafields'] ?? array(), $data['is_ajax'] ?? \false)); 90 $contact->setLists($this->prepare_lists($data['lists'] ?? array())); 91 if (!empty($data['datafields'])) { 92 $contact->setDataFields($this->prepare_data_fields($data['datafields'], $data['is_ajax'] ?? \false)); 93 } 91 94 $this->dotdigital_contact->create_or_update($contact); 95 } catch (ResponseValidationException $e) { 96 \error_log($e->getMessage()); 97 \error_log(\json_encode($e->getDetails())); 98 $this->process_response(\false, Dotdigital_WordPress_Sign_Up_Widget::get_failure_message(), $data); 92 99 } catch (\Exception $e) { 93 100 \error_log($e->getMessage()); … … 170 177 } 171 178 /** 179 * @param array $lists 180 * 181 * @return array 182 */ 183 private function prepare_lists(array $lists) : array 184 { 185 $processed_lists = array(); 186 foreach ($lists as $list) { 187 $processed_lists[] = (int) $list; 188 } 189 return $processed_lists; 190 } 191 /** 172 192 * @param bool $success 173 193 * @param string $message -
dotmailer-sign-up-widget/trunk/readme.txt
r3110990 r3150005 3 3 Tags: email marketing, newsletter signup 4 4 Requires at least: 5.3 5 Tested up to: 6. 5.55 Tested up to: 6.6.1 6 6 Requires PHP: 7.4 7 Stable tag: 7.2. 37 Stable tag: 7.2.4 8 8 License: MIT 9 9 License URI: https://opensource.org/licenses/MIT 10 10 Add the Dotdigital for WordPress plugin to your site and allow your visitors to sign up to your newsletter and email marketing campaigns. 11 11 12 12 == Description == … … 70 70 == Changelog == 71 71 72 = 7.2.4 = 73 74 **Bug fixes** 75 - We fixed a bug with lists being sent to the V3 API in the incorrect type. 76 - We fixed submission failure with no data fields. 77 72 78 = 7.2.3 = 73 79 -
dotmailer-sign-up-widget/trunk/vendor/autoload.php
r3110990 r3150005 23 23 require_once __DIR__ . '/composer/autoload_real.php'; 24 24 25 return ComposerAutoloaderInit 128b33bd335669c20af9217bcb9a7538::getLoader();25 return ComposerAutoloaderInitb933e4dec037358ff05515f1fd78e117::getLoader(); -
dotmailer-sign-up-widget/trunk/vendor/composer/autoload_real.php
r3110990 r3150005 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 128b33bd335669c20af9217bcb9a75385 class ComposerAutoloaderInitb933e4dec037358ff05515f1fd78e117 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit 128b33bd335669c20af9217bcb9a7538', 'loadClassLoader'), true, true);27 spl_autoload_register(array('ComposerAutoloaderInitb933e4dec037358ff05515f1fd78e117', 'loadClassLoader'), true, true); 28 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 29 spl_autoload_unregister(array('ComposerAutoloaderInit 128b33bd335669c20af9217bcb9a7538', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderInitb933e4dec037358ff05515f1fd78e117', 'loadClassLoader')); 30 30 31 31 require __DIR__ . '/autoload_static.php'; 32 call_user_func(\Composer\Autoload\ComposerStaticInit 128b33bd335669c20af9217bcb9a7538::getInitializer($loader));32 call_user_func(\Composer\Autoload\ComposerStaticInitb933e4dec037358ff05515f1fd78e117::getInitializer($loader)); 33 33 34 34 $loader->setClassMapAuthoritative(true); 35 35 $loader->register(true); 36 36 37 $filesToLoad = \Composer\Autoload\ComposerStaticInit 128b33bd335669c20af9217bcb9a7538::$files;37 $filesToLoad = \Composer\Autoload\ComposerStaticInitb933e4dec037358ff05515f1fd78e117::$files; 38 38 $requireFile = \Closure::bind(static function ($fileIdentifier, $file) { 39 39 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { -
dotmailer-sign-up-widget/trunk/vendor/composer/autoload_static.php
r3110990 r3150005 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 128b33bd335669c20af9217bcb9a75387 class ComposerStaticInitb933e4dec037358ff05515f1fd78e117 8 8 { 9 9 public static $files = array ( … … 706 706 { 707 707 return \Closure::bind(function () use ($loader) { 708 $loader->prefixLengthsPsr4 = ComposerStaticInit 128b33bd335669c20af9217bcb9a7538::$prefixLengthsPsr4;709 $loader->prefixDirsPsr4 = ComposerStaticInit 128b33bd335669c20af9217bcb9a7538::$prefixDirsPsr4;710 $loader->classMap = ComposerStaticInit 128b33bd335669c20af9217bcb9a7538::$classMap;708 $loader->prefixLengthsPsr4 = ComposerStaticInitb933e4dec037358ff05515f1fd78e117::$prefixLengthsPsr4; 709 $loader->prefixDirsPsr4 = ComposerStaticInitb933e4dec037358ff05515f1fd78e117::$prefixDirsPsr4; 710 $loader->classMap = ComposerStaticInitb933e4dec037358ff05515f1fd78e117::$classMap; 711 711 712 712 }, null, ClassLoader::class); -
dotmailer-sign-up-widget/trunk/vendor/composer/installed.json
r3110990 r3150005 196 196 { 197 197 "name": "guzzlehttp\/guzzle", 198 "version": "7. 8.1",199 "version_normalized": "7. 8.1.0",198 "version": "7.9.2", 199 "version_normalized": "7.9.2.0", 200 200 "source": { 201 201 "type": "git", 202 202 "url": "https:\/\/github.com\/guzzle\/guzzle.git", 203 "reference": " 41042bc7ab002487b876a0683fc8dce04ddce104"204 }, 205 "dist": { 206 "type": "zip", 207 "url": "https:\/\/api.github.com\/repos\/guzzle\/guzzle\/zipball\/ 41042bc7ab002487b876a0683fc8dce04ddce104",208 "reference": " 41042bc7ab002487b876a0683fc8dce04ddce104",203 "reference": "d281ed313b989f213357e3be1a179f02196ac99b" 204 }, 205 "dist": { 206 "type": "zip", 207 "url": "https:\/\/api.github.com\/repos\/guzzle\/guzzle\/zipball\/d281ed313b989f213357e3be1a179f02196ac99b", 208 "reference": "d281ed313b989f213357e3be1a179f02196ac99b", 209 209 "shasum": "" 210 210 }, 211 211 "require": { 212 212 "ext-json": "*", 213 "guzzlehttp\/promises": "^1.5.3 || ^2.0. 1",214 "guzzlehttp\/psr7": "^ 1.9.1 || ^2.5.1",213 "guzzlehttp\/promises": "^1.5.3 || ^2.0.3", 214 "guzzlehttp\/psr7": "^2.7.0", 215 215 "php": "^7.2.5 || ^8.0", 216 216 "psr\/http-client": "^1.0", … … 223 223 "bamarni\/composer-bin-plugin": "^1.8.2", 224 224 "ext-curl": "*", 225 " php-http\/client-integration-tests": "dev-master#2c025848417c1135031fdf9c728ee53d0a7ceaee as 3.0.999",225 "guzzle\/client-integration-tests": "3.0.2", 226 226 "php-http\/message-factory": "^1.1", 227 "phpunit\/phpunit": "^8.5.3 6 || ^9.6.15",227 "phpunit\/phpunit": "^8.5.39 || ^9.6.20", 228 228 "psr\/log": "^1.1 || ^2.0 || ^3.0" 229 229 }, … … 233 233 "psr\/log": "Required for using the Log middleware" 234 234 }, 235 "time": "202 3-12-03T20:35:24+00:00",235 "time": "2024-07-24T11:22:20+00:00", 236 236 "type": "library", 237 237 "extra": { … … 305 305 "support": { 306 306 "issues": "https:\/\/github.com\/guzzle\/guzzle\/issues", 307 "source": "https:\/\/github.com\/guzzle\/guzzle\/tree\/7. 8.1"307 "source": "https:\/\/github.com\/guzzle\/guzzle\/tree\/7.9.2" 308 308 }, 309 309 "funding": [ … … 325 325 { 326 326 "name": "guzzlehttp\/promises", 327 "version": "2.0. 2",328 "version_normalized": "2.0. 2.0",327 "version": "2.0.3", 328 "version_normalized": "2.0.3.0", 329 329 "source": { 330 330 "type": "git", 331 331 "url": "https:\/\/github.com\/guzzle\/promises.git", 332 "reference": " bbff78d96034045e58e13dedd6ad91b5d1253223"333 }, 334 "dist": { 335 "type": "zip", 336 "url": "https:\/\/api.github.com\/repos\/guzzle\/promises\/zipball\/ bbff78d96034045e58e13dedd6ad91b5d1253223",337 "reference": " bbff78d96034045e58e13dedd6ad91b5d1253223",332 "reference": "6ea8dd08867a2a42619d65c3deb2c0fcbf81c8f8" 333 }, 334 "dist": { 335 "type": "zip", 336 "url": "https:\/\/api.github.com\/repos\/guzzle\/promises\/zipball\/6ea8dd08867a2a42619d65c3deb2c0fcbf81c8f8", 337 "reference": "6ea8dd08867a2a42619d65c3deb2c0fcbf81c8f8", 338 338 "shasum": "" 339 339 }, … … 343 343 "require-dev": { 344 344 "bamarni\/composer-bin-plugin": "^1.8.2", 345 "phpunit\/phpunit": "^8.5.3 6 || ^9.6.15"346 }, 347 "time": "202 3-12-03T20:19:20+00:00",345 "phpunit\/phpunit": "^8.5.39 || ^9.6.20" 346 }, 347 "time": "2024-07-18T10:29:17+00:00", 348 348 "type": "library", 349 349 "extra": { … … 391 391 "support": { 392 392 "issues": "https:\/\/github.com\/guzzle\/promises\/issues", 393 "source": "https:\/\/github.com\/guzzle\/promises\/tree\/2.0. 2"393 "source": "https:\/\/github.com\/guzzle\/promises\/tree\/2.0.3" 394 394 }, 395 395 "funding": [ … … 411 411 { 412 412 "name": "guzzlehttp\/psr7", 413 "version": "2. 6.2",414 "version_normalized": "2. 6.2.0",413 "version": "2.7.0", 414 "version_normalized": "2.7.0.0", 415 415 "source": { 416 416 "type": "git", 417 417 "url": "https:\/\/github.com\/guzzle\/psr7.git", 418 "reference": " 45b30f99ac27b5ca93cb4831afe16285f57b8221"419 }, 420 "dist": { 421 "type": "zip", 422 "url": "https:\/\/api.github.com\/repos\/guzzle\/psr7\/zipball\/ 45b30f99ac27b5ca93cb4831afe16285f57b8221",423 "reference": " 45b30f99ac27b5ca93cb4831afe16285f57b8221",418 "reference": "a70f5c95fb43bc83f07c9c948baa0dc1829bf201" 419 }, 420 "dist": { 421 "type": "zip", 422 "url": "https:\/\/api.github.com\/repos\/guzzle\/psr7\/zipball\/a70f5c95fb43bc83f07c9c948baa0dc1829bf201", 423 "reference": "a70f5c95fb43bc83f07c9c948baa0dc1829bf201", 424 424 "shasum": "" 425 425 }, … … 436 436 "require-dev": { 437 437 "bamarni\/composer-bin-plugin": "^1.8.2", 438 "http-interop\/http-factory-tests": " ^0.9",439 "phpunit\/phpunit": "^8.5.3 6 || ^9.6.15"438 "http-interop\/http-factory-tests": "0.9.0", 439 "phpunit\/phpunit": "^8.5.39 || ^9.6.20" 440 440 }, 441 441 "suggest": { 442 442 "laminas\/laminas-httphandlerrunner": "Emit PSR-7 responses" 443 443 }, 444 "time": "202 3-12-03T20:05:35+00:00",444 "time": "2024-07-18T11:15:46+00:00", 445 445 "type": "library", 446 446 "extra": { … … 510 510 "support": { 511 511 "issues": "https:\/\/github.com\/guzzle\/psr7\/issues", 512 "source": "https:\/\/github.com\/guzzle\/psr7\/tree\/2. 6.2"512 "source": "https:\/\/github.com\/guzzle\/psr7\/tree\/2.7.0" 513 513 }, 514 514 "funding": [ … … 1458 1458 { 1459 1459 "name": "symfony\/polyfill-mbstring", 1460 "version": "v1.3 0.0",1461 "version_normalized": "1.3 0.0.0",1460 "version": "v1.31.0", 1461 "version_normalized": "1.31.0.0", 1462 1462 "source": { 1463 1463 "type": "git", 1464 1464 "url": "https:\/\/github.com\/symfony\/polyfill-mbstring.git", 1465 "reference": " fd22ab50000ef01661e2a31d850ebaa297f8e03c"1466 }, 1467 "dist": { 1468 "type": "zip", 1469 "url": "https:\/\/api.github.com\/repos\/symfony\/polyfill-mbstring\/zipball\/ fd22ab50000ef01661e2a31d850ebaa297f8e03c",1470 "reference": " fd22ab50000ef01661e2a31d850ebaa297f8e03c",1471 "shasum": "" 1472 }, 1473 "require": { 1474 "php": ">=7. 1"1465 "reference": "85181ba99b2345b0ef10ce42ecac37612d9fd341" 1466 }, 1467 "dist": { 1468 "type": "zip", 1469 "url": "https:\/\/api.github.com\/repos\/symfony\/polyfill-mbstring\/zipball\/85181ba99b2345b0ef10ce42ecac37612d9fd341", 1470 "reference": "85181ba99b2345b0ef10ce42ecac37612d9fd341", 1471 "shasum": "" 1472 }, 1473 "require": { 1474 "php": ">=7.2" 1475 1475 }, 1476 1476 "provide": { … … 1480 1480 "ext-mbstring": "For best performance" 1481 1481 }, 1482 "time": "2024-0 6-19T12:30:46+00:00",1482 "time": "2024-09-09T11:45:10+00:00", 1483 1483 "type": "library", 1484 1484 "extra": { … … 1521 1521 ], 1522 1522 "support": { 1523 "source": "https:\/\/github.com\/symfony\/polyfill-mbstring\/tree\/v1.3 0.0"1523 "source": "https:\/\/github.com\/symfony\/polyfill-mbstring\/tree\/v1.31.0" 1524 1524 }, 1525 1525 "funding": [ … … 1541 1541 { 1542 1542 "name": "symfony\/polyfill-php73", 1543 "version": "v1.3 0.0",1544 "version_normalized": "1.3 0.0.0",1543 "version": "v1.31.0", 1544 "version_normalized": "1.31.0.0", 1545 1545 "source": { 1546 1546 "type": "git", 1547 1547 "url": "https:\/\/github.com\/symfony\/polyfill-php73.git", 1548 "reference": " ec444d3f3f6505bb28d11afa41e75faadebc10a1"1549 }, 1550 "dist": { 1551 "type": "zip", 1552 "url": "https:\/\/api.github.com\/repos\/symfony\/polyfill-php73\/zipball\/ ec444d3f3f6505bb28d11afa41e75faadebc10a1",1553 "reference": " ec444d3f3f6505bb28d11afa41e75faadebc10a1",1554 "shasum": "" 1555 }, 1556 "require": { 1557 "php": ">=7. 1"1558 }, 1559 "time": "2024-0 5-31T15:07:36+00:00",1548 "reference": "0f68c03565dcaaf25a890667542e8bd75fe7e5bb" 1549 }, 1550 "dist": { 1551 "type": "zip", 1552 "url": "https:\/\/api.github.com\/repos\/symfony\/polyfill-php73\/zipball\/0f68c03565dcaaf25a890667542e8bd75fe7e5bb", 1553 "reference": "0f68c03565dcaaf25a890667542e8bd75fe7e5bb", 1554 "shasum": "" 1555 }, 1556 "require": { 1557 "php": ">=7.2" 1558 }, 1559 "time": "2024-09-09T11:45:10+00:00", 1560 1560 "type": "library", 1561 1561 "extra": { … … 1600 1600 ], 1601 1601 "support": { 1602 "source": "https:\/\/github.com\/symfony\/polyfill-php73\/tree\/v1.3 0.0"1602 "source": "https:\/\/github.com\/symfony\/polyfill-php73\/tree\/v1.31.0" 1603 1603 }, 1604 1604 "funding": [ … … 1620 1620 { 1621 1621 "name": "symfony\/polyfill-php80", 1622 "version": "v1.3 0.0",1623 "version_normalized": "1.3 0.0.0",1622 "version": "v1.31.0", 1623 "version_normalized": "1.31.0.0", 1624 1624 "source": { 1625 1625 "type": "git", 1626 1626 "url": "https:\/\/github.com\/symfony\/polyfill-php80.git", 1627 "reference": " 77fa7995ac1b21ab60769b7323d600a991a90433"1628 }, 1629 "dist": { 1630 "type": "zip", 1631 "url": "https:\/\/api.github.com\/repos\/symfony\/polyfill-php80\/zipball\/ 77fa7995ac1b21ab60769b7323d600a991a90433",1632 "reference": " 77fa7995ac1b21ab60769b7323d600a991a90433",1633 "shasum": "" 1634 }, 1635 "require": { 1636 "php": ">=7. 1"1637 }, 1638 "time": "2024-0 5-31T15:07:36+00:00",1627 "reference": "60328e362d4c2c802a54fcbf04f9d3fb892b4cf8" 1628 }, 1629 "dist": { 1630 "type": "zip", 1631 "url": "https:\/\/api.github.com\/repos\/symfony\/polyfill-php80\/zipball\/60328e362d4c2c802a54fcbf04f9d3fb892b4cf8", 1632 "reference": "60328e362d4c2c802a54fcbf04f9d3fb892b4cf8", 1633 "shasum": "" 1634 }, 1635 "require": { 1636 "php": ">=7.2" 1637 }, 1638 "time": "2024-09-09T11:45:10+00:00", 1639 1639 "type": "library", 1640 1640 "extra": { … … 1683 1683 ], 1684 1684 "support": { 1685 "source": "https:\/\/github.com\/symfony\/polyfill-php80\/tree\/v1.3 0.0"1685 "source": "https:\/\/github.com\/symfony\/polyfill-php80\/tree\/v1.31.0" 1686 1686 }, 1687 1687 "funding": [ … … 1703 1703 { 1704 1704 "name": "symfony\/translation", 1705 "version": "v5.4.4 0",1706 "version_normalized": "5.4.4 0.0",1705 "version": "v5.4.42", 1706 "version_normalized": "5.4.42.0", 1707 1707 "source": { 1708 1708 "type": "git", 1709 1709 "url": "https:\/\/github.com\/symfony\/translation.git", 1710 "reference": " bb51d7f183756d1ac03f50ea47dc5726518cc7e8"1711 }, 1712 "dist": { 1713 "type": "zip", 1714 "url": "https:\/\/api.github.com\/repos\/symfony\/translation\/zipball\/ bb51d7f183756d1ac03f50ea47dc5726518cc7e8",1715 "reference": " bb51d7f183756d1ac03f50ea47dc5726518cc7e8",1710 "reference": "1d702caccb9f091b738696185f778b1bfef7b5b2" 1711 }, 1712 "dist": { 1713 "type": "zip", 1714 "url": "https:\/\/api.github.com\/repos\/symfony\/translation\/zipball\/1d702caccb9f091b738696185f778b1bfef7b5b2", 1715 "reference": "1d702caccb9f091b738696185f778b1bfef7b5b2", 1716 1716 "shasum": "" 1717 1717 }, … … 1752 1752 "symfony\/yaml": "" 1753 1753 }, 1754 "time": "2024-0 5-31T14:33:22+00:00",1754 "time": "2024-07-26T12:14:19+00:00", 1755 1755 "type": "library", 1756 1756 "installation-source": "dist", … … 1783 1783 "homepage": "https:\/\/symfony.com", 1784 1784 "support": { 1785 "source": "https:\/\/github.com\/symfony\/translation\/tree\/v5.4.4 0"1785 "source": "https:\/\/github.com\/symfony\/translation\/tree\/v5.4.42" 1786 1786 }, 1787 1787 "funding": [ -
dotmailer-sign-up-widget/trunk/vendor/composer/installed.php
r3110990 r3150005 3 3 namespace Dotdigital_WordPress_Vendor; 4 4 5 return array('root' => array('name' => 'dotdigital/dotdigital-for-wordpress', 'pretty_version' => '7.2. 3', 'version' => '7.2.3.0', 'reference' => null, 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), 'dev' => \false), 'versions' => array('carbonphp/carbon-doctrine-types' => array('pretty_version' => '2.1.0', 'version' => '2.1.0.0', 'reference' => '99f76ffa36cce3b70a4a6abce41dba15ca2e84cb', 'type' => 'library', 'install_path' => __DIR__ . '/../carbonphp/carbon-doctrine-types', 'aliases' => array(), 'dev_requirement' => \false), 'clue/stream-filter' => array('pretty_version' => 'v1.7.0', 'version' => '1.7.0.0', 'reference' => '049509fef80032cb3f051595029ab75b49a3c2f7', 'type' => 'library', 'install_path' => __DIR__ . '/../clue/stream-filter', 'aliases' => array(), 'dev_requirement' => \false), 'dotdigital/dotdigital-for-wordpress' => array('pretty_version' => '7.2.3', 'version' => '7.2.3.0', 'reference' => null, 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), 'dev_requirement' => \false), 'dotdigital/dotdigital-php' => array('pretty_version' => '2.4.1', 'version' => '2.4.1.0', 'reference' => '6f8f3ea1f01a5ffe2410be8e1c9de59a950ed8cc', 'type' => 'library', 'install_path' => __DIR__ . '/../dotdigital/dotdigital-php', 'aliases' => array(), 'dev_requirement' => \false), 'guzzlehttp/guzzle' => array('pretty_version' => '7.8.1', 'version' => '7.8.1.0', 'reference' => '41042bc7ab002487b876a0683fc8dce04ddce104', 'type' => 'library', 'install_path' => __DIR__ . '/../guzzlehttp/guzzle', 'aliases' => array(), 'dev_requirement' => \false), 'guzzlehttp/promises' => array('pretty_version' => '2.0.2', 'version' => '2.0.2.0', 'reference' => 'bbff78d96034045e58e13dedd6ad91b5d1253223', 'type' => 'library', 'install_path' => __DIR__ . '/../guzzlehttp/promises', 'aliases' => array(), 'dev_requirement' => \false), 'guzzlehttp/psr7' => array('pretty_version' => '2.6.2', 'version' => '2.6.2.0', 'reference' => '45b30f99ac27b5ca93cb4831afe16285f57b8221', 'type' => 'library', 'install_path' => __DIR__ . '/../guzzlehttp/psr7', 'aliases' => array(), 'dev_requirement' => \false), 'nesbot/carbon' => array('pretty_version' => '2.72.5', 'version' => '2.72.5.0', 'reference' => 'afd46589c216118ecd48ff2b95d77596af1e57ed', 'type' => 'library', 'install_path' => __DIR__ . '/../nesbot/carbon', 'aliases' => array(), 'dev_requirement' => \false), 'php-http/async-client-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '1.0', 1 => '*')), 'php-http/client-common' => array('pretty_version' => '2.7.1', 'version' => '2.7.1.0', 'reference' => '1e19c059b0e4d5f717bf5d524d616165aeab0612', 'type' => 'library', 'install_path' => __DIR__ . '/../php-http/client-common', 'aliases' => array(), 'dev_requirement' => \false), 'php-http/client-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '1.0', 1 => '*')), 'php-http/curl-client' => array('pretty_version' => '2.3.2', 'version' => '2.3.2.0', 'reference' => '0b869922458b1cde9137374545ed4fff7ac83623', 'type' => 'library', 'install_path' => __DIR__ . '/../php-http/curl-client', 'aliases' => array(), 'dev_requirement' => \false), 'php-http/discovery' => array('pretty_version' => '1.19.4', 'version' => '1.19.4.0', 'reference' => '0700efda8d7526335132360167315fdab3aeb599', 'type' => 'composer-plugin', 'install_path' => __DIR__ . '/../php-http/discovery', 'aliases' => array(), 'dev_requirement' => \false), 'php-http/httplug' => array('pretty_version' => '2.4.0', 'version' => '2.4.0.0', 'reference' => '625ad742c360c8ac580fcc647a1541d29e257f67', 'type' => 'library', 'install_path' => __DIR__ . '/../php-http/httplug', 'aliases' => array(), 'dev_requirement' => \false), 'php-http/message' => array('pretty_version' => '1.16.1', 'version' => '1.16.1.0', 'reference' => '5997f3289332c699fa2545c427826272498a2088', 'type' => 'library', 'install_path' => __DIR__ . '/../php-http/message', 'aliases' => array(), 'dev_requirement' => \false), 'php-http/message-factory-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '1.0')), 'php-http/promise' => array('pretty_version' => '1.3.1', 'version' => '1.3.1.0', 'reference' => 'fc85b1fba37c169a69a07ef0d5a8075770cc1f83', 'type' => 'library', 'install_path' => __DIR__ . '/../php-http/promise', 'aliases' => array(), 'dev_requirement' => \false), 'psr/clock' => array('pretty_version' => '1.0.0', 'version' => '1.0.0.0', 'reference' => 'e41a24703d4560fd0acb709162f73b8adfc3aa0d', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/clock', 'aliases' => array(), 'dev_requirement' => \false), 'psr/clock-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '1.0')), 'psr/http-client' => array('pretty_version' => '1.0.3', 'version' => '1.0.3.0', 'reference' => 'bb5906edc1c324c9a05aa0873d40117941e5fa90', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/http-client', 'aliases' => array(), 'dev_requirement' => \false), 'psr/http-client-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '1.0', 1 => '*')), 'psr/http-factory' => array('pretty_version' => '1.1.0', 'version' => '1.1.0.0', 'reference' => '2b4765fddfe3b508ac62f829e852b1501d3f6e8a', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/http-factory', 'aliases' => array(), 'dev_requirement' => \false), 'psr/http-factory-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '1.0', 1 => '*')), 'psr/http-message' => array('pretty_version' => '2.0', 'version' => '2.0.0.0', 'reference' => '402d35bcb92c70c026d1a6a9883f06b2ead23d71', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/http-message', 'aliases' => array(), 'dev_requirement' => \false), 'psr/http-message-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '1.0', 1 => '*')), 'ralouphie/getallheaders' => array('pretty_version' => '3.0.3', 'version' => '3.0.3.0', 'reference' => '120b605dfeb996808c31b6477290a714d356e822', 'type' => 'library', 'install_path' => __DIR__ . '/../ralouphie/getallheaders', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/deprecation-contracts' => array('pretty_version' => 'v2.5.3', 'version' => '2.5.3.0', 'reference' => '80d075412b557d41002320b96a096ca65aa2c98d', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/deprecation-contracts', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/options-resolver' => array('pretty_version' => 'v5.4.40', 'version' => '5.4.40.0', 'reference' => 'bd1afbde6613a8d6b956115e0e14b196191fd0c4', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/options-resolver', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/polyfill-mbstring' => array('pretty_version' => 'v1.30.0', 'version' => '1.30.0.0', 'reference' => 'fd22ab50000ef01661e2a31d850ebaa297f8e03c', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/polyfill-mbstring', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/polyfill-php73' => array('pretty_version' => 'v1.30.0', 'version' => '1.30.0.0', 'reference' => 'ec444d3f3f6505bb28d11afa41e75faadebc10a1', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/polyfill-php73', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/polyfill-php80' => array('pretty_version' => 'v1.30.0', 'version' => '1.30.0.0', 'reference' => '77fa7995ac1b21ab60769b7323d600a991a90433', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/polyfill-php80', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/translation' => array('pretty_version' => 'v5.4.40', 'version' => '5.4.40.0', 'reference' => 'bb51d7f183756d1ac03f50ea47dc5726518cc7e8', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/translation', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/translation-contracts' => array('pretty_version' => 'v2.5.3', 'version' => '2.5.3.0', 'reference' => 'b0073a77ac0b7ea55131020e87b1e3af540f4664', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/translation-contracts', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/translation-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '2.3'))));5 return array('root' => array('name' => 'dotdigital/dotdigital-for-wordpress', 'pretty_version' => '7.2.4', 'version' => '7.2.4.0', 'reference' => null, 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), 'dev' => \false), 'versions' => array('carbonphp/carbon-doctrine-types' => array('pretty_version' => '2.1.0', 'version' => '2.1.0.0', 'reference' => '99f76ffa36cce3b70a4a6abce41dba15ca2e84cb', 'type' => 'library', 'install_path' => __DIR__ . '/../carbonphp/carbon-doctrine-types', 'aliases' => array(), 'dev_requirement' => \false), 'clue/stream-filter' => array('pretty_version' => 'v1.7.0', 'version' => '1.7.0.0', 'reference' => '049509fef80032cb3f051595029ab75b49a3c2f7', 'type' => 'library', 'install_path' => __DIR__ . '/../clue/stream-filter', 'aliases' => array(), 'dev_requirement' => \false), 'dotdigital/dotdigital-for-wordpress' => array('pretty_version' => '7.2.4', 'version' => '7.2.4.0', 'reference' => null, 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), 'dev_requirement' => \false), 'dotdigital/dotdigital-php' => array('pretty_version' => '2.4.1', 'version' => '2.4.1.0', 'reference' => '6f8f3ea1f01a5ffe2410be8e1c9de59a950ed8cc', 'type' => 'library', 'install_path' => __DIR__ . '/../dotdigital/dotdigital-php', 'aliases' => array(), 'dev_requirement' => \false), 'guzzlehttp/guzzle' => array('pretty_version' => '7.9.2', 'version' => '7.9.2.0', 'reference' => 'd281ed313b989f213357e3be1a179f02196ac99b', 'type' => 'library', 'install_path' => __DIR__ . '/../guzzlehttp/guzzle', 'aliases' => array(), 'dev_requirement' => \false), 'guzzlehttp/promises' => array('pretty_version' => '2.0.3', 'version' => '2.0.3.0', 'reference' => '6ea8dd08867a2a42619d65c3deb2c0fcbf81c8f8', 'type' => 'library', 'install_path' => __DIR__ . '/../guzzlehttp/promises', 'aliases' => array(), 'dev_requirement' => \false), 'guzzlehttp/psr7' => array('pretty_version' => '2.7.0', 'version' => '2.7.0.0', 'reference' => 'a70f5c95fb43bc83f07c9c948baa0dc1829bf201', 'type' => 'library', 'install_path' => __DIR__ . '/../guzzlehttp/psr7', 'aliases' => array(), 'dev_requirement' => \false), 'nesbot/carbon' => array('pretty_version' => '2.72.5', 'version' => '2.72.5.0', 'reference' => 'afd46589c216118ecd48ff2b95d77596af1e57ed', 'type' => 'library', 'install_path' => __DIR__ . '/../nesbot/carbon', 'aliases' => array(), 'dev_requirement' => \false), 'php-http/async-client-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '*', 1 => '1.0')), 'php-http/client-common' => array('pretty_version' => '2.7.1', 'version' => '2.7.1.0', 'reference' => '1e19c059b0e4d5f717bf5d524d616165aeab0612', 'type' => 'library', 'install_path' => __DIR__ . '/../php-http/client-common', 'aliases' => array(), 'dev_requirement' => \false), 'php-http/client-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '*', 1 => '1.0')), 'php-http/curl-client' => array('pretty_version' => '2.3.2', 'version' => '2.3.2.0', 'reference' => '0b869922458b1cde9137374545ed4fff7ac83623', 'type' => 'library', 'install_path' => __DIR__ . '/../php-http/curl-client', 'aliases' => array(), 'dev_requirement' => \false), 'php-http/discovery' => array('pretty_version' => '1.19.4', 'version' => '1.19.4.0', 'reference' => '0700efda8d7526335132360167315fdab3aeb599', 'type' => 'composer-plugin', 'install_path' => __DIR__ . '/../php-http/discovery', 'aliases' => array(), 'dev_requirement' => \false), 'php-http/httplug' => array('pretty_version' => '2.4.0', 'version' => '2.4.0.0', 'reference' => '625ad742c360c8ac580fcc647a1541d29e257f67', 'type' => 'library', 'install_path' => __DIR__ . '/../php-http/httplug', 'aliases' => array(), 'dev_requirement' => \false), 'php-http/message' => array('pretty_version' => '1.16.1', 'version' => '1.16.1.0', 'reference' => '5997f3289332c699fa2545c427826272498a2088', 'type' => 'library', 'install_path' => __DIR__ . '/../php-http/message', 'aliases' => array(), 'dev_requirement' => \false), 'php-http/message-factory-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '1.0')), 'php-http/promise' => array('pretty_version' => '1.3.1', 'version' => '1.3.1.0', 'reference' => 'fc85b1fba37c169a69a07ef0d5a8075770cc1f83', 'type' => 'library', 'install_path' => __DIR__ . '/../php-http/promise', 'aliases' => array(), 'dev_requirement' => \false), 'psr/clock' => array('pretty_version' => '1.0.0', 'version' => '1.0.0.0', 'reference' => 'e41a24703d4560fd0acb709162f73b8adfc3aa0d', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/clock', 'aliases' => array(), 'dev_requirement' => \false), 'psr/clock-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '1.0')), 'psr/http-client' => array('pretty_version' => '1.0.3', 'version' => '1.0.3.0', 'reference' => 'bb5906edc1c324c9a05aa0873d40117941e5fa90', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/http-client', 'aliases' => array(), 'dev_requirement' => \false), 'psr/http-client-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '*', 1 => '1.0')), 'psr/http-factory' => array('pretty_version' => '1.1.0', 'version' => '1.1.0.0', 'reference' => '2b4765fddfe3b508ac62f829e852b1501d3f6e8a', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/http-factory', 'aliases' => array(), 'dev_requirement' => \false), 'psr/http-factory-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '*', 1 => '1.0')), 'psr/http-message' => array('pretty_version' => '2.0', 'version' => '2.0.0.0', 'reference' => '402d35bcb92c70c026d1a6a9883f06b2ead23d71', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/http-message', 'aliases' => array(), 'dev_requirement' => \false), 'psr/http-message-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '*', 1 => '1.0')), 'ralouphie/getallheaders' => array('pretty_version' => '3.0.3', 'version' => '3.0.3.0', 'reference' => '120b605dfeb996808c31b6477290a714d356e822', 'type' => 'library', 'install_path' => __DIR__ . '/../ralouphie/getallheaders', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/deprecation-contracts' => array('pretty_version' => 'v2.5.3', 'version' => '2.5.3.0', 'reference' => '80d075412b557d41002320b96a096ca65aa2c98d', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/deprecation-contracts', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/options-resolver' => array('pretty_version' => 'v5.4.40', 'version' => '5.4.40.0', 'reference' => 'bd1afbde6613a8d6b956115e0e14b196191fd0c4', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/options-resolver', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/polyfill-mbstring' => array('pretty_version' => 'v1.31.0', 'version' => '1.31.0.0', 'reference' => '85181ba99b2345b0ef10ce42ecac37612d9fd341', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/polyfill-mbstring', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/polyfill-php73' => array('pretty_version' => 'v1.31.0', 'version' => '1.31.0.0', 'reference' => '0f68c03565dcaaf25a890667542e8bd75fe7e5bb', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/polyfill-php73', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/polyfill-php80' => array('pretty_version' => 'v1.31.0', 'version' => '1.31.0.0', 'reference' => '60328e362d4c2c802a54fcbf04f9d3fb892b4cf8', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/polyfill-php80', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/translation' => array('pretty_version' => 'v5.4.42', 'version' => '5.4.42.0', 'reference' => '1d702caccb9f091b738696185f778b1bfef7b5b2', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/translation', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/translation-contracts' => array('pretty_version' => 'v2.5.3', 'version' => '2.5.3.0', 'reference' => 'b0073a77ac0b7ea55131020e87b1e3af540f4664', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/translation-contracts', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/translation-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '2.3')))); -
dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/guzzle/composer.json
r3110990 r3150005 51 51 } 52 52 ], 53 "repositories": [ 54 { 55 "type": "package", 56 "package": { 57 "name": "guzzle\/client-integration-tests", 58 "version": "v3.0.2", 59 "dist": { 60 "url": "https:\/\/codeload.github.com\/guzzle\/client-integration-tests\/zip\/2c025848417c1135031fdf9c728ee53d0a7ceaee", 61 "type": "zip" 62 }, 63 "require": { 64 "php": "^7.2.5 || ^8.0", 65 "phpunit\/phpunit": "^7.5.20 || ^8.5.8 || ^9.3.11", 66 "php-http\/message": "^1.0 || ^2.0", 67 "guzzlehttp\/psr7": "^1.7 || ^2.0", 68 "th3n3rd\/cartesian-product": "^0.3" 69 }, 70 "autoload": { 71 "psr-4": { 72 "Http\\Client\\Tests\\": "src\/" 73 } 74 }, 75 "bin": [ 76 "bin\/http_test_server" 77 ] 78 } 79 } 80 ], 53 81 "require": { 54 82 "php": "^7.2.5 || ^8.0", 55 83 "ext-json": "*", 56 "guzzlehttp\/promises": "^1.5.3 || ^2.0. 1",57 "guzzlehttp\/psr7": "^ 1.9.1 || ^2.5.1",84 "guzzlehttp\/promises": "^1.5.3 || ^2.0.3", 85 "guzzlehttp\/psr7": "^2.7.0", 58 86 "psr\/http-client": "^1.0", 59 87 "symfony\/deprecation-contracts": "^2.2 || ^3.0" … … 65 93 "ext-curl": "*", 66 94 "bamarni\/composer-bin-plugin": "^1.8.2", 67 " php-http\/client-integration-tests": "dev-master#2c025848417c1135031fdf9c728ee53d0a7ceaee as 3.0.999",95 "guzzle\/client-integration-tests": "3.0.2", 68 96 "php-http\/message-factory": "^1.1", 69 "phpunit\/phpunit": "^8.5.3 6 || ^9.6.15",97 "phpunit\/phpunit": "^8.5.39 || ^9.6.20", 70 98 "psr\/log": "^1.1 || ^2.0 || ^3.0" 71 99 }, -
dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/guzzle/src/BodySummarizer.php
r3041822 r3150005 10 10 */ 11 11 private $truncateAt; 12 public function __construct( int $truncateAt = null)12 public function __construct(?int $truncateAt = null) 13 13 { 14 14 $this->truncateAt = $truncateAt; … … 19 19 public function summarize(MessageInterface $message) : ?string 20 20 { 21 return $this->truncateAt === null ? \Dotdigital_WordPress_Vendor\GuzzleHttp\Psr7\Message::bodySummary($message) : \Dotdigital_WordPress_Vendor\GuzzleHttp\Psr7\Message::bodySummary($message, $this->truncateAt);21 return $this->truncateAt === null ? Psr7\Message::bodySummary($message) : Psr7\Message::bodySummary($message, $this->truncateAt); 22 22 } 23 23 } -
dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/guzzle/src/Client.php
r3041822 r3150005 50 50 * @param array $config Client configuration settings. 51 51 * 52 * @see \GuzzleHttp\RequestOptions for a list of available request options.52 * @see RequestOptions for a list of available request options. 53 53 */ 54 54 public function __construct(array $config = []) … … 179 179 * @deprecated Client::getConfig will be removed in guzzlehttp/guzzle:8.0. 180 180 */ 181 public function getConfig( string $option = null)181 public function getConfig(?string $option = null) 182 182 { 183 183 return $option === null ? $this->config : $this->config[$option] ?? null; -
dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/guzzle/src/ClientInterface.php
r3041822 r3150005 75 75 * @deprecated ClientInterface::getConfig will be removed in guzzlehttp/guzzle:8.0. 76 76 */ 77 public function getConfig( string $option = null);77 public function getConfig(?string $option = null); 78 78 } -
dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/guzzle/src/Cookie/CookieJar.php
r3110990 r3150005 87 87 }, $this->getIterator()->getArrayCopy()); 88 88 } 89 public function clear( string $domain = null, string $path = null,string $name = null) : void89 public function clear(?string $domain = null, ?string $path = null, ?string $name = null) : void 90 90 { 91 91 if (!$domain) { -
dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/guzzle/src/Cookie/CookieJarInterface.php
r3041822 r3150005 59 59 * @param string|null $name Clears cookies matching a domain, path, and name 60 60 */ 61 public function clear( string $domain = null, string $path = null,string $name = null) : void;61 public function clear(?string $domain = null, ?string $path = null, ?string $name = null) : void; 62 62 /** 63 63 * Discard all sessions cookies. -
dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php
r3041822 r3150005 10 10 class BadResponseException extends RequestException 11 11 { 12 public function __construct(string $message, RequestInterface $request, ResponseInterface $response, \Throwable $previous = null, array $handlerContext = [])12 public function __construct(string $message, RequestInterface $request, ResponseInterface $response, ?\Throwable $previous = null, array $handlerContext = []) 13 13 { 14 14 parent::__construct($message, $request, $response, $previous, $handlerContext); -
dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/guzzle/src/Exception/ConnectException.php
r3041822 r3150005 20 20 */ 21 21 private $handlerContext; 22 public function __construct(string $message, RequestInterface $request, \Throwable $previous = null, array $handlerContext = [])22 public function __construct(string $message, RequestInterface $request, ?\Throwable $previous = null, array $handlerContext = []) 23 23 { 24 24 parent::__construct($message, 0, $previous); -
dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php
r3041822 r3150005 8 8 use Dotdigital_WordPress_Vendor\Psr\Http\Message\RequestInterface; 9 9 use Dotdigital_WordPress_Vendor\Psr\Http\Message\ResponseInterface; 10 use Dotdigital_WordPress_Vendor\Psr\Http\Message\UriInterface;11 10 /** 12 11 * HTTP Request exception … … 26 25 */ 27 26 private $handlerContext; 28 public function __construct(string $message, RequestInterface $request, ResponseInterface $response = null,\Throwable $previous = null, array $handlerContext = [])27 public function __construct(string $message, RequestInterface $request, ?ResponseInterface $response = null, ?\Throwable $previous = null, array $handlerContext = []) 29 28 { 30 29 // Set the code of the exception if the response is set and not future. … … 51 50 * @param BodySummarizerInterface|null $bodySummarizer Optional body summarizer 52 51 */ 53 public static function create(RequestInterface $request, ResponseInterface $response = null, \Throwable $previous = null, array $handlerContext = [],BodySummarizerInterface $bodySummarizer = null) : self52 public static function create(RequestInterface $request, ?ResponseInterface $response = null, ?\Throwable $previous = null, array $handlerContext = [], ?BodySummarizerInterface $bodySummarizer = null) : self 54 53 { 55 54 if (!$response) { … … 67 66 $className = __CLASS__; 68 67 } 69 $uri = $request->getUri(); 70 $uri = static::obfuscateUri($uri); 68 $uri = \Dotdigital_WordPress_Vendor\GuzzleHttp\Psr7\Utils::redactUserInfo($request->getUri()); 71 69 // Client Error: `GET /` resulted in a `404 Not Found` response: 72 70 // <html> ... (truncated) … … 77 75 } 78 76 return new $className($message, $request, $response, $previous, $handlerContext); 79 }80 /**81 * Obfuscates URI if there is a username and a password present82 */83 private static function obfuscateUri(UriInterface $uri) : UriInterface84 {85 $userInfo = $uri->getUserInfo();86 if (\false !== ($pos = \strpos($userInfo, ':'))) {87 return $uri->withUserInfo(\substr($userInfo, 0, $pos), '***');88 }89 return $uri;90 77 } 91 78 /** -
dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php
r3110990 r3150005 12 12 use Dotdigital_WordPress_Vendor\GuzzleHttp\Utils; 13 13 use Dotdigital_WordPress_Vendor\Psr\Http\Message\RequestInterface; 14 use Dotdigital_WordPress_Vendor\Psr\Http\Message\UriInterface; 14 15 /** 15 16 * Creates curl resources from a request … … 41 42 public function create(RequestInterface $request, array $options) : EasyHandle 42 43 { 44 $protocolVersion = $request->getProtocolVersion(); 45 if ('2' === $protocolVersion || '2.0' === $protocolVersion) { 46 if (!self::supportsHttp2()) { 47 throw new ConnectException('HTTP/2 is supported by the cURL handler, however libcurl is built without HTTP/2 support.', $request); 48 } 49 } elseif ('1.0' !== $protocolVersion && '1.1' !== $protocolVersion) { 50 throw new ConnectException(\sprintf('HTTP/%s is not supported by the cURL handler.', $protocolVersion), $request); 51 } 43 52 if (isset($options['curl']['body_as_string'])) { 44 53 $options['_body_as_string'] = $options['curl']['body_as_string']; … … 61 70 \curl_setopt_array($easy->handle, $conf); 62 71 return $easy; 72 } 73 private static function supportsHttp2() : bool 74 { 75 static $supportsHttp2 = null; 76 if (null === $supportsHttp2) { 77 $supportsHttp2 = self::supportsTls12() && \defined('CURL_VERSION_HTTP2') && \CURL_VERSION_HTTP2 & \curl_version()['features']; 78 } 79 return $supportsHttp2; 80 } 81 private static function supportsTls12() : bool 82 { 83 static $supportsTls12 = null; 84 if (null === $supportsTls12) { 85 $supportsTls12 = \CURL_SSLVERSION_TLSv1_2 & \curl_version()['features']; 86 } 87 return $supportsTls12; 88 } 89 private static function supportsTls13() : bool 90 { 91 static $supportsTls13 = null; 92 if (null === $supportsTls13) { 93 $supportsTls13 = \defined('CURL_SSLVERSION_TLSv1_3') && \CURL_SSLVERSION_TLSv1_3 & \curl_version()['features']; 94 } 95 return $supportsTls13; 63 96 } 64 97 public function release(EasyHandle $easy) : void … … 119 152 // Get error information and release the handle to the factory. 120 153 $ctx = ['errno' => $easy->errno, 'error' => \curl_error($easy->handle), 'appconnect_time' => \curl_getinfo($easy->handle, \CURLINFO_APPCONNECT_TIME)] + \curl_getinfo($easy->handle); 121 $ctx[self::CURL_VERSION_STR] = \curl_version()['version'];154 $ctx[self::CURL_VERSION_STR] = self::getCurlVersion(); 122 155 $factory->release($easy); 123 156 // Retry when nothing is present or when curl failed to rewind. … … 127 160 return self::createRejection($easy, $ctx); 128 161 } 162 private static function getCurlVersion() : string 163 { 164 static $curlVersion = null; 165 if (null === $curlVersion) { 166 $curlVersion = \curl_version()['version']; 167 } 168 return $curlVersion; 169 } 129 170 private static function createRejection(EasyHandle $easy, array $ctx) : PromiseInterface 130 171 { … … 138 179 return P\Create::rejectionFor(new RequestException('An error was encountered during the on_headers event', $easy->request, $easy->response, $easy->onHeadersException, $ctx)); 139 180 } 140 $message = \sprintf('cURL error %s: %s (%s)', $ctx['errno'], $ctx['error'], 'see https://curl.haxx.se/libcurl/c/libcurl-errors.html'); 141 $uriString = (string) $easy->request->getUri(); 142 if ($uriString !== '' && \false === \strpos($ctx['error'], $uriString)) { 143 $message .= \sprintf(' for %s', $uriString); 181 $uri = $easy->request->getUri(); 182 $sanitizedError = self::sanitizeCurlError($ctx['error'] ?? '', $uri); 183 $message = \sprintf('cURL error %s: %s (%s)', $ctx['errno'], $sanitizedError, 'see https://curl.haxx.se/libcurl/c/libcurl-errors.html'); 184 if ('' !== $sanitizedError) { 185 $redactedUriString = \Dotdigital_WordPress_Vendor\GuzzleHttp\Psr7\Utils::redactUserInfo($uri)->__toString(); 186 if ($redactedUriString !== '' && \false === \strpos($sanitizedError, $redactedUriString)) { 187 $message .= \sprintf(' for %s', $redactedUriString); 188 } 144 189 } 145 190 // Create a connection exception if it was a specific error code. … … 147 192 return P\Create::rejectionFor($error); 148 193 } 194 private static function sanitizeCurlError(string $error, UriInterface $uri) : string 195 { 196 if ('' === $error) { 197 return $error; 198 } 199 $baseUri = $uri->withQuery('')->withFragment(''); 200 $baseUriString = $baseUri->__toString(); 201 if ('' === $baseUriString) { 202 return $error; 203 } 204 $redactedUriString = \Dotdigital_WordPress_Vendor\GuzzleHttp\Psr7\Utils::redactUserInfo($baseUri)->__toString(); 205 return \str_replace($baseUriString, $redactedUriString, $error); 206 } 149 207 /** 150 208 * @return array<int|string, mixed> … … 157 215 } 158 216 $version = $easy->request->getProtocolVersion(); 159 if ($version == 1.1) { 217 if ('2' === $version || '2.0' === $version) { 218 $conf[\CURLOPT_HTTP_VERSION] = \CURL_HTTP_VERSION_2_0; 219 } elseif ('1.1' === $version) { 160 220 $conf[\CURLOPT_HTTP_VERSION] = \CURL_HTTP_VERSION_1_1; 161 } elseif ($version == 2.0) {162 $conf[\CURLOPT_HTTP_VERSION] = \CURL_HTTP_VERSION_2_0;163 221 } else { 164 222 $conf[\CURLOPT_HTTP_VERSION] = \CURL_HTTP_VERSION_1_0; … … 286 344 // sets a matching 'Accept-Encoding' header. 287 345 $conf[\CURLOPT_ENCODING] = ''; 288 // But as the user did not specify any acceptable encodings we need 289 // to overwrite this implicit header with an empty one. 346 // But as the user did not specify any encoding preference, 347 // let's leave it up to server by preventing curl from sending 348 // the header, which will be interpreted as 'Accept-Encoding: *'. 349 // https://www.rfc-editor.org/rfc/rfc9110#field.accept-encoding 290 350 $conf[\CURLOPT_HTTPHEADER][] = 'Accept-Encoding:'; 291 351 } … … 344 404 } 345 405 if (isset($options['crypto_method'])) { 346 if (\STREAM_CRYPTO_METHOD_TLSv1_0_CLIENT === $options['crypto_method']) { 347 if (!\defined('CURL_SSLVERSION_TLSv1_0')) { 348 throw new \InvalidArgumentException('Invalid crypto_method request option: TLS 1.0 not supported by your version of cURL'); 349 } 406 $protocolVersion = $easy->request->getProtocolVersion(); 407 // If HTTP/2, upgrade TLS 1.0 and 1.1 to 1.2 408 if ('2' === $protocolVersion || '2.0' === $protocolVersion) { 409 if (\STREAM_CRYPTO_METHOD_TLSv1_0_CLIENT === $options['crypto_method'] || \STREAM_CRYPTO_METHOD_TLSv1_1_CLIENT === $options['crypto_method'] || \STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT === $options['crypto_method']) { 410 $conf[\CURLOPT_SSLVERSION] = \CURL_SSLVERSION_TLSv1_2; 411 } elseif (\defined('STREAM_CRYPTO_METHOD_TLSv1_3_CLIENT') && \STREAM_CRYPTO_METHOD_TLSv1_3_CLIENT === $options['crypto_method']) { 412 if (!self::supportsTls13()) { 413 throw new \InvalidArgumentException('Invalid crypto_method request option: TLS 1.3 not supported by your version of cURL'); 414 } 415 $conf[\CURLOPT_SSLVERSION] = \CURL_SSLVERSION_TLSv1_3; 416 } else { 417 throw new \InvalidArgumentException('Invalid crypto_method request option: unknown version provided'); 418 } 419 } elseif (\STREAM_CRYPTO_METHOD_TLSv1_0_CLIENT === $options['crypto_method']) { 350 420 $conf[\CURLOPT_SSLVERSION] = \CURL_SSLVERSION_TLSv1_0; 351 421 } elseif (\STREAM_CRYPTO_METHOD_TLSv1_1_CLIENT === $options['crypto_method']) { 352 if (!\defined('CURL_SSLVERSION_TLSv1_1')) {353 throw new \InvalidArgumentException('Invalid crypto_method request option: TLS 1.1 not supported by your version of cURL');354 }355 422 $conf[\CURLOPT_SSLVERSION] = \CURL_SSLVERSION_TLSv1_1; 356 423 } elseif (\STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT === $options['crypto_method']) { 357 if (! \defined('CURL_SSLVERSION_TLSv1_2')) {424 if (!self::supportsTls12()) { 358 425 throw new \InvalidArgumentException('Invalid crypto_method request option: TLS 1.2 not supported by your version of cURL'); 359 426 } 360 427 $conf[\CURLOPT_SSLVERSION] = \CURL_SSLVERSION_TLSv1_2; 361 428 } elseif (\defined('STREAM_CRYPTO_METHOD_TLSv1_3_CLIENT') && \STREAM_CRYPTO_METHOD_TLSv1_3_CLIENT === $options['crypto_method']) { 362 if (! \defined('CURL_SSLVERSION_TLSv1_3')) {429 if (!self::supportsTls13()) { 363 430 throw new \InvalidArgumentException('Invalid crypto_method request option: TLS 1.3 not supported by your version of cURL'); 364 431 } -
dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php
r3041822 r3150005 3 3 namespace Dotdigital_WordPress_Vendor\GuzzleHttp\Handler; 4 4 5 use Closure; 5 6 use Dotdigital_WordPress_Vendor\GuzzleHttp\Promise as P; 6 7 use Dotdigital_WordPress_Vendor\GuzzleHttp\Promise\Promise; … … 130 131 } 131 132 } 133 // Run curl_multi_exec in the queue to enable other async tasks to run 134 P\Utils::queue()->add(Closure::fromCallable([$this, 'tickInQueue'])); 132 135 // Step through the task queue which may add additional requests. 133 136 P\Utils::queue()->run(); … … 138 141 } 139 142 while (\curl_multi_exec($this->_mh, $this->active) === \CURLM_CALL_MULTI_PERFORM) { 143 // Prevent busy looping for slow HTTP requests. 144 \curl_multi_select($this->_mh, $this->selectTimeout); 140 145 } 141 146 $this->processMessages(); 147 } 148 /** 149 * Runs \curl_multi_exec() inside the event loop, to prevent busy looping 150 */ 151 private function tickInQueue() : void 152 { 153 if (\curl_multi_exec($this->_mh, $this->active) === \CURLM_CALL_MULTI_PERFORM) { 154 \curl_multi_select($this->_mh, 0); 155 P\Utils::queue()->add(Closure::fromCallable([$this, 'tickInQueue'])); 156 } 142 157 } 143 158 /** -
dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/guzzle/src/Handler/MockHandler.php
r3041822 r3150005 47 47 * @param callable|null $onRejected Callback to invoke when the return value is rejected. 48 48 */ 49 public static function createWithMiddleware( array $queue = null, callable $onFulfilled = null,callable $onRejected = null) : HandlerStack49 public static function createWithMiddleware(?array $queue = null, ?callable $onFulfilled = null, ?callable $onRejected = null) : HandlerStack 50 50 { 51 51 return HandlerStack::create(new self($queue, $onFulfilled, $onRejected)); … … 53 53 /** 54 54 * The passed in value must be an array of 55 * {@see \Psr\Http\Message\ResponseInterface} objects, Exceptions,55 * {@see ResponseInterface} objects, Exceptions, 56 56 * callables, or Promises. 57 57 * … … 60 60 * @param callable|null $onRejected Callback to invoke when the return value is rejected. 61 61 */ 62 public function __construct( array $queue = null, callable $onFulfilled = null,callable $onRejected = null)62 public function __construct(?array $queue = null, ?callable $onFulfilled = null, ?callable $onRejected = null) 63 63 { 64 64 $this->onFulfilled = $onFulfilled; … … 164 164 * @param mixed $reason Promise or reason. 165 165 */ 166 private function invokeStats(RequestInterface $request, array $options, ResponseInterface $response = null, $reason = null) : void166 private function invokeStats(RequestInterface $request, array $options, ?ResponseInterface $response = null, $reason = null) : void 167 167 { 168 168 if (isset($options['on_stats'])) { -
dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/guzzle/src/Handler/StreamHandler.php
r3041822 r3150005 38 38 \usleep($options['delay'] * 1000); 39 39 } 40 $protocolVersion = $request->getProtocolVersion(); 41 if ('1.0' !== $protocolVersion && '1.1' !== $protocolVersion) { 42 throw new ConnectException(\sprintf('HTTP/%s is not supported by the stream handler.', $protocolVersion), $request); 43 } 40 44 $startTime = isset($options['on_stats']) ? Utils::currentTime() : null; 41 45 try { … … 63 67 } 64 68 } 65 private function invokeStats(array $options, RequestInterface $request, ?float $startTime, ResponseInterface $response = null,\Throwable $error = null) : void69 private function invokeStats(array $options, RequestInterface $request, ?float $startTime, ?ResponseInterface $response = null, ?\Throwable $error = null) : void 66 70 { 67 71 if (isset($options['on_stats'])) { … … 211 215 // HTTP/1.1 streams using the PHP stream wrapper require a 212 216 // Connection: close header 213 if ($request->getProtocolVersion() == '1.1' && !$request->hasHeader('Connection')) {217 if ($request->getProtocolVersion() === '1.1' && !$request->hasHeader('Connection')) { 214 218 $request = $request->withHeader('Connection', 'close'); 215 219 } -
dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/guzzle/src/HandlerStack.php
r3041822 r3150005 41 41 * system will be utilized. 42 42 */ 43 public static function create( callable $handler = null) : self43 public static function create(?callable $handler = null) : self 44 44 { 45 45 $stack = new self($handler ?: Utils::chooseHandler()); … … 53 53 * @param (callable(RequestInterface, array): PromiseInterface)|null $handler Underlying HTTP handler. 54 54 */ 55 public function __construct( callable $handler = null)55 public function __construct(?callable $handler = null) 56 56 { 57 57 $this->handler = $handler; … … 116 116 * @param string $name Name to register for this middleware. 117 117 */ 118 public function unshift(callable $middleware, string $name = null) : void118 public function unshift(callable $middleware, ?string $name = null) : void 119 119 { 120 120 \array_unshift($this->stack, [$middleware, $name]); -
dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/guzzle/src/MessageFormatter.php
r3041822 r3150005 65 65 * @param \Throwable|null $error Exception that was received 66 66 */ 67 public function format(RequestInterface $request, ResponseInterface $response = null,\Throwable $error = null) : string67 public function format(RequestInterface $request, ?ResponseInterface $response = null, ?\Throwable $error = null) : string 68 68 { 69 69 $cache = []; -
dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/guzzle/src/MessageFormatterInterface.php
r3041822 r3150005 14 14 * @param \Throwable|null $error Exception that was received 15 15 */ 16 public function format(RequestInterface $request, ResponseInterface $response = null,\Throwable $error = null) : string;16 public function format(RequestInterface $request, ?ResponseInterface $response = null, ?\Throwable $error = null) : string; 17 17 } -
dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/guzzle/src/Middleware.php
r3041822 r3150005 49 49 * @return callable(callable): callable Returns a function that accepts the next handler. 50 50 */ 51 public static function httpErrors( BodySummarizerInterface $bodySummarizer = null) : callable51 public static function httpErrors(?BodySummarizerInterface $bodySummarizer = null) : callable 52 52 { 53 53 return static function (callable $handler) use($bodySummarizer) : callable { … … 105 105 * @return callable Returns a function that accepts the next handler. 106 106 */ 107 public static function tap( callable $before = null,callable $after = null) : callable107 public static function tap(?callable $before = null, ?callable $after = null) : callable 108 108 { 109 109 return static function (callable $handler) use($before, $after) : callable { … … 146 146 * @return callable Returns a function that accepts the next handler. 147 147 */ 148 public static function retry(callable $decider, callable $delay = null) : callable148 public static function retry(callable $decider, ?callable $delay = null) : callable 149 149 { 150 150 return static function (callable $handler) use($decider, $delay) : RetryMiddleware { -
dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php
r3041822 r3150005 63 63 } 64 64 $expect = $options['expect'] ?? null; 65 // Return if disabled or if you're not using HTTP/1.1 or HTTP/2.066 if ($expect === \false || $request->getProtocolVersion() < 1.1) {65 // Return if disabled or using HTTP/1.0 66 if ($expect === \false || $request->getProtocolVersion() === '1.0') { 67 67 return; 68 68 } -
dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/guzzle/src/RequestOptions.php
r3110990 r3150005 58 58 * jar to use or what cookies to send. This option only works if your 59 59 * handler has the `cookie` middleware. Valid values are `false` and 60 * an instance of {@see \GuzzleHttp\Cookie\CookieJarInterface}.60 * an instance of {@see Cookie\CookieJarInterface}. 61 61 */ 62 62 public const COOKIES = 'cookies'; -
dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/guzzle/src/RetryMiddleware.php
r3041822 r3150005 37 37 * milliseconds to delay. 38 38 */ 39 public function __construct(callable $decider, callable $nextHandler, callable $delay = null)39 public function __construct(callable $decider, callable $nextHandler, ?callable $delay = null) 40 40 { 41 41 $this->decider = $decider; … … 84 84 }; 85 85 } 86 private function doRetry(RequestInterface $request, array $options, ResponseInterface $response = null) : PromiseInterface86 private function doRetry(RequestInterface $request, array $options, ?ResponseInterface $response = null) : PromiseInterface 87 87 { 88 88 $options['delay'] = ($this->delay)(++$options['retries'], $response, $request); -
dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/guzzle/src/TransferStats.php
r3041822 r3150005 39 39 * @param array $handlerStats Handler specific stats. 40 40 */ 41 public function __construct(RequestInterface $request, ResponseInterface $response = null,float $transferTime = null, $handlerErrorData = null, array $handlerStats = [])41 public function __construct(RequestInterface $request, ?ResponseInterface $response = null, ?float $transferTime = null, $handlerErrorData = null, array $handlerStats = []) 42 42 { 43 43 $this->request = $request; -
dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/guzzle/src/Utils.php
r3110990 r3150005 65 65 return \STDOUT; 66 66 } 67 return \Dotdigital_WordPress_Vendor\GuzzleHttp\Psr7\Utils::tryFopen('php://output', 'w');67 return Psr7\Utils::tryFopen('php://output', 'w'); 68 68 } 69 69 /** … … 79 79 { 80 80 $handler = null; 81 if (\defined('CURLOPT_CUSTOMREQUEST') ) {81 if (\defined('CURLOPT_CUSTOMREQUEST') && \function_exists('curl_version') && \version_compare(\curl_version()['version'], '7.21.2') >= 0) { 82 82 if (\function_exists('curl_multi_exec') && \function_exists('curl_exec')) { 83 83 $handler = Proxy::wrapSync(new CurlMultiHandler(), new CurlHandler()); -
dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/promises/composer.json
r3110990 r3150005 33 33 "require-dev": { 34 34 "bamarni\/composer-bin-plugin": "^1.8.2", 35 "phpunit\/phpunit": "^8.5.3 6 || ^9.6.15"35 "phpunit\/phpunit": "^8.5.39 || ^9.6.20" 36 36 }, 37 37 "autoload": { -
dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/promises/src/Coroutine.php
r3041822 r3150005 77 77 return new self($generatorFn); 78 78 } 79 public function then( callable $onFulfilled = null,callable $onRejected = null) : PromiseInterface79 public function then(?callable $onFulfilled = null, ?callable $onRejected = null) : PromiseInterface 80 80 { 81 81 return $this->result->then($onFulfilled, $onRejected); -
dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/promises/src/Each.php
r3110990 r3150005 21 21 * @param mixed $iterable Iterator or array to iterate over. 22 22 */ 23 public static function of($iterable, callable $onFulfilled = null,callable $onRejected = null) : PromiseInterface23 public static function of($iterable, ?callable $onFulfilled = null, ?callable $onRejected = null) : PromiseInterface 24 24 { 25 25 return (new EachPromise($iterable, ['fulfilled' => $onFulfilled, 'rejected' => $onRejected]))->promise(); … … 36 36 * @param int|callable $concurrency 37 37 */ 38 public static function ofLimit($iterable, $concurrency, callable $onFulfilled = null,callable $onRejected = null) : PromiseInterface38 public static function ofLimit($iterable, $concurrency, ?callable $onFulfilled = null, ?callable $onRejected = null) : PromiseInterface 39 39 { 40 40 return (new EachPromise($iterable, ['fulfilled' => $onFulfilled, 'rejected' => $onRejected, 'concurrency' => $concurrency]))->promise(); … … 48 48 * @param int|callable $concurrency 49 49 */ 50 public static function ofLimitAll($iterable, $concurrency, callable $onFulfilled = null) : PromiseInterface50 public static function ofLimitAll($iterable, $concurrency, ?callable $onFulfilled = null) : PromiseInterface 51 51 { 52 52 return self::ofLimit($iterable, $concurrency, $onFulfilled, function ($reason, $idx, PromiseInterface $aggregate) : void { -
dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/promises/src/FulfilledPromise.php
r3041822 r3150005 25 25 $this->value = $value; 26 26 } 27 public function then( callable $onFulfilled = null,callable $onRejected = null) : PromiseInterface27 public function then(?callable $onFulfilled = null, ?callable $onRejected = null) : PromiseInterface 28 28 { 29 29 // Return itself if there is no onFulfilled function. -
dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/promises/src/Promise.php
r3041822 r3150005 23 23 * @param callable $cancelFn Fn that when invoked cancels the promise. 24 24 */ 25 public function __construct( callable $waitFn = null,callable $cancelFn = null)25 public function __construct(?callable $waitFn = null, ?callable $cancelFn = null) 26 26 { 27 27 $this->waitFn = $waitFn; 28 28 $this->cancelFn = $cancelFn; 29 29 } 30 public function then( callable $onFulfilled = null,callable $onRejected = null) : PromiseInterface30 public function then(?callable $onFulfilled = null, ?callable $onRejected = null) : PromiseInterface 31 31 { 32 32 if ($this->state === self::PENDING) { -
dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/promises/src/PromiseInterface.php
r3041822 r3150005 25 25 * @param callable $onRejected Invoked when the promise is rejected. 26 26 */ 27 public function then( callable $onFulfilled = null,callable $onRejected = null) : PromiseInterface;27 public function then(?callable $onFulfilled = null, ?callable $onRejected = null) : PromiseInterface; 28 28 /** 29 29 * Appends a rejection handler callback to the promise, and returns a new -
dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/promises/src/RejectedPromise.php
r3041822 r3150005 25 25 $this->reason = $reason; 26 26 } 27 public function then( callable $onFulfilled = null,callable $onRejected = null) : PromiseInterface27 public function then(?callable $onFulfilled = null, ?callable $onRejected = null) : PromiseInterface 28 28 { 29 29 // If there's no onRejected callback then just return self. -
dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/promises/src/RejectionException.php
r3110990 r3150005 17 17 * @param string|null $description Optional description. 18 18 */ 19 public function __construct($reason, string $description = null)19 public function __construct($reason, ?string $description = null) 20 20 { 21 21 $this->reason = $reason; -
dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/promises/src/Utils.php
r3041822 r3150005 21 21 * @param TaskQueueInterface|null $assign Optionally specify a new queue instance. 22 22 */ 23 public static function queue( TaskQueueInterface $assign = null) : TaskQueueInterface23 public static function queue(?TaskQueueInterface $assign = null) : TaskQueueInterface 24 24 { 25 25 static $queue; -
dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/psr7/composer.json
r3110990 r3150005 62 62 "require-dev": { 63 63 "bamarni\/composer-bin-plugin": "^1.8.2", 64 "http-interop\/http-factory-tests": " ^0.9",65 "phpunit\/phpunit": "^8.5.3 6 || ^9.6.15"64 "http-interop\/http-factory-tests": "0.9.0", 65 "phpunit\/phpunit": "^8.5.39 || ^9.6.20" 66 66 }, 67 67 "suggest": { -
dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/psr7/src/CachingStream.php
r3041822 r3150005 26 26 * @param StreamInterface $target Optionally specify where data is cached 27 27 */ 28 public function __construct(StreamInterface $stream, StreamInterface $target = null)28 public function __construct(StreamInterface $stream, ?StreamInterface $target = null) 29 29 { 30 30 $this->remoteStream = $stream; -
dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/psr7/src/HttpFactory.php
r3041822 r3150005 24 24 final class HttpFactory implements RequestFactoryInterface, ResponseFactoryInterface, ServerRequestFactoryInterface, StreamFactoryInterface, UploadedFileFactoryInterface, UriFactoryInterface 25 25 { 26 public function createUploadedFile(StreamInterface $stream, int $size = null, int $error = \UPLOAD_ERR_OK, string $clientFilename = null,string $clientMediaType = null) : UploadedFileInterface26 public function createUploadedFile(StreamInterface $stream, ?int $size = null, int $error = \UPLOAD_ERR_OK, ?string $clientFilename = null, ?string $clientMediaType = null) : UploadedFileInterface 27 27 { 28 28 if ($size === null) { -
dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/psr7/src/MultipartStream.php
r3110990 r3150005 28 28 * @throws \InvalidArgumentException 29 29 */ 30 public function __construct(array $elements = [], string $boundary = null)30 public function __construct(array $elements = [], ?string $boundary = null) 31 31 { 32 32 $this->boundary = $boundary ?: \bin2hex(\random_bytes(20)); -
dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/psr7/src/Query.php
r3041822 r3150005 58 58 * encountered (like `http_build_query()` would). 59 59 * 60 * @param array $params Query string parameters. 61 * @param int|false $encoding Set to false to not encode, PHP_QUERY_RFC3986 62 * to encode using RFC3986, or PHP_QUERY_RFC1738 63 * to encode using RFC1738. 60 * @param array $params Query string parameters. 61 * @param int|false $encoding Set to false to not encode, 62 * PHP_QUERY_RFC3986 to encode using 63 * RFC3986, or PHP_QUERY_RFC1738 to 64 * encode using RFC1738. 65 * @param bool $treatBoolsAsInts Set to true to encode as 0/1, and 66 * false as false/true. 64 67 */ 65 public static function build(array $params, $encoding = \PHP_QUERY_RFC3986 ) : string68 public static function build(array $params, $encoding = \PHP_QUERY_RFC3986, bool $treatBoolsAsInts = \true) : string 66 69 { 67 70 if (!$params) { … … 79 82 throw new \InvalidArgumentException('Invalid type'); 80 83 } 84 $castBool = $treatBoolsAsInts ? static function ($v) { 85 return (int) $v; 86 } : static function ($v) { 87 return $v ? 'true' : 'false'; 88 }; 81 89 $qs = ''; 82 90 foreach ($params as $k => $v) { … … 84 92 if (!\is_array($v)) { 85 93 $qs .= $k; 86 $v = \is_bool($v) ? (int) $v: $v;94 $v = \is_bool($v) ? $castBool($v) : $v; 87 95 if ($v !== null) { 88 96 $qs .= '=' . $encoder((string) $v); … … 92 100 foreach ($v as $vv) { 93 101 $qs .= $k; 94 $vv = \is_bool($vv) ? (int) $vv: $vv;102 $vv = \is_bool($vv) ? $castBool($vv) : $vv; 95 103 if ($vv !== null) { 96 104 $qs .= '=' . $encoder((string) $vv); -
dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/psr7/src/Response.php
r3110990 r3150005 25 25 * @param string|null $reason Reason phrase (when empty a default will be used based on the status code) 26 26 */ 27 public function __construct(int $status = 200, array $headers = [], $body = null, string $version = '1.1', string $reason = null)27 public function __construct(int $status = 200, array $headers = [], $body = null, string $version = '1.1', ?string $reason = null) 28 28 { 29 29 $this->assertStatusCodeRange($status); -
dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/psr7/src/StreamWrapper.php
r3110990 r3150005 57 57 } 58 58 } 59 public function stream_open(string $path, string $mode, int $options, string &$opened_path = null) : bool59 public function stream_open(string $path, string $mode, int $options, ?string &$opened_path = null) : bool 60 60 { 61 61 $options = \stream_context_get_options($this->context); … … 112 112 * blksize: int, 113 113 * blocks: int 114 * } 114 * }|false 115 115 */ 116 public function stream_stat() : array116 public function stream_stat() 117 117 { 118 if ($this->stream->getSize() === null) { 119 return \false; 120 } 118 121 static $modeMap = ['r' => 33060, 'rb' => 33060, 'r+' => 33206, 'w' => 33188, 'wb' => 33188]; 119 122 return ['dev' => 0, 'ino' => 0, 'mode' => $modeMap[$this->mode], 'nlink' => 0, 'uid' => 0, 'gid' => 0, 'rdev' => 0, 'size' => $this->stream->getSize() ?: 0, 'atime' => 0, 'mtime' => 0, 'ctime' => 0, 'blksize' => 0, 'blocks' => 0]; -
dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/psr7/src/UploadedFile.php
r3110990 r3150005 42 42 * @param StreamInterface|string|resource $streamOrFile 43 43 */ 44 public function __construct($streamOrFile, ?int $size, int $errorStatus, string $clientFilename = null,string $clientMediaType = null)44 public function __construct($streamOrFile, ?int $size, int $errorStatus, ?string $clientFilename = null, ?string $clientMediaType = null) 45 45 { 46 46 $this->setError($errorStatus); -
dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/psr7/src/Uri.php
r3110990 r3150005 217 217 * @see https://datatracker.ietf.org/doc/html/rfc3986#section-4.4 218 218 */ 219 public static function isSameDocumentReference(UriInterface $uri, UriInterface $base = null) : bool219 public static function isSameDocumentReference(UriInterface $uri, ?UriInterface $base = null) : bool 220 220 { 221 221 if ($base !== null) { -
dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/psr7/src/Utils.php
r3110990 r3150005 186 186 * @param int|null $maxLength Maximum buffer length 187 187 */ 188 public static function readLine(StreamInterface $stream, int $maxLength = null) : string188 public static function readLine(StreamInterface $stream, ?int $maxLength = null) : string 189 189 { 190 190 $buffer = ''; … … 201 201 } 202 202 return $buffer; 203 } 204 /** 205 * Redact the password in the user info part of a URI. 206 */ 207 public static function redactUserInfo(UriInterface $uri) : UriInterface 208 { 209 $userInfo = $uri->getUserInfo(); 210 if (\false !== ($pos = \strpos($userInfo, ':'))) { 211 return $uri->withUserInfo(\substr($userInfo, 0, $pos), '***'); 212 } 213 return $uri; 203 214 } 204 215 /** -
dotmailer-sign-up-widget/trunk/vendor/scoper-autoload.php
r3110990 r3150005 30 30 } 31 31 humbug_phpscoper_expose_class('DM_Widget', 'Dotdigital_WordPress_Vendor\DM_Widget'); 32 humbug_phpscoper_expose_class('ComposerAutoloaderInit 128b33bd335669c20af9217bcb9a7538', 'Dotdigital_WordPress_Vendor\ComposerAutoloaderInit128b33bd335669c20af9217bcb9a7538');32 humbug_phpscoper_expose_class('ComposerAutoloaderInitb933e4dec037358ff05515f1fd78e117', 'Dotdigital_WordPress_Vendor\ComposerAutoloaderInitb933e4dec037358ff05515f1fd78e117'); 33 33 humbug_phpscoper_expose_class('JsonException', 'Dotdigital_WordPress_Vendor\JsonException'); 34 humbug_phpscoper_expose_class('Stringable', 'Dotdigital_WordPress_Vendor\Stringable'); 34 35 humbug_phpscoper_expose_class('PhpToken', 'Dotdigital_WordPress_Vendor\PhpToken'); 36 humbug_phpscoper_expose_class('Attribute', 'Dotdigital_WordPress_Vendor\Attribute'); 35 37 humbug_phpscoper_expose_class('ValueError', 'Dotdigital_WordPress_Vendor\ValueError'); 36 humbug_phpscoper_expose_class('Attribute', 'Dotdigital_WordPress_Vendor\Attribute');37 38 humbug_phpscoper_expose_class('UnhandledMatchError', 'Dotdigital_WordPress_Vendor\UnhandledMatchError'); 38 humbug_phpscoper_expose_class('Stringable', 'Dotdigital_WordPress_Vendor\Stringable');39 39 40 40 // Function aliases. For more information see: … … 83 83 if (!function_exists('mb_lcfirst')) { function mb_lcfirst() { return \Dotdigital_WordPress_Vendor\mb_lcfirst(...func_get_args()); } } 84 84 if (!function_exists('mb_list_encodings')) { function mb_list_encodings() { return \Dotdigital_WordPress_Vendor\mb_list_encodings(...func_get_args()); } } 85 if (!function_exists('mb_ltrim')) { function mb_ltrim() { return \Dotdigital_WordPress_Vendor\mb_ltrim(...func_get_args()); } } 85 86 if (!function_exists('mb_ord')) { function mb_ord() { return \Dotdigital_WordPress_Vendor\mb_ord(...func_get_args()); } } 86 87 if (!function_exists('mb_output_handler')) { function mb_output_handler() { return \Dotdigital_WordPress_Vendor\mb_output_handler(...func_get_args()); } } 87 88 if (!function_exists('mb_parse_str')) { function mb_parse_str() { return \Dotdigital_WordPress_Vendor\mb_parse_str(...func_get_args()); } } 89 if (!function_exists('mb_rtrim')) { function mb_rtrim() { return \Dotdigital_WordPress_Vendor\mb_rtrim(...func_get_args()); } } 88 90 if (!function_exists('mb_scrub')) { function mb_scrub() { return \Dotdigital_WordPress_Vendor\mb_scrub(...func_get_args()); } } 89 91 if (!function_exists('mb_str_pad')) { function mb_str_pad() { return \Dotdigital_WordPress_Vendor\mb_str_pad(...func_get_args()); } } … … 104 106 if (!function_exists('mb_substr')) { function mb_substr() { return \Dotdigital_WordPress_Vendor\mb_substr(...func_get_args()); } } 105 107 if (!function_exists('mb_substr_count')) { function mb_substr_count() { return \Dotdigital_WordPress_Vendor\mb_substr_count(...func_get_args()); } } 108 if (!function_exists('mb_trim')) { function mb_trim() { return \Dotdigital_WordPress_Vendor\mb_trim(...func_get_args()); } } 106 109 if (!function_exists('mb_ucfirst')) { function mb_ucfirst() { return \Dotdigital_WordPress_Vendor\mb_ucfirst(...func_get_args()); } } 107 110 if (!function_exists('plugin_dir_path')) { function plugin_dir_path() { return \Dotdigital_WordPress_Vendor\plugin_dir_path(...func_get_args()); } } -
dotmailer-sign-up-widget/trunk/vendor/symfony/polyfill-mbstring/Mbstring.php
r3110990 r3150005 50 50 * - mb_ucfirst - Make a string's first character uppercase 51 51 * - mb_lcfirst - Make a string's first character lowercase 52 * - mb_trim - Strip whitespace (or other characters) from the beginning and end of a string 53 * - mb_ltrim - Strip whitespace (or other characters) from the beginning of a string 54 * - mb_rtrim - Strip whitespace (or other characters) from the end of a string 52 55 * 53 56 * Not implemented: … … 77 80 { 78 81 if (\is_array($s)) { 79 if (\PHP_VERSION_ID < 70200) {80 \trigger_error('mb_convert_encoding() expects parameter 1 to be string, array given', \E_USER_WARNING);81 return null;82 }83 82 $r = []; 84 83 foreach ($s as $str) { … … 351 350 public static function mb_check_encoding($var = null, $encoding = null) 352 351 { 353 if (\PHP_VERSION_ID < 70200 && \is_array($var)) {354 \trigger_error('mb_check_encoding() expects parameter 1 to be string, array given', \E_USER_WARNING);355 return null;356 }357 352 if (null === $encoding) { 358 353 if (null === $var) { … … 779 774 return $encoding; 780 775 } 776 public static function mb_trim(string $string, ?string $characters = null, ?string $encoding = null) : string 777 { 778 return self::mb_internal_trim('{^[%s]+|[%1$s]+$}Du', $string, $characters, $encoding, __FUNCTION__); 779 } 780 public static function mb_ltrim(string $string, ?string $characters = null, ?string $encoding = null) : string 781 { 782 return self::mb_internal_trim('{^[%s]+}Du', $string, $characters, $encoding, __FUNCTION__); 783 } 784 public static function mb_rtrim(string $string, ?string $characters = null, ?string $encoding = null) : string 785 { 786 return self::mb_internal_trim('{[%s]+$}D', $string, $characters, $encoding, __FUNCTION__); 787 } 788 private static function mb_internal_trim(string $regex, string $string, ?string $characters, ?string $encoding, string $function) : string 789 { 790 if (null === $encoding) { 791 $encoding = self::mb_internal_encoding(); 792 } else { 793 self::assertEncoding($encoding, $function . '(): Argument #3 ($encoding) must be a valid encoding, "%s" given'); 794 } 795 if ('' === $characters) { 796 return null === $encoding ? $string : self::mb_convert_encoding($string, $encoding); 797 } 798 if ('UTF-8' === $encoding) { 799 $encoding = null; 800 if (!\preg_match('//u', $string)) { 801 $string = @\iconv('UTF-8', 'UTF-8//IGNORE', $string); 802 } 803 if (null !== $characters && !\preg_match('//u', $characters)) { 804 $characters = @\iconv('UTF-8', 'UTF-8//IGNORE', $characters); 805 } 806 } else { 807 $string = \iconv($encoding, 'UTF-8//IGNORE', $string); 808 if (null !== $characters) { 809 $characters = \iconv($encoding, 'UTF-8//IGNORE', $characters); 810 } 811 } 812 if (null === $characters) { 813 $characters = "\\0 \f\n\r\t\v 814 815 816 "; 817 } else { 818 $characters = \preg_quote($characters); 819 } 820 $string = \preg_replace(\sprintf($regex, $characters), '', $string); 821 if (null === $encoding) { 822 return $string; 823 } 824 return \iconv('UTF-8', $encoding . '//IGNORE', $string); 825 } 781 826 private static function assertEncoding(string $encoding, string $errorFormat) : void 782 827 { -
dotmailer-sign-up-widget/trunk/vendor/symfony/polyfill-mbstring/bootstrap.php
r3110990 r3150005 263 263 } 264 264 } 265 if (!\function_exists('Dotdigital_WordPress_Vendor\\mb_trim')) { 266 function mb_trim(string $string, ?string $characters = null, ?string $encoding = null) : string 267 { 268 return p\Mbstring::mb_trim($string, $characters, $encoding); 269 } 270 } 271 if (!\function_exists('Dotdigital_WordPress_Vendor\\mb_ltrim')) { 272 function mb_ltrim(string $string, ?string $characters = null, ?string $encoding = null) : string 273 { 274 return p\Mbstring::mb_ltrim($string, $characters, $encoding); 275 } 276 } 277 if (!\function_exists('Dotdigital_WordPress_Vendor\\mb_rtrim')) { 278 function mb_rtrim(string $string, ?string $characters = null, ?string $encoding = null) : string 279 { 280 return p\Mbstring::mb_rtrim($string, $characters, $encoding); 281 } 282 } 265 283 if (\extension_loaded('mbstring')) { 266 284 return; -
dotmailer-sign-up-widget/trunk/vendor/symfony/polyfill-mbstring/bootstrap80.php
r3110990 r3150005 176 176 } 177 177 if (!\function_exists('mb_get_info')) { 178 function mb_get_info(?string $type = 'all') : array|string|int|false 178 function mb_get_info(?string $type = 'all') : array|string|int|false|null 179 179 { 180 180 return p\Mbstring::mb_get_info((string) $type); … … 260 260 } 261 261 } 262 if (!\function_exists('Dotdigital_WordPress_Vendor\\mb_trim')) { 263 function mb_trim(string $string, ?string $characters = null, ?string $encoding = null) : string 264 { 265 return p\Mbstring::mb_trim($string, $characters, $encoding); 266 } 267 } 268 if (!\function_exists('Dotdigital_WordPress_Vendor\\mb_ltrim')) { 269 function mb_ltrim(string $string, ?string $characters = null, ?string $encoding = null) : string 270 { 271 return p\Mbstring::mb_ltrim($string, $characters, $encoding); 272 } 273 } 274 if (!\function_exists('Dotdigital_WordPress_Vendor\\mb_rtrim')) { 275 function mb_rtrim(string $string, ?string $characters = null, ?string $encoding = null) : string 276 { 277 return p\Mbstring::mb_rtrim($string, $characters, $encoding); 278 } 279 } 262 280 if (\extension_loaded('mbstring')) { 263 281 return; -
dotmailer-sign-up-widget/trunk/vendor/symfony/polyfill-mbstring/composer.json
r3110990 r3150005 23 23 ], 24 24 "require": { 25 "php": ">=7. 1"25 "php": ">=7.2" 26 26 }, 27 27 "provide": { -
dotmailer-sign-up-widget/trunk/vendor/symfony/polyfill-php73/composer.json
r3110990 r3150005 22 22 ], 23 23 "require": { 24 "php": ">=7. 1"24 "php": ">=7.2" 25 25 }, 26 26 "autoload": { -
dotmailer-sign-up-widget/trunk/vendor/symfony/polyfill-php80/composer.json
r3110990 r3150005 26 26 ], 27 27 "require": { 28 "php": ">=7. 1"28 "php": ">=7.2" 29 29 }, 30 30 "autoload": { -
dotmailer-sign-up-widget/trunk/vendor/symfony/translation/Loader/CsvFileLoader.php
r3041822 r3150005 21 21 private $delimiter = ';'; 22 22 private $enclosure = '"'; 23 private $escape = ' \\';23 private $escape = ''; 24 24 /** 25 25 * {@inheritdoc} … … 34 34 } 35 35 $file->setFlags(\SplFileObject::READ_CSV | \SplFileObject::SKIP_EMPTY); 36 $file->setCsvControl($this->delimiter, $this->enclosure, $this->escape);36 $file->setCsvControl($this->delimiter, $this->enclosure, '' === $this->escape && \PHP_VERSION_ID < 70400 ? '\\' : $this->escape); 37 37 foreach ($file as $data) { 38 38 if (\false === $data) { … … 48 48 * Sets the delimiter, enclosure, and escape character for CSV. 49 49 */ 50 public function setCsvControl(string $delimiter = ';', string $enclosure = '"', string $escape = ' \\')50 public function setCsvControl(string $delimiter = ';', string $enclosure = '"', string $escape = '') 51 51 { 52 52 $this->delimiter = $delimiter; 53 53 $this->enclosure = $enclosure; 54 $this->escape = $escape;54 $this->escape = '' === $escape && \PHP_VERSION_ID < 70400 ? '\\' : $escape; 55 55 } 56 56 }
Note: See TracChangeset
for help on using the changeset viewer.