Plugin Directory

Changeset 3150005


Ignore:
Timestamp:
09/11/2024 11:25:11 AM (19 months ago)
Author:
dotMailer
Message:

Updating trunk for version 7.2.4

Location:
dotmailer-sign-up-widget/trunk
Files:
57 edited

Legend:

Unmodified
Added
Removed
  • dotmailer-sign-up-widget/trunk/dm_signup_form.php

    r3110990 r3150005  
    99 * Plugin URI:        https://integrations.dotdigital.com/technology-partners/wordpress
    1010 * 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.3
     11 * Version:           7.2.4
    1212 * Author:            dotdigital
    1313 * Author URI:        https://www.dotdigital.com/
     
    2525require_once __DIR__ . '/vendor/autoload.php';
    2626
    27 define( 'DOTDIGITAL_WORDPRESS_VERSION', '7.2.3' );
     27define( 'DOTDIGITAL_WORDPRESS_VERSION', '7.2.4' );
    2828define( 'DOTDIGITAL_WORDPRESS_PLUGIN_NAME', 'dotdigital-for-wordpress' );
    2929define( 'DOTDIGITAL_WORDPRESS_PLUGIN_SLUG', 'dotdigital_for_wordpress' );
  • dotmailer-sign-up-widget/trunk/includes/rest/class-dotdigital-wordpress-signup-widget-controller.php

    r3059202 r3150005  
    88namespace Dotdigital_WordPress\Includes\Rest;
    99
     10use Dotdigital_WordPress_Vendor\Dotdigital\Exception\ResponseValidationException;
    1011use Dotdigital_WordPress_Vendor\Dotdigital\V3\Models\Contact;
    1112use Dotdigital_WordPress\Includes\Client\Dotdigital_WordPress_Contact;
     
    8788            $contact = new Contact();
    8889            $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            }
    9194            $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);
    9299        } catch (\Exception $e) {
    93100            \error_log($e->getMessage());
     
    170177    }
    171178    /**
     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    /**
    172192     * @param bool $success
    173193     * @param string $message
  • dotmailer-sign-up-widget/trunk/readme.txt

    r3110990 r3150005  
    33Tags: email marketing, newsletter signup
    44Requires at least: 5.3
    5 Tested up to: 6.5.5
     5Tested up to: 6.6.1
    66Requires PHP: 7.4
    7 Stable tag: 7.2.3
     7Stable tag: 7.2.4
    88License: MIT
    99License URI: https://opensource.org/licenses/MIT
    10 
     10Add the Dotdigital for WordPress plugin to your site and allow your visitors to sign up to your newsletter and email marketing campaigns.
    1111
    1212== Description ==
     
    7070== Changelog ==
    7171
     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
    7278= 7.2.3 =
    7379
  • dotmailer-sign-up-widget/trunk/vendor/autoload.php

    r3110990 r3150005  
    2323require_once __DIR__ . '/composer/autoload_real.php';
    2424
    25 return ComposerAutoloaderInit128b33bd335669c20af9217bcb9a7538::getLoader();
     25return ComposerAutoloaderInitb933e4dec037358ff05515f1fd78e117::getLoader();
  • dotmailer-sign-up-widget/trunk/vendor/composer/autoload_real.php

    r3110990 r3150005  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit128b33bd335669c20af9217bcb9a7538
     5class ComposerAutoloaderInitb933e4dec037358ff05515f1fd78e117
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInit128b33bd335669c20af9217bcb9a7538', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInitb933e4dec037358ff05515f1fd78e117', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    29         spl_autoload_unregister(array('ComposerAutoloaderInit128b33bd335669c20af9217bcb9a7538', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInitb933e4dec037358ff05515f1fd78e117', 'loadClassLoader'));
    3030
    3131        require __DIR__ . '/autoload_static.php';
    32         call_user_func(\Composer\Autoload\ComposerStaticInit128b33bd335669c20af9217bcb9a7538::getInitializer($loader));
     32        call_user_func(\Composer\Autoload\ComposerStaticInitb933e4dec037358ff05515f1fd78e117::getInitializer($loader));
    3333
    3434        $loader->setClassMapAuthoritative(true);
    3535        $loader->register(true);
    3636
    37         $filesToLoad = \Composer\Autoload\ComposerStaticInit128b33bd335669c20af9217bcb9a7538::$files;
     37        $filesToLoad = \Composer\Autoload\ComposerStaticInitb933e4dec037358ff05515f1fd78e117::$files;
    3838        $requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
    3939            if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
  • dotmailer-sign-up-widget/trunk/vendor/composer/autoload_static.php

    r3110990 r3150005  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit128b33bd335669c20af9217bcb9a7538
     7class ComposerStaticInitb933e4dec037358ff05515f1fd78e117
    88{
    99    public static $files = array (
     
    706706    {
    707707        return \Closure::bind(function () use ($loader) {
    708             $loader->prefixLengthsPsr4 = ComposerStaticInit128b33bd335669c20af9217bcb9a7538::$prefixLengthsPsr4;
    709             $loader->prefixDirsPsr4 = ComposerStaticInit128b33bd335669c20af9217bcb9a7538::$prefixDirsPsr4;
    710             $loader->classMap = ComposerStaticInit128b33bd335669c20af9217bcb9a7538::$classMap;
     708            $loader->prefixLengthsPsr4 = ComposerStaticInitb933e4dec037358ff05515f1fd78e117::$prefixLengthsPsr4;
     709            $loader->prefixDirsPsr4 = ComposerStaticInitb933e4dec037358ff05515f1fd78e117::$prefixDirsPsr4;
     710            $loader->classMap = ComposerStaticInitb933e4dec037358ff05515f1fd78e117::$classMap;
    711711
    712712        }, null, ClassLoader::class);
  • dotmailer-sign-up-widget/trunk/vendor/composer/installed.json

    r3110990 r3150005  
    196196        {
    197197            "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",
    200200            "source": {
    201201                "type": "git",
    202202                "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",
    209209                "shasum": ""
    210210            },
    211211            "require": {
    212212                "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",
    215215                "php": "^7.2.5 || ^8.0",
    216216                "psr\/http-client": "^1.0",
     
    223223                "bamarni\/composer-bin-plugin": "^1.8.2",
    224224                "ext-curl": "*",
    225                 "php-http\/client-integration-tests": "dev-master#2c025848417c1135031fdf9c728ee53d0a7ceaee as 3.0.999",
     225                "guzzle\/client-integration-tests": "3.0.2",
    226226                "php-http\/message-factory": "^1.1",
    227                 "phpunit\/phpunit": "^8.5.36 || ^9.6.15",
     227                "phpunit\/phpunit": "^8.5.39 || ^9.6.20",
    228228                "psr\/log": "^1.1 || ^2.0 || ^3.0"
    229229            },
     
    233233                "psr\/log": "Required for using the Log middleware"
    234234            },
    235             "time": "2023-12-03T20:35:24+00:00",
     235            "time": "2024-07-24T11:22:20+00:00",
    236236            "type": "library",
    237237            "extra": {
     
    305305            "support": {
    306306                "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"
    308308            },
    309309            "funding": [
     
    325325        {
    326326            "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",
    329329            "source": {
    330330                "type": "git",
    331331                "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",
    338338                "shasum": ""
    339339            },
     
    343343            "require-dev": {
    344344                "bamarni\/composer-bin-plugin": "^1.8.2",
    345                 "phpunit\/phpunit": "^8.5.36 || ^9.6.15"
    346             },
    347             "time": "2023-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",
    348348            "type": "library",
    349349            "extra": {
     
    391391            "support": {
    392392                "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"
    394394            },
    395395            "funding": [
     
    411411        {
    412412            "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",
    415415            "source": {
    416416                "type": "git",
    417417                "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",
    424424                "shasum": ""
    425425            },
     
    436436            "require-dev": {
    437437                "bamarni\/composer-bin-plugin": "^1.8.2",
    438                 "http-interop\/http-factory-tests": "^0.9",
    439                 "phpunit\/phpunit": "^8.5.36 || ^9.6.15"
     438                "http-interop\/http-factory-tests": "0.9.0",
     439                "phpunit\/phpunit": "^8.5.39 || ^9.6.20"
    440440            },
    441441            "suggest": {
    442442                "laminas\/laminas-httphandlerrunner": "Emit PSR-7 responses"
    443443            },
    444             "time": "2023-12-03T20:05:35+00:00",
     444            "time": "2024-07-18T11:15:46+00:00",
    445445            "type": "library",
    446446            "extra": {
     
    510510            "support": {
    511511                "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"
    513513            },
    514514            "funding": [
     
    14581458        {
    14591459            "name": "symfony\/polyfill-mbstring",
    1460             "version": "v1.30.0",
    1461             "version_normalized": "1.30.0.0",
     1460            "version": "v1.31.0",
     1461            "version_normalized": "1.31.0.0",
    14621462            "source": {
    14631463                "type": "git",
    14641464                "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"
    14751475            },
    14761476            "provide": {
     
    14801480                "ext-mbstring": "For best performance"
    14811481            },
    1482             "time": "2024-06-19T12:30:46+00:00",
     1482            "time": "2024-09-09T11:45:10+00:00",
    14831483            "type": "library",
    14841484            "extra": {
     
    15211521            ],
    15221522            "support": {
    1523                 "source": "https:\/\/github.com\/symfony\/polyfill-mbstring\/tree\/v1.30.0"
     1523                "source": "https:\/\/github.com\/symfony\/polyfill-mbstring\/tree\/v1.31.0"
    15241524            },
    15251525            "funding": [
     
    15411541        {
    15421542            "name": "symfony\/polyfill-php73",
    1543             "version": "v1.30.0",
    1544             "version_normalized": "1.30.0.0",
     1543            "version": "v1.31.0",
     1544            "version_normalized": "1.31.0.0",
    15451545            "source": {
    15461546                "type": "git",
    15471547                "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-05-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",
    15601560            "type": "library",
    15611561            "extra": {
     
    16001600            ],
    16011601            "support": {
    1602                 "source": "https:\/\/github.com\/symfony\/polyfill-php73\/tree\/v1.30.0"
     1602                "source": "https:\/\/github.com\/symfony\/polyfill-php73\/tree\/v1.31.0"
    16031603            },
    16041604            "funding": [
     
    16201620        {
    16211621            "name": "symfony\/polyfill-php80",
    1622             "version": "v1.30.0",
    1623             "version_normalized": "1.30.0.0",
     1622            "version": "v1.31.0",
     1623            "version_normalized": "1.31.0.0",
    16241624            "source": {
    16251625                "type": "git",
    16261626                "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-05-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",
    16391639            "type": "library",
    16401640            "extra": {
     
    16831683            ],
    16841684            "support": {
    1685                 "source": "https:\/\/github.com\/symfony\/polyfill-php80\/tree\/v1.30.0"
     1685                "source": "https:\/\/github.com\/symfony\/polyfill-php80\/tree\/v1.31.0"
    16861686            },
    16871687            "funding": [
     
    17031703        {
    17041704            "name": "symfony\/translation",
    1705             "version": "v5.4.40",
    1706             "version_normalized": "5.4.40.0",
     1705            "version": "v5.4.42",
     1706            "version_normalized": "5.4.42.0",
    17071707            "source": {
    17081708                "type": "git",
    17091709                "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",
    17161716                "shasum": ""
    17171717            },
     
    17521752                "symfony\/yaml": ""
    17531753            },
    1754             "time": "2024-05-31T14:33:22+00:00",
     1754            "time": "2024-07-26T12:14:19+00:00",
    17551755            "type": "library",
    17561756            "installation-source": "dist",
     
    17831783            "homepage": "https:\/\/symfony.com",
    17841784            "support": {
    1785                 "source": "https:\/\/github.com\/symfony\/translation\/tree\/v5.4.40"
     1785                "source": "https:\/\/github.com\/symfony\/translation\/tree\/v5.4.42"
    17861786            },
    17871787            "funding": [
  • dotmailer-sign-up-widget/trunk/vendor/composer/installed.php

    r3110990 r3150005  
    33namespace Dotdigital_WordPress_Vendor;
    44
    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'))));
     5return 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  
    5151        }
    5252    ],
     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    ],
    5381    "require": {
    5482        "php": "^7.2.5 || ^8.0",
    5583        "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",
    5886        "psr\/http-client": "^1.0",
    5987        "symfony\/deprecation-contracts": "^2.2 || ^3.0"
     
    6593        "ext-curl": "*",
    6694        "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",
    6896        "php-http\/message-factory": "^1.1",
    69         "phpunit\/phpunit": "^8.5.36 || ^9.6.15",
     97        "phpunit\/phpunit": "^8.5.39 || ^9.6.20",
    7098        "psr\/log": "^1.1 || ^2.0 || ^3.0"
    7199    },
  • dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/guzzle/src/BodySummarizer.php

    r3041822 r3150005  
    1010     */
    1111    private $truncateAt;
    12     public function __construct(int $truncateAt = null)
     12    public function __construct(?int $truncateAt = null)
    1313    {
    1414        $this->truncateAt = $truncateAt;
     
    1919    public function summarize(MessageInterface $message) : ?string
    2020    {
    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);
    2222    }
    2323}
  • dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/guzzle/src/Client.php

    r3041822 r3150005  
    5050     * @param array $config Client configuration settings.
    5151     *
    52      * @see \GuzzleHttp\RequestOptions for a list of available request options.
     52     * @see RequestOptions for a list of available request options.
    5353     */
    5454    public function __construct(array $config = [])
     
    179179     * @deprecated Client::getConfig will be removed in guzzlehttp/guzzle:8.0.
    180180     */
    181     public function getConfig(string $option = null)
     181    public function getConfig(?string $option = null)
    182182    {
    183183        return $option === null ? $this->config : $this->config[$option] ?? null;
  • dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/guzzle/src/ClientInterface.php

    r3041822 r3150005  
    7575     * @deprecated ClientInterface::getConfig will be removed in guzzlehttp/guzzle:8.0.
    7676     */
    77     public function getConfig(string $option = null);
     77    public function getConfig(?string $option = null);
    7878}
  • dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/guzzle/src/Cookie/CookieJar.php

    r3110990 r3150005  
    8787        }, $this->getIterator()->getArrayCopy());
    8888    }
    89     public function clear(string $domain = null, string $path = null, string $name = null) : void
     89    public function clear(?string $domain = null, ?string $path = null, ?string $name = null) : void
    9090    {
    9191        if (!$domain) {
  • dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/guzzle/src/Cookie/CookieJarInterface.php

    r3041822 r3150005  
    5959     * @param string|null $name   Clears cookies matching a domain, path, and name
    6060     */
    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;
    6262    /**
    6363     * Discard all sessions cookies.
  • dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php

    r3041822 r3150005  
    1010class BadResponseException extends RequestException
    1111{
    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 = [])
    1313    {
    1414        parent::__construct($message, $request, $response, $previous, $handlerContext);
  • dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/guzzle/src/Exception/ConnectException.php

    r3041822 r3150005  
    2020     */
    2121    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 = [])
    2323    {
    2424        parent::__construct($message, 0, $previous);
  • dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php

    r3041822 r3150005  
    88use Dotdigital_WordPress_Vendor\Psr\Http\Message\RequestInterface;
    99use Dotdigital_WordPress_Vendor\Psr\Http\Message\ResponseInterface;
    10 use Dotdigital_WordPress_Vendor\Psr\Http\Message\UriInterface;
    1110/**
    1211 * HTTP Request exception
     
    2625     */
    2726    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 = [])
    2928    {
    3029        // Set the code of the exception if the response is set and not future.
     
    5150     * @param BodySummarizerInterface|null $bodySummarizer Optional body summarizer
    5251     */
    53     public static function create(RequestInterface $request, ResponseInterface $response = null, \Throwable $previous = null, array $handlerContext = [], BodySummarizerInterface $bodySummarizer = null) : self
     52    public static function create(RequestInterface $request, ?ResponseInterface $response = null, ?\Throwable $previous = null, array $handlerContext = [], ?BodySummarizerInterface $bodySummarizer = null) : self
    5453    {
    5554        if (!$response) {
     
    6766            $className = __CLASS__;
    6867        }
    69         $uri = $request->getUri();
    70         $uri = static::obfuscateUri($uri);
     68        $uri = \Dotdigital_WordPress_Vendor\GuzzleHttp\Psr7\Utils::redactUserInfo($request->getUri());
    7169        // Client Error: `GET /` resulted in a `404 Not Found` response:
    7270        // <html> ... (truncated)
     
    7775        }
    7876        return new $className($message, $request, $response, $previous, $handlerContext);
    79     }
    80     /**
    81      * Obfuscates URI if there is a username and a password present
    82      */
    83     private static function obfuscateUri(UriInterface $uri) : UriInterface
    84     {
    85         $userInfo = $uri->getUserInfo();
    86         if (\false !== ($pos = \strpos($userInfo, ':'))) {
    87             return $uri->withUserInfo(\substr($userInfo, 0, $pos), '***');
    88         }
    89         return $uri;
    9077    }
    9178    /**
  • dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php

    r3110990 r3150005  
    1212use Dotdigital_WordPress_Vendor\GuzzleHttp\Utils;
    1313use Dotdigital_WordPress_Vendor\Psr\Http\Message\RequestInterface;
     14use Dotdigital_WordPress_Vendor\Psr\Http\Message\UriInterface;
    1415/**
    1516 * Creates curl resources from a request
     
    4142    public function create(RequestInterface $request, array $options) : EasyHandle
    4243    {
     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        }
    4352        if (isset($options['curl']['body_as_string'])) {
    4453            $options['_body_as_string'] = $options['curl']['body_as_string'];
     
    6170        \curl_setopt_array($easy->handle, $conf);
    6271        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;
    6396    }
    6497    public function release(EasyHandle $easy) : void
     
    119152        // Get error information and release the handle to the factory.
    120153        $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();
    122155        $factory->release($easy);
    123156        // Retry when nothing is present or when curl failed to rewind.
     
    127160        return self::createRejection($easy, $ctx);
    128161    }
     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    }
    129170    private static function createRejection(EasyHandle $easy, array $ctx) : PromiseInterface
    130171    {
     
    138179            return P\Create::rejectionFor(new RequestException('An error was encountered during the on_headers event', $easy->request, $easy->response, $easy->onHeadersException, $ctx));
    139180        }
    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            }
    144189        }
    145190        // Create a connection exception if it was a specific error code.
     
    147192        return P\Create::rejectionFor($error);
    148193    }
     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    }
    149207    /**
    150208     * @return array<int|string, mixed>
     
    157215        }
    158216        $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) {
    160220            $conf[\CURLOPT_HTTP_VERSION] = \CURL_HTTP_VERSION_1_1;
    161         } elseif ($version == 2.0) {
    162             $conf[\CURLOPT_HTTP_VERSION] = \CURL_HTTP_VERSION_2_0;
    163221        } else {
    164222            $conf[\CURLOPT_HTTP_VERSION] = \CURL_HTTP_VERSION_1_0;
     
    286344                // sets a matching 'Accept-Encoding' header.
    287345                $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
    290350                $conf[\CURLOPT_HTTPHEADER][] = 'Accept-Encoding:';
    291351            }
     
    344404        }
    345405        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']) {
    350420                $conf[\CURLOPT_SSLVERSION] = \CURL_SSLVERSION_TLSv1_0;
    351421            } 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                 }
    355422                $conf[\CURLOPT_SSLVERSION] = \CURL_SSLVERSION_TLSv1_1;
    356423            } elseif (\STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT === $options['crypto_method']) {
    357                 if (!\defined('CURL_SSLVERSION_TLSv1_2')) {
     424                if (!self::supportsTls12()) {
    358425                    throw new \InvalidArgumentException('Invalid crypto_method request option: TLS 1.2 not supported by your version of cURL');
    359426                }
    360427                $conf[\CURLOPT_SSLVERSION] = \CURL_SSLVERSION_TLSv1_2;
    361428            } 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()) {
    363430                    throw new \InvalidArgumentException('Invalid crypto_method request option: TLS 1.3 not supported by your version of cURL');
    364431                }
  • dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php

    r3041822 r3150005  
    33namespace Dotdigital_WordPress_Vendor\GuzzleHttp\Handler;
    44
     5use Closure;
    56use Dotdigital_WordPress_Vendor\GuzzleHttp\Promise as P;
    67use Dotdigital_WordPress_Vendor\GuzzleHttp\Promise\Promise;
     
    130131            }
    131132        }
     133        // Run curl_multi_exec in the queue to enable other async tasks to run
     134        P\Utils::queue()->add(Closure::fromCallable([$this, 'tickInQueue']));
    132135        // Step through the task queue which may add additional requests.
    133136        P\Utils::queue()->run();
     
    138141        }
    139142        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);
    140145        }
    141146        $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        }
    142157    }
    143158    /**
  • dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/guzzle/src/Handler/MockHandler.php

    r3041822 r3150005  
    4747     * @param callable|null $onRejected  Callback to invoke when the return value is rejected.
    4848     */
    49     public static function createWithMiddleware(array $queue = null, callable $onFulfilled = null, callable $onRejected = null) : HandlerStack
     49    public static function createWithMiddleware(?array $queue = null, ?callable $onFulfilled = null, ?callable $onRejected = null) : HandlerStack
    5050    {
    5151        return HandlerStack::create(new self($queue, $onFulfilled, $onRejected));
     
    5353    /**
    5454     * The passed in value must be an array of
    55      * {@see \Psr\Http\Message\ResponseInterface} objects, Exceptions,
     55     * {@see ResponseInterface} objects, Exceptions,
    5656     * callables, or Promises.
    5757     *
     
    6060     * @param callable|null          $onRejected  Callback to invoke when the return value is rejected.
    6161     */
    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)
    6363    {
    6464        $this->onFulfilled = $onFulfilled;
     
    164164     * @param mixed $reason Promise or reason.
    165165     */
    166     private function invokeStats(RequestInterface $request, array $options, ResponseInterface $response = null, $reason = null) : void
     166    private function invokeStats(RequestInterface $request, array $options, ?ResponseInterface $response = null, $reason = null) : void
    167167    {
    168168        if (isset($options['on_stats'])) {
  • dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/guzzle/src/Handler/StreamHandler.php

    r3041822 r3150005  
    3838            \usleep($options['delay'] * 1000);
    3939        }
     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        }
    4044        $startTime = isset($options['on_stats']) ? Utils::currentTime() : null;
    4145        try {
     
    6367        }
    6468    }
    65     private function invokeStats(array $options, RequestInterface $request, ?float $startTime, ResponseInterface $response = null, \Throwable $error = null) : void
     69    private function invokeStats(array $options, RequestInterface $request, ?float $startTime, ?ResponseInterface $response = null, ?\Throwable $error = null) : void
    6670    {
    6771        if (isset($options['on_stats'])) {
     
    211215        // HTTP/1.1 streams using the PHP stream wrapper require a
    212216        // Connection: close header
    213         if ($request->getProtocolVersion() == '1.1' && !$request->hasHeader('Connection')) {
     217        if ($request->getProtocolVersion() === '1.1' && !$request->hasHeader('Connection')) {
    214218            $request = $request->withHeader('Connection', 'close');
    215219        }
  • dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/guzzle/src/HandlerStack.php

    r3041822 r3150005  
    4141     *                                                                            system will be utilized.
    4242     */
    43     public static function create(callable $handler = null) : self
     43    public static function create(?callable $handler = null) : self
    4444    {
    4545        $stack = new self($handler ?: Utils::chooseHandler());
     
    5353     * @param (callable(RequestInterface, array): PromiseInterface)|null $handler Underlying HTTP handler.
    5454     */
    55     public function __construct(callable $handler = null)
     55    public function __construct(?callable $handler = null)
    5656    {
    5757        $this->handler = $handler;
     
    116116     * @param string                       $name       Name to register for this middleware.
    117117     */
    118     public function unshift(callable $middleware, string $name = null) : void
     118    public function unshift(callable $middleware, ?string $name = null) : void
    119119    {
    120120        \array_unshift($this->stack, [$middleware, $name]);
  • dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/guzzle/src/MessageFormatter.php

    r3041822 r3150005  
    6565     * @param \Throwable|null        $error    Exception that was received
    6666     */
    67     public function format(RequestInterface $request, ResponseInterface $response = null, \Throwable $error = null) : string
     67    public function format(RequestInterface $request, ?ResponseInterface $response = null, ?\Throwable $error = null) : string
    6868    {
    6969        $cache = [];
  • dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/guzzle/src/MessageFormatterInterface.php

    r3041822 r3150005  
    1414     * @param \Throwable|null        $error    Exception that was received
    1515     */
    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;
    1717}
  • dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/guzzle/src/Middleware.php

    r3041822 r3150005  
    4949     * @return callable(callable): callable Returns a function that accepts the next handler.
    5050     */
    51     public static function httpErrors(BodySummarizerInterface $bodySummarizer = null) : callable
     51    public static function httpErrors(?BodySummarizerInterface $bodySummarizer = null) : callable
    5252    {
    5353        return static function (callable $handler) use($bodySummarizer) : callable {
     
    105105     * @return callable Returns a function that accepts the next handler.
    106106     */
    107     public static function tap(callable $before = null, callable $after = null) : callable
     107    public static function tap(?callable $before = null, ?callable $after = null) : callable
    108108    {
    109109        return static function (callable $handler) use($before, $after) : callable {
     
    146146     * @return callable Returns a function that accepts the next handler.
    147147     */
    148     public static function retry(callable $decider, callable $delay = null) : callable
     148    public static function retry(callable $decider, ?callable $delay = null) : callable
    149149    {
    150150        return static function (callable $handler) use($decider, $delay) : RetryMiddleware {
  • dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php

    r3041822 r3150005  
    6363        }
    6464        $expect = $options['expect'] ?? null;
    65         // Return if disabled or if you're not using HTTP/1.1 or HTTP/2.0
    66         if ($expect === \false || $request->getProtocolVersion() < 1.1) {
     65        // Return if disabled or using HTTP/1.0
     66        if ($expect === \false || $request->getProtocolVersion() === '1.0') {
    6767            return;
    6868        }
  • dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/guzzle/src/RequestOptions.php

    r3110990 r3150005  
    5858     * jar to use or what cookies to send. This option only works if your
    5959     * 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}.
    6161     */
    6262    public const COOKIES = 'cookies';
  • dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/guzzle/src/RetryMiddleware.php

    r3041822 r3150005  
    3737     *                                                                         milliseconds to delay.
    3838     */
    39     public function __construct(callable $decider, callable $nextHandler, callable $delay = null)
     39    public function __construct(callable $decider, callable $nextHandler, ?callable $delay = null)
    4040    {
    4141        $this->decider = $decider;
     
    8484        };
    8585    }
    86     private function doRetry(RequestInterface $request, array $options, ResponseInterface $response = null) : PromiseInterface
     86    private function doRetry(RequestInterface $request, array $options, ?ResponseInterface $response = null) : PromiseInterface
    8787    {
    8888        $options['delay'] = ($this->delay)(++$options['retries'], $response, $request);
  • dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/guzzle/src/TransferStats.php

    r3041822 r3150005  
    3939     * @param array                  $handlerStats     Handler specific stats.
    4040     */
    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 = [])
    4242    {
    4343        $this->request = $request;
  • dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/guzzle/src/Utils.php

    r3110990 r3150005  
    6565            return \STDOUT;
    6666        }
    67         return \Dotdigital_WordPress_Vendor\GuzzleHttp\Psr7\Utils::tryFopen('php://output', 'w');
     67        return Psr7\Utils::tryFopen('php://output', 'w');
    6868    }
    6969    /**
     
    7979    {
    8080        $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) {
    8282            if (\function_exists('curl_multi_exec') && \function_exists('curl_exec')) {
    8383                $handler = Proxy::wrapSync(new CurlMultiHandler(), new CurlHandler());
  • dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/promises/composer.json

    r3110990 r3150005  
    3333    "require-dev": {
    3434        "bamarni\/composer-bin-plugin": "^1.8.2",
    35         "phpunit\/phpunit": "^8.5.36 || ^9.6.15"
     35        "phpunit\/phpunit": "^8.5.39 || ^9.6.20"
    3636    },
    3737    "autoload": {
  • dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/promises/src/Coroutine.php

    r3041822 r3150005  
    7777        return new self($generatorFn);
    7878    }
    79     public function then(callable $onFulfilled = null, callable $onRejected = null) : PromiseInterface
     79    public function then(?callable $onFulfilled = null, ?callable $onRejected = null) : PromiseInterface
    8080    {
    8181        return $this->result->then($onFulfilled, $onRejected);
  • dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/promises/src/Each.php

    r3110990 r3150005  
    2121     * @param mixed $iterable Iterator or array to iterate over.
    2222     */
    23     public static function of($iterable, callable $onFulfilled = null, callable $onRejected = null) : PromiseInterface
     23    public static function of($iterable, ?callable $onFulfilled = null, ?callable $onRejected = null) : PromiseInterface
    2424    {
    2525        return (new EachPromise($iterable, ['fulfilled' => $onFulfilled, 'rejected' => $onRejected]))->promise();
     
    3636     * @param int|callable $concurrency
    3737     */
    38     public static function ofLimit($iterable, $concurrency, callable $onFulfilled = null, callable $onRejected = null) : PromiseInterface
     38    public static function ofLimit($iterable, $concurrency, ?callable $onFulfilled = null, ?callable $onRejected = null) : PromiseInterface
    3939    {
    4040        return (new EachPromise($iterable, ['fulfilled' => $onFulfilled, 'rejected' => $onRejected, 'concurrency' => $concurrency]))->promise();
     
    4848     * @param int|callable $concurrency
    4949     */
    50     public static function ofLimitAll($iterable, $concurrency, callable $onFulfilled = null) : PromiseInterface
     50    public static function ofLimitAll($iterable, $concurrency, ?callable $onFulfilled = null) : PromiseInterface
    5151    {
    5252        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  
    2525        $this->value = $value;
    2626    }
    27     public function then(callable $onFulfilled = null, callable $onRejected = null) : PromiseInterface
     27    public function then(?callable $onFulfilled = null, ?callable $onRejected = null) : PromiseInterface
    2828    {
    2929        // Return itself if there is no onFulfilled function.
  • dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/promises/src/Promise.php

    r3041822 r3150005  
    2323     * @param callable $cancelFn Fn that when invoked cancels the promise.
    2424     */
    25     public function __construct(callable $waitFn = null, callable $cancelFn = null)
     25    public function __construct(?callable $waitFn = null, ?callable $cancelFn = null)
    2626    {
    2727        $this->waitFn = $waitFn;
    2828        $this->cancelFn = $cancelFn;
    2929    }
    30     public function then(callable $onFulfilled = null, callable $onRejected = null) : PromiseInterface
     30    public function then(?callable $onFulfilled = null, ?callable $onRejected = null) : PromiseInterface
    3131    {
    3232        if ($this->state === self::PENDING) {
  • dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/promises/src/PromiseInterface.php

    r3041822 r3150005  
    2525     * @param callable $onRejected  Invoked when the promise is rejected.
    2626     */
    27     public function then(callable $onFulfilled = null, callable $onRejected = null) : PromiseInterface;
     27    public function then(?callable $onFulfilled = null, ?callable $onRejected = null) : PromiseInterface;
    2828    /**
    2929     * 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  
    2525        $this->reason = $reason;
    2626    }
    27     public function then(callable $onFulfilled = null, callable $onRejected = null) : PromiseInterface
     27    public function then(?callable $onFulfilled = null, ?callable $onRejected = null) : PromiseInterface
    2828    {
    2929        // If there's no onRejected callback then just return self.
  • dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/promises/src/RejectionException.php

    r3110990 r3150005  
    1717     * @param string|null $description Optional description.
    1818     */
    19     public function __construct($reason, string $description = null)
     19    public function __construct($reason, ?string $description = null)
    2020    {
    2121        $this->reason = $reason;
  • dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/promises/src/Utils.php

    r3041822 r3150005  
    2121     * @param TaskQueueInterface|null $assign Optionally specify a new queue instance.
    2222     */
    23     public static function queue(TaskQueueInterface $assign = null) : TaskQueueInterface
     23    public static function queue(?TaskQueueInterface $assign = null) : TaskQueueInterface
    2424    {
    2525        static $queue;
  • dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/psr7/composer.json

    r3110990 r3150005  
    6262    "require-dev": {
    6363        "bamarni\/composer-bin-plugin": "^1.8.2",
    64         "http-interop\/http-factory-tests": "^0.9",
    65         "phpunit\/phpunit": "^8.5.36 || ^9.6.15"
     64        "http-interop\/http-factory-tests": "0.9.0",
     65        "phpunit\/phpunit": "^8.5.39 || ^9.6.20"
    6666    },
    6767    "suggest": {
  • dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/psr7/src/CachingStream.php

    r3041822 r3150005  
    2626     * @param StreamInterface $target Optionally specify where data is cached
    2727     */
    28     public function __construct(StreamInterface $stream, StreamInterface $target = null)
     28    public function __construct(StreamInterface $stream, ?StreamInterface $target = null)
    2929    {
    3030        $this->remoteStream = $stream;
  • dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/psr7/src/HttpFactory.php

    r3041822 r3150005  
    2424final class HttpFactory implements RequestFactoryInterface, ResponseFactoryInterface, ServerRequestFactoryInterface, StreamFactoryInterface, UploadedFileFactoryInterface, UriFactoryInterface
    2525{
    26     public function createUploadedFile(StreamInterface $stream, int $size = null, int $error = \UPLOAD_ERR_OK, string $clientFilename = null, string $clientMediaType = null) : UploadedFileInterface
     26    public function createUploadedFile(StreamInterface $stream, ?int $size = null, int $error = \UPLOAD_ERR_OK, ?string $clientFilename = null, ?string $clientMediaType = null) : UploadedFileInterface
    2727    {
    2828        if ($size === null) {
  • dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/psr7/src/MultipartStream.php

    r3110990 r3150005  
    2828     * @throws \InvalidArgumentException
    2929     */
    30     public function __construct(array $elements = [], string $boundary = null)
     30    public function __construct(array $elements = [], ?string $boundary = null)
    3131    {
    3232        $this->boundary = $boundary ?: \bin2hex(\random_bytes(20));
  • dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/psr7/src/Query.php

    r3041822 r3150005  
    5858     * encountered (like `http_build_query()` would).
    5959     *
    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.
    6467     */
    65     public static function build(array $params, $encoding = \PHP_QUERY_RFC3986) : string
     68    public static function build(array $params, $encoding = \PHP_QUERY_RFC3986, bool $treatBoolsAsInts = \true) : string
    6669    {
    6770        if (!$params) {
     
    7982            throw new \InvalidArgumentException('Invalid type');
    8083        }
     84        $castBool = $treatBoolsAsInts ? static function ($v) {
     85            return (int) $v;
     86        } : static function ($v) {
     87            return $v ? 'true' : 'false';
     88        };
    8189        $qs = '';
    8290        foreach ($params as $k => $v) {
     
    8492            if (!\is_array($v)) {
    8593                $qs .= $k;
    86                 $v = \is_bool($v) ? (int) $v : $v;
     94                $v = \is_bool($v) ? $castBool($v) : $v;
    8795                if ($v !== null) {
    8896                    $qs .= '=' . $encoder((string) $v);
     
    92100                foreach ($v as $vv) {
    93101                    $qs .= $k;
    94                     $vv = \is_bool($vv) ? (int) $vv : $vv;
     102                    $vv = \is_bool($vv) ? $castBool($vv) : $vv;
    95103                    if ($vv !== null) {
    96104                        $qs .= '=' . $encoder((string) $vv);
  • dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/psr7/src/Response.php

    r3110990 r3150005  
    2525     * @param string|null                          $reason  Reason phrase (when empty a default will be used based on the status code)
    2626     */
    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)
    2828    {
    2929        $this->assertStatusCodeRange($status);
  • dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/psr7/src/StreamWrapper.php

    r3110990 r3150005  
    5757        }
    5858    }
    59     public function stream_open(string $path, string $mode, int $options, string &$opened_path = null) : bool
     59    public function stream_open(string $path, string $mode, int $options, ?string &$opened_path = null) : bool
    6060    {
    6161        $options = \stream_context_get_options($this->context);
     
    112112     *   blksize: int,
    113113     *   blocks: int
    114      * }
     114     * }|false
    115115     */
    116     public function stream_stat() : array
     116    public function stream_stat()
    117117    {
     118        if ($this->stream->getSize() === null) {
     119            return \false;
     120        }
    118121        static $modeMap = ['r' => 33060, 'rb' => 33060, 'r+' => 33206, 'w' => 33188, 'wb' => 33188];
    119122        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  
    4242     * @param StreamInterface|string|resource $streamOrFile
    4343     */
    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)
    4545    {
    4646        $this->setError($errorStatus);
  • dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/psr7/src/Uri.php

    r3110990 r3150005  
    217217     * @see https://datatracker.ietf.org/doc/html/rfc3986#section-4.4
    218218     */
    219     public static function isSameDocumentReference(UriInterface $uri, UriInterface $base = null) : bool
     219    public static function isSameDocumentReference(UriInterface $uri, ?UriInterface $base = null) : bool
    220220    {
    221221        if ($base !== null) {
  • dotmailer-sign-up-widget/trunk/vendor/guzzlehttp/psr7/src/Utils.php

    r3110990 r3150005  
    186186     * @param int|null        $maxLength Maximum buffer length
    187187     */
    188     public static function readLine(StreamInterface $stream, int $maxLength = null) : string
     188    public static function readLine(StreamInterface $stream, ?int $maxLength = null) : string
    189189    {
    190190        $buffer = '';
     
    201201        }
    202202        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;
    203214    }
    204215    /**
  • dotmailer-sign-up-widget/trunk/vendor/scoper-autoload.php

    r3110990 r3150005  
    3030}
    3131humbug_phpscoper_expose_class('DM_Widget', 'Dotdigital_WordPress_Vendor\DM_Widget');
    32 humbug_phpscoper_expose_class('ComposerAutoloaderInit128b33bd335669c20af9217bcb9a7538', 'Dotdigital_WordPress_Vendor\ComposerAutoloaderInit128b33bd335669c20af9217bcb9a7538');
     32humbug_phpscoper_expose_class('ComposerAutoloaderInitb933e4dec037358ff05515f1fd78e117', 'Dotdigital_WordPress_Vendor\ComposerAutoloaderInitb933e4dec037358ff05515f1fd78e117');
    3333humbug_phpscoper_expose_class('JsonException', 'Dotdigital_WordPress_Vendor\JsonException');
     34humbug_phpscoper_expose_class('Stringable', 'Dotdigital_WordPress_Vendor\Stringable');
    3435humbug_phpscoper_expose_class('PhpToken', 'Dotdigital_WordPress_Vendor\PhpToken');
     36humbug_phpscoper_expose_class('Attribute', 'Dotdigital_WordPress_Vendor\Attribute');
    3537humbug_phpscoper_expose_class('ValueError', 'Dotdigital_WordPress_Vendor\ValueError');
    36 humbug_phpscoper_expose_class('Attribute', 'Dotdigital_WordPress_Vendor\Attribute');
    3738humbug_phpscoper_expose_class('UnhandledMatchError', 'Dotdigital_WordPress_Vendor\UnhandledMatchError');
    38 humbug_phpscoper_expose_class('Stringable', 'Dotdigital_WordPress_Vendor\Stringable');
    3939
    4040// Function aliases. For more information see:
     
    8383if (!function_exists('mb_lcfirst')) { function mb_lcfirst() { return \Dotdigital_WordPress_Vendor\mb_lcfirst(...func_get_args()); } }
    8484if (!function_exists('mb_list_encodings')) { function mb_list_encodings() { return \Dotdigital_WordPress_Vendor\mb_list_encodings(...func_get_args()); } }
     85if (!function_exists('mb_ltrim')) { function mb_ltrim() { return \Dotdigital_WordPress_Vendor\mb_ltrim(...func_get_args()); } }
    8586if (!function_exists('mb_ord')) { function mb_ord() { return \Dotdigital_WordPress_Vendor\mb_ord(...func_get_args()); } }
    8687if (!function_exists('mb_output_handler')) { function mb_output_handler() { return \Dotdigital_WordPress_Vendor\mb_output_handler(...func_get_args()); } }
    8788if (!function_exists('mb_parse_str')) { function mb_parse_str() { return \Dotdigital_WordPress_Vendor\mb_parse_str(...func_get_args()); } }
     89if (!function_exists('mb_rtrim')) { function mb_rtrim() { return \Dotdigital_WordPress_Vendor\mb_rtrim(...func_get_args()); } }
    8890if (!function_exists('mb_scrub')) { function mb_scrub() { return \Dotdigital_WordPress_Vendor\mb_scrub(...func_get_args()); } }
    8991if (!function_exists('mb_str_pad')) { function mb_str_pad() { return \Dotdigital_WordPress_Vendor\mb_str_pad(...func_get_args()); } }
     
    104106if (!function_exists('mb_substr')) { function mb_substr() { return \Dotdigital_WordPress_Vendor\mb_substr(...func_get_args()); } }
    105107if (!function_exists('mb_substr_count')) { function mb_substr_count() { return \Dotdigital_WordPress_Vendor\mb_substr_count(...func_get_args()); } }
     108if (!function_exists('mb_trim')) { function mb_trim() { return \Dotdigital_WordPress_Vendor\mb_trim(...func_get_args()); } }
    106109if (!function_exists('mb_ucfirst')) { function mb_ucfirst() { return \Dotdigital_WordPress_Vendor\mb_ucfirst(...func_get_args()); } }
    107110if (!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  
    5050 * - mb_ucfirst              - Make a string's first character uppercase
    5151 * - 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
    5255 *
    5356 * Not implemented:
     
    7780    {
    7881        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             }
    8382            $r = [];
    8483            foreach ($s as $str) {
     
    351350    public static function mb_check_encoding($var = null, $encoding = null)
    352351    {
    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         }
    357352        if (null === $encoding) {
    358353            if (null === $var) {
     
    779774        return $encoding;
    780775    }
     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    }
    781826    private static function assertEncoding(string $encoding, string $errorFormat) : void
    782827    {
  • dotmailer-sign-up-widget/trunk/vendor/symfony/polyfill-mbstring/bootstrap.php

    r3110990 r3150005  
    263263    }
    264264}
     265if (!\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}
     271if (!\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}
     277if (!\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}
    265283if (\extension_loaded('mbstring')) {
    266284    return;
  • dotmailer-sign-up-widget/trunk/vendor/symfony/polyfill-mbstring/bootstrap80.php

    r3110990 r3150005  
    176176}
    177177if (!\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
    179179    {
    180180        return p\Mbstring::mb_get_info((string) $type);
     
    260260    }
    261261}
     262if (!\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}
     268if (!\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}
     274if (!\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}
    262280if (\extension_loaded('mbstring')) {
    263281    return;
  • dotmailer-sign-up-widget/trunk/vendor/symfony/polyfill-mbstring/composer.json

    r3110990 r3150005  
    2323    ],
    2424    "require": {
    25         "php": ">=7.1"
     25        "php": ">=7.2"
    2626    },
    2727    "provide": {
  • dotmailer-sign-up-widget/trunk/vendor/symfony/polyfill-php73/composer.json

    r3110990 r3150005  
    2222    ],
    2323    "require": {
    24         "php": ">=7.1"
     24        "php": ">=7.2"
    2525    },
    2626    "autoload": {
  • dotmailer-sign-up-widget/trunk/vendor/symfony/polyfill-php80/composer.json

    r3110990 r3150005  
    2626    ],
    2727    "require": {
    28         "php": ">=7.1"
     28        "php": ">=7.2"
    2929    },
    3030    "autoload": {
  • dotmailer-sign-up-widget/trunk/vendor/symfony/translation/Loader/CsvFileLoader.php

    r3041822 r3150005  
    2121    private $delimiter = ';';
    2222    private $enclosure = '"';
    23     private $escape = '\\';
     23    private $escape = '';
    2424    /**
    2525     * {@inheritdoc}
     
    3434        }
    3535        $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);
    3737        foreach ($file as $data) {
    3838            if (\false === $data) {
     
    4848     * Sets the delimiter, enclosure, and escape character for CSV.
    4949     */
    50     public function setCsvControl(string $delimiter = ';', string $enclosure = '"', string $escape = '\\')
     50    public function setCsvControl(string $delimiter = ';', string $enclosure = '"', string $escape = '')
    5151    {
    5252        $this->delimiter = $delimiter;
    5353        $this->enclosure = $enclosure;
    54         $this->escape = $escape;
     54        $this->escape = '' === $escape && \PHP_VERSION_ID < 70400 ? '\\' : $escape;
    5555    }
    5656}
Note: See TracChangeset for help on using the changeset viewer.