Plugin Directory

Changeset 3125369


Ignore:
Timestamp:
07/25/2024 03:06:24 PM (20 months ago)
Author:
codesoup
Message:

update tags

Location:
web-archive/trunk
Files:
86 edited

Legend:

Unmodified
Added
Removed
  • web-archive/trunk/includes/class-assets.php

    r3095601 r3125369  
    6363            if (is_wp_error($response)) {
    6464                $error_message = $response->get_error_message();
    65                 error_log("Error retrieving manifest: $error_message");
    6665            }
    6766            else {
  • web-archive/trunk/includes/class-init.php

    r3095601 r3125369  
    3030     */
    3131    private $constants = array(
    32         'WA_MIN_WP_VERSION_SUPPORT_TERMS' => '6.0',
    33         'WA_MIN_WP_VERSION'               => '6.0',
    34         'WA_MIN_PHP_VERSION'              => '8.1',
    35         'WA_MIN_MYSQL_VERSION'            => '',
    36         'WA_PLUGIN_PREFIX'                => 'wa',
    37         'WA_PLUGIN_NAME'                  => 'Web Archive',
    38         'WA_PLUGIN_VERSION'               => '0.0.1',
    39         'WA_SNAPSHOTS_BASE_DIR'           => WP_CONTENT_DIR . '/web-archive/snapshots',
    40         'WA_SNAPSHOTS_UPLOADS_DIR'        => WP_CONTENT_DIR . '/web-archive/snapshots/uploads',
    41         'WA_SNAPSHOTS_BASE_URI'           => '/web-archive/snapshots',
    42         'WA_SNAPSHOTS_UPLOADS_URI'        => WP_CONTENT_URL . '/web-archive/snapshots/uploads',
     32        'MIN_WP_VERSION_SUPPORT_TERMS' => '6.0',
     33        'MIN_WP_VERSION'               => '6.0',
     34        'MIN_PHP_VERSION'              => '8.1',
     35        'MIN_MYSQL_VERSION'            => '',
     36        'PLUGIN_PREFIX'                => 'wa',
     37        'PLUGIN_NAME'                  => 'Web Archive',
     38        'PLUGIN_VERSION'               => '0.0.1',
     39        'SNAPSHOTS_BASE_DIR'           => WP_CONTENT_DIR . '/web-archive/snapshots',
     40        'SNAPSHOTS_UPLOADS_DIR'        => WP_CONTENT_DIR . '/web-archive/snapshots/uploads',
     41        'SNAPSHOTS_BASE_URI'           => '/web-archive/snapshots',
     42        'SNAPSHOTS_UPLOADS_URI'        => WP_CONTENT_URL . '/web-archive/snapshots/uploads',
    4343    );
    4444
  • web-archive/trunk/includes/core/class-init.php

    r3095601 r3125369  
    6565            return;
    6666
    67         $options = wp_parse_args( get_option('wa_general', []), array(
    68             'post_type' => [],
    69         ));
    70 
    71         if ( ! in_array($post->post_type, $options['post_type'] ) ) {
    72             return;
    73         }
    74 
    75         $snap = new Snapshot;
     67        $snap = new Snapshot();
    7668        $snap->create_log_entry( $new_status, $old_status, $post );
    7769    }
  • web-archive/trunk/includes/core/class-settings.php

    r3095601 r3125369  
    7070    {
    7171        $options = get_option('wa_general');
    72         $types   = get_post_types(['exclude_from_search' => false], 'objects');
     72        $types   = get_post_types(['publicly_queryable' => true], 'objects');
    7373        $skip    = ['attachment', 'snapshot'];
    7474
  • web-archive/trunk/includes/core/class-snapshot.php

    r3095601 r3125369  
    1919    private $dirs;
    2020
    21     public function __construct()
     21    private $args;
     22
     23    private $post_types = array();
     24
     25    public function __construct( $args = array() )
    2226    {
     27        $this->args       = $args;
     28        $this->post_types = array(
     29            'document',
     30            'drops',
     31            'free',
     32            'learn',
     33            'news',
     34            'page',
     35            'partnership',
     36            'post',
     37            'talks',
     38            'tools',
     39            'town-hall',
     40            'updates',
     41        );
     42
     43
    2344        /**
    2445         * Use built in WordPress classes
     
    4263     */
    4364    public function create_log_entry( string $new_status, string $old_status, \WP_Post $post ) {
     65
     66        // Not enabled for current post type
     67        if ( ! in_array($post->post_type, $this->post_types) )
     68            return;
    4469
    4570        // Don't log in case post was never published
     
    194219        ]);
    195220        $headers   = array(
    196             'User-Agent' => "Web-Archive/{$this->get_plugin_version()}",
     221            'User-Agent' => "WPWebArchive/{$this->get_plugin_version()}",
    197222            'X-WP-Nonce' => wp_create_nonce('create_snapshot'),
    198223        );
     
    229254        $now        = gmdate('Y/m/d');
    230255        $time       = gmdate('U');
    231         $baseDir    = $this->get_constant('WA_SNAPSHOTS_BASE_DIR');
    232         $baseUri    = content_url($this->get_constant('WA_SNAPSHOTS_BASE_URI'));
     256        $baseDir    = $this->get_constant('SNAPSHOTS_BASE_DIR');
     257        $baseUri    = content_url($this->get_constant('SNAPSHOTS_BASE_URI'));
    233258
    234259        // Consolidating directories and URIs into a single array
     
    239264            'snapshot_uri'  => "{$baseUri}/{$now}/{$post_id}/{$time}",
    240265            'assets_uri'    => "{$baseUri}/{$now}/{$post_id}/{$time}/assets",
    241             'uploads_path'  => $this->get_constant('WA_SNAPSHOTS_UPLOADS_DIR'),
    242             'uploads_uri'   => $this->get_constant('WA_SNAPSHOTS_UPLOADS_URI'),
     266            'uploads_path'  => $this->get_constant('SNAPSHOTS_UPLOADS_DIR'),
     267            'uploads_uri'   => $this->get_constant('SNAPSHOTS_UPLOADS_URI'),
    243268            'home_url'      => untrailingslashit( home_url() ),
    244269            'theme_url'     => untrailingslashit( get_stylesheet_directory_uri() )
  • web-archive/trunk/includes/traits/helpers.php

    r3095601 r3125369  
    4848    private function get_plugin_name(): string {
    4949
    50         return $this->get_constant( 'WA_PLUGIN_NAME' );
     50        return $this->get_constant( 'PLUGIN_NAME' );
    5151    }
    5252
     
    5959    private function get_plugin_version(): string {
    6060
    61         return $this->get_constant( 'WA_PLUGIN_VERSION' );
     61        return $this->get_constant( 'PLUGIN_VERSION' );
    6262    }
    6363
     
    7272    private function get_plugin_id( string $append = '' ): string {
    7373
    74         $dashed = str_replace( '_', '-', $this->get_constant( 'WA_PLUGIN_NAME' ) );
     74        $dashed = str_replace( '_', '-', $this->get_constant( 'PLUGIN_NAME' ) );
    7575
    7676        return sanitize_title( $dashed ) . $append;
  • web-archive/trunk/includes/utils/node-processor.php

    r3095601 r3125369  
    135135            $this->fs->put_contents( $paths['path'], $response->getBody()->getContents() );
    136136
     137            $this->log( $url );
     138            $this->log( $paths );
     139
    137140            return $paths['uri'];
    138141        }
  • web-archive/trunk/vendor/autoload.php

    r3095601 r3125369  
    2323require_once __DIR__ . '/composer/autoload_real.php';
    2424
    25 return ComposerAutoloaderInit3ac79f3ca8fdadb11e726a404b8aea8d::getLoader();
     25return ComposerAutoloaderInitcc594e133ef0078dd2cc34849b4f009c::getLoader();
  • web-archive/trunk/vendor/composer/autoload_psr4.php

    r3095601 r3125369  
    1212    'Symfony\\Polyfill\\Ctype\\' => array($vendorDir . '/symfony/polyfill-ctype'),
    1313    'Symfony\\Component\\CssSelector\\' => array($vendorDir . '/symfony/css-selector'),
    14     'Psr\\Http\\Message\\' => array($vendorDir . '/psr/http-message/src', $vendorDir . '/psr/http-factory/src'),
     14    'Psr\\Http\\Message\\' => array($vendorDir . '/psr/http-factory/src', $vendorDir . '/psr/http-message/src'),
    1515    'Psr\\Http\\Client\\' => array($vendorDir . '/psr/http-client/src'),
    1616    'PhpOption\\' => array($vendorDir . '/phpoption/phpoption/src/PhpOption'),
  • web-archive/trunk/vendor/composer/autoload_real.php

    r3095601 r3125369  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit3ac79f3ca8fdadb11e726a404b8aea8d
     5class ComposerAutoloaderInitcc594e133ef0078dd2cc34849b4f009c
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInit3ac79f3ca8fdadb11e726a404b8aea8d', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInitcc594e133ef0078dd2cc34849b4f009c', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    29         spl_autoload_unregister(array('ComposerAutoloaderInit3ac79f3ca8fdadb11e726a404b8aea8d', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInitcc594e133ef0078dd2cc34849b4f009c', 'loadClassLoader'));
    3030
    3131        require __DIR__ . '/autoload_static.php';
    32         call_user_func(\Composer\Autoload\ComposerStaticInit3ac79f3ca8fdadb11e726a404b8aea8d::getInitializer($loader));
     32        call_user_func(\Composer\Autoload\ComposerStaticInitcc594e133ef0078dd2cc34849b4f009c::getInitializer($loader));
    3333
    3434        $loader->register(true);
    3535
    36         $filesToLoad = \Composer\Autoload\ComposerStaticInit3ac79f3ca8fdadb11e726a404b8aea8d::$files;
     36        $filesToLoad = \Composer\Autoload\ComposerStaticInitcc594e133ef0078dd2cc34849b4f009c::$files;
    3737        $requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
    3838            if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
  • web-archive/trunk/vendor/composer/autoload_static.php

    r3095601 r3125369  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit3ac79f3ca8fdadb11e726a404b8aea8d
     7class ComposerStaticInitcc594e133ef0078dd2cc34849b4f009c
    88{
    99    public static $files = array (
     
    7474        'Psr\\Http\\Message\\' =>
    7575        array (
    76             0 => __DIR__ . '/..' . '/psr/http-message/src',
    77             1 => __DIR__ . '/..' . '/psr/http-factory/src',
     76            0 => __DIR__ . '/..' . '/psr/http-factory/src',
     77            1 => __DIR__ . '/..' . '/psr/http-message/src',
    7878        ),
    7979        'Psr\\Http\\Client\\' =>
     
    136136    {
    137137        return \Closure::bind(function () use ($loader) {
    138             $loader->prefixLengthsPsr4 = ComposerStaticInit3ac79f3ca8fdadb11e726a404b8aea8d::$prefixLengthsPsr4;
    139             $loader->prefixDirsPsr4 = ComposerStaticInit3ac79f3ca8fdadb11e726a404b8aea8d::$prefixDirsPsr4;
    140             $loader->classMap = ComposerStaticInit3ac79f3ca8fdadb11e726a404b8aea8d::$classMap;
     138            $loader->prefixLengthsPsr4 = ComposerStaticInitcc594e133ef0078dd2cc34849b4f009c::$prefixLengthsPsr4;
     139            $loader->prefixDirsPsr4 = ComposerStaticInitcc594e133ef0078dd2cc34849b4f009c::$prefixDirsPsr4;
     140            $loader->classMap = ComposerStaticInitcc594e133ef0078dd2cc34849b4f009c::$classMap;
    141141
    142142        }, null, ClassLoader::class);
  • web-archive/trunk/vendor/composer/installed.json

    r3095601 r3125369  
    33        {
    44            "name": "composer/installers",
    5             "version": "v2.2.0",
    6             "version_normalized": "2.2.0.0",
     5            "version": "v2.3.0",
     6            "version_normalized": "2.3.0.0",
    77            "source": {
    88                "type": "git",
    99                "url": "https://github.com/composer/installers.git",
    10                 "reference": "c29dc4b93137acb82734f672c37e029dfbd95b35"
    11             },
    12             "dist": {
    13                 "type": "zip",
    14                 "url": "https://api.github.com/repos/composer/installers/zipball/c29dc4b93137acb82734f672c37e029dfbd95b35",
    15                 "reference": "c29dc4b93137acb82734f672c37e029dfbd95b35",
     10                "reference": "12fb2dfe5e16183de69e784a7b84046c43d97e8e"
     11            },
     12            "dist": {
     13                "type": "zip",
     14                "url": "https://api.github.com/repos/composer/installers/zipball/12fb2dfe5e16183de69e784a7b84046c43d97e8e",
     15                "reference": "12fb2dfe5e16183de69e784a7b84046c43d97e8e",
    1616                "shasum": ""
    1717            },
     
    2121            },
    2222            "require-dev": {
    23                 "composer/composer": "1.6.* || ^2.0",
    24                 "composer/semver": "^1 || ^3",
    25                 "phpstan/phpstan": "^0.12.55",
    26                 "phpstan/phpstan-phpunit": "^0.12.16",
    27                 "symfony/phpunit-bridge": "^5.3",
    28                 "symfony/process": "^5"
    29             },
    30             "time": "2022-08-20T06:45:11+00:00",
     23                "composer/composer": "^1.10.27 || ^2.7",
     24                "composer/semver": "^1.7.2 || ^3.4.0",
     25                "phpstan/phpstan": "^1.11",
     26                "phpstan/phpstan-phpunit": "^1",
     27                "symfony/phpunit-bridge": "^7.1.1",
     28                "symfony/process": "^5 || ^6 || ^7"
     29            },
     30            "time": "2024-06-24T20:46:46+00:00",
    3131            "type": "composer-plugin",
    3232            "extra": {
     
    8585                "codeigniter",
    8686                "concrete5",
     87                "concreteCMS",
    8788                "croogo",
    8889                "dokuwiki",
     
    131132            "support": {
    132133                "issues": "https://github.com/composer/installers/issues",
    133                 "source": "https://github.com/composer/installers/tree/v2.2.0"
     134                "source": "https://github.com/composer/installers/tree/v2.3.0"
    134135            },
    135136            "funding": [
     
    151152        {
    152153            "name": "graham-campbell/result-type",
    153             "version": "v1.1.2",
    154             "version_normalized": "1.1.2.0",
     154            "version": "v1.1.3",
     155            "version_normalized": "1.1.3.0",
    155156            "source": {
    156157                "type": "git",
    157158                "url": "https://github.com/GrahamCampbell/Result-Type.git",
    158                 "reference": "fbd48bce38f73f8a4ec8583362e732e4095e5862"
    159             },
    160             "dist": {
    161                 "type": "zip",
    162                 "url": "https://api.github.com/repos/GrahamCampbell/Result-Type/zipball/fbd48bce38f73f8a4ec8583362e732e4095e5862",
    163                 "reference": "fbd48bce38f73f8a4ec8583362e732e4095e5862",
     159                "reference": "3ba905c11371512af9d9bdd27d99b782216b6945"
     160            },
     161            "dist": {
     162                "type": "zip",
     163                "url": "https://api.github.com/repos/GrahamCampbell/Result-Type/zipball/3ba905c11371512af9d9bdd27d99b782216b6945",
     164                "reference": "3ba905c11371512af9d9bdd27d99b782216b6945",
    164165                "shasum": ""
    165166            },
    166167            "require": {
    167168                "php": "^7.2.5 || ^8.0",
    168                 "phpoption/phpoption": "^1.9.2"
     169                "phpoption/phpoption": "^1.9.3"
    169170            },
    170171            "require-dev": {
    171                 "phpunit/phpunit": "^8.5.34 || ^9.6.13 || ^10.4.2"
    172             },
    173             "time": "2023-11-12T22:16:48+00:00",
     172                "phpunit/phpunit": "^8.5.39 || ^9.6.20 || ^10.5.28"
     173            },
     174            "time": "2024-07-20T21:45:45+00:00",
    174175            "type": "library",
    175176            "installation-source": "dist",
     
    200201            "support": {
    201202                "issues": "https://github.com/GrahamCampbell/Result-Type/issues",
    202                 "source": "https://github.com/GrahamCampbell/Result-Type/tree/v1.1.2"
     203                "source": "https://github.com/GrahamCampbell/Result-Type/tree/v1.1.3"
    203204            },
    204205            "funding": [
     
    216217        {
    217218            "name": "guzzlehttp/guzzle",
    218             "version": "7.8.1",
    219             "version_normalized": "7.8.1.0",
     219            "version": "7.9.2",
     220            "version_normalized": "7.9.2.0",
    220221            "source": {
    221222                "type": "git",
    222223                "url": "https://github.com/guzzle/guzzle.git",
    223                 "reference": "41042bc7ab002487b876a0683fc8dce04ddce104"
    224             },
    225             "dist": {
    226                 "type": "zip",
    227                 "url": "https://api.github.com/repos/guzzle/guzzle/zipball/41042bc7ab002487b876a0683fc8dce04ddce104",
    228                 "reference": "41042bc7ab002487b876a0683fc8dce04ddce104",
     224                "reference": "d281ed313b989f213357e3be1a179f02196ac99b"
     225            },
     226            "dist": {
     227                "type": "zip",
     228                "url": "https://api.github.com/repos/guzzle/guzzle/zipball/d281ed313b989f213357e3be1a179f02196ac99b",
     229                "reference": "d281ed313b989f213357e3be1a179f02196ac99b",
    229230                "shasum": ""
    230231            },
    231232            "require": {
    232233                "ext-json": "*",
    233                 "guzzlehttp/promises": "^1.5.3 || ^2.0.1",
    234                 "guzzlehttp/psr7": "^1.9.1 || ^2.5.1",
     234                "guzzlehttp/promises": "^1.5.3 || ^2.0.3",
     235                "guzzlehttp/psr7": "^2.7.0",
    235236                "php": "^7.2.5 || ^8.0",
    236237                "psr/http-client": "^1.0",
     
    243244                "bamarni/composer-bin-plugin": "^1.8.2",
    244245                "ext-curl": "*",
    245                 "php-http/client-integration-tests": "dev-master#2c025848417c1135031fdf9c728ee53d0a7ceaee as 3.0.999",
     246                "guzzle/client-integration-tests": "3.0.2",
    246247                "php-http/message-factory": "^1.1",
    247                 "phpunit/phpunit": "^8.5.36 || ^9.6.15",
     248                "phpunit/phpunit": "^8.5.39 || ^9.6.20",
    248249                "psr/log": "^1.1 || ^2.0 || ^3.0"
    249250            },
     
    253254                "psr/log": "Required for using the Log middleware"
    254255            },
    255             "time": "2023-12-03T20:35:24+00:00",
     256            "time": "2024-07-24T11:22:20+00:00",
    256257            "type": "library",
    257258            "extra": {
     
    325326            "support": {
    326327                "issues": "https://github.com/guzzle/guzzle/issues",
    327                 "source": "https://github.com/guzzle/guzzle/tree/7.8.1"
     328                "source": "https://github.com/guzzle/guzzle/tree/7.9.2"
    328329            },
    329330            "funding": [
     
    345346        {
    346347            "name": "guzzlehttp/promises",
    347             "version": "2.0.2",
    348             "version_normalized": "2.0.2.0",
     348            "version": "2.0.3",
     349            "version_normalized": "2.0.3.0",
    349350            "source": {
    350351                "type": "git",
    351352                "url": "https://github.com/guzzle/promises.git",
    352                 "reference": "bbff78d96034045e58e13dedd6ad91b5d1253223"
    353             },
    354             "dist": {
    355                 "type": "zip",
    356                 "url": "https://api.github.com/repos/guzzle/promises/zipball/bbff78d96034045e58e13dedd6ad91b5d1253223",
    357                 "reference": "bbff78d96034045e58e13dedd6ad91b5d1253223",
     353                "reference": "6ea8dd08867a2a42619d65c3deb2c0fcbf81c8f8"
     354            },
     355            "dist": {
     356                "type": "zip",
     357                "url": "https://api.github.com/repos/guzzle/promises/zipball/6ea8dd08867a2a42619d65c3deb2c0fcbf81c8f8",
     358                "reference": "6ea8dd08867a2a42619d65c3deb2c0fcbf81c8f8",
    358359                "shasum": ""
    359360            },
     
    363364            "require-dev": {
    364365                "bamarni/composer-bin-plugin": "^1.8.2",
    365                 "phpunit/phpunit": "^8.5.36 || ^9.6.15"
    366             },
    367             "time": "2023-12-03T20:19:20+00:00",
     366                "phpunit/phpunit": "^8.5.39 || ^9.6.20"
     367            },
     368            "time": "2024-07-18T10:29:17+00:00",
    368369            "type": "library",
    369370            "extra": {
     
    411412            "support": {
    412413                "issues": "https://github.com/guzzle/promises/issues",
    413                 "source": "https://github.com/guzzle/promises/tree/2.0.2"
     414                "source": "https://github.com/guzzle/promises/tree/2.0.3"
    414415            },
    415416            "funding": [
     
    431432        {
    432433            "name": "guzzlehttp/psr7",
    433             "version": "2.6.2",
    434             "version_normalized": "2.6.2.0",
     434            "version": "2.7.0",
     435            "version_normalized": "2.7.0.0",
    435436            "source": {
    436437                "type": "git",
    437438                "url": "https://github.com/guzzle/psr7.git",
    438                 "reference": "45b30f99ac27b5ca93cb4831afe16285f57b8221"
    439             },
    440             "dist": {
    441                 "type": "zip",
    442                 "url": "https://api.github.com/repos/guzzle/psr7/zipball/45b30f99ac27b5ca93cb4831afe16285f57b8221",
    443                 "reference": "45b30f99ac27b5ca93cb4831afe16285f57b8221",
     439                "reference": "a70f5c95fb43bc83f07c9c948baa0dc1829bf201"
     440            },
     441            "dist": {
     442                "type": "zip",
     443                "url": "https://api.github.com/repos/guzzle/psr7/zipball/a70f5c95fb43bc83f07c9c948baa0dc1829bf201",
     444                "reference": "a70f5c95fb43bc83f07c9c948baa0dc1829bf201",
    444445                "shasum": ""
    445446            },
     
    456457            "require-dev": {
    457458                "bamarni/composer-bin-plugin": "^1.8.2",
    458                 "http-interop/http-factory-tests": "^0.9",
    459                 "phpunit/phpunit": "^8.5.36 || ^9.6.15"
     459                "http-interop/http-factory-tests": "0.9.0",
     460                "phpunit/phpunit": "^8.5.39 || ^9.6.20"
    460461            },
    461462            "suggest": {
    462463                "laminas/laminas-httphandlerrunner": "Emit PSR-7 responses"
    463464            },
    464             "time": "2023-12-03T20:05:35+00:00",
     465            "time": "2024-07-18T11:15:46+00:00",
    465466            "type": "library",
    466467            "extra": {
     
    530531            "support": {
    531532                "issues": "https://github.com/guzzle/psr7/issues",
    532                 "source": "https://github.com/guzzle/psr7/tree/2.6.2"
     533                "source": "https://github.com/guzzle/psr7/tree/2.7.0"
    533534            },
    534535            "funding": [
     
    550551        {
    551552            "name": "phpoption/phpoption",
    552             "version": "1.9.2",
    553             "version_normalized": "1.9.2.0",
     553            "version": "1.9.3",
     554            "version_normalized": "1.9.3.0",
    554555            "source": {
    555556                "type": "git",
    556557                "url": "https://github.com/schmittjoh/php-option.git",
    557                 "reference": "80735db690fe4fc5c76dfa7f9b770634285fa820"
    558             },
    559             "dist": {
    560                 "type": "zip",
    561                 "url": "https://api.github.com/repos/schmittjoh/php-option/zipball/80735db690fe4fc5c76dfa7f9b770634285fa820",
    562                 "reference": "80735db690fe4fc5c76dfa7f9b770634285fa820",
     558                "reference": "e3fac8b24f56113f7cb96af14958c0dd16330f54"
     559            },
     560            "dist": {
     561                "type": "zip",
     562                "url": "https://api.github.com/repos/schmittjoh/php-option/zipball/e3fac8b24f56113f7cb96af14958c0dd16330f54",
     563                "reference": "e3fac8b24f56113f7cb96af14958c0dd16330f54",
    563564                "shasum": ""
    564565            },
     
    568569            "require-dev": {
    569570                "bamarni/composer-bin-plugin": "^1.8.2",
    570                 "phpunit/phpunit": "^8.5.34 || ^9.6.13 || ^10.4.2"
    571             },
    572             "time": "2023-11-12T21:59:55+00:00",
     571                "phpunit/phpunit": "^8.5.39 || ^9.6.20 || ^10.5.28"
     572            },
     573            "time": "2024-07-20T21:41:07+00:00",
    573574            "type": "library",
    574575            "extra": {
    575576                "bamarni-bin": {
    576577                    "bin-links": true,
    577                     "forward-command": true
     578                    "forward-command": false
    578579                },
    579580                "branch-alias": {
     
    612613            "support": {
    613614                "issues": "https://github.com/schmittjoh/php-option/issues",
    614                 "source": "https://github.com/schmittjoh/php-option/tree/1.9.2"
     615                "source": "https://github.com/schmittjoh/php-option/tree/1.9.3"
    615616            },
    616617            "funding": [
     
    844845        {
    845846            "name": "symfony/css-selector",
    846             "version": "v7.1.0",
    847             "version_normalized": "7.1.0.0",
     847            "version": "v7.1.1",
     848            "version_normalized": "7.1.1.0",
    848849            "source": {
    849850                "type": "git",
    850851                "url": "https://github.com/symfony/css-selector.git",
    851                 "reference": "843f2f7ac5e4c5bf0ec77daef23ca6d4d8922adc"
    852             },
    853             "dist": {
    854                 "type": "zip",
    855                 "url": "https://api.github.com/repos/symfony/css-selector/zipball/843f2f7ac5e4c5bf0ec77daef23ca6d4d8922adc",
    856                 "reference": "843f2f7ac5e4c5bf0ec77daef23ca6d4d8922adc",
     852                "reference": "1c7cee86c6f812896af54434f8ce29c8d94f9ff4"
     853            },
     854            "dist": {
     855                "type": "zip",
     856                "url": "https://api.github.com/repos/symfony/css-selector/zipball/1c7cee86c6f812896af54434f8ce29c8d94f9ff4",
     857                "reference": "1c7cee86c6f812896af54434f8ce29c8d94f9ff4",
    857858                "shasum": ""
    858859            },
     
    860861                "php": ">=8.2"
    861862            },
    862             "time": "2024-04-18T09:32:20+00:00",
     863            "time": "2024-05-31T14:57:53+00:00",
    863864            "type": "library",
    864865            "installation-source": "dist",
     
    892893            "homepage": "https://symfony.com",
    893894            "support": {
    894                 "source": "https://github.com/symfony/css-selector/tree/v7.1.0"
     895                "source": "https://github.com/symfony/css-selector/tree/v7.1.1"
    895896            },
    896897            "funding": [
     
    982983        {
    983984            "name": "symfony/polyfill-ctype",
    984             "version": "v1.29.0",
    985             "version_normalized": "1.29.0.0",
     985            "version": "v1.30.0",
     986            "version_normalized": "1.30.0.0",
    986987            "source": {
    987988                "type": "git",
    988989                "url": "https://github.com/symfony/polyfill-ctype.git",
    989                 "reference": "ef4d7e442ca910c4764bce785146269b30cb5fc4"
    990             },
    991             "dist": {
    992                 "type": "zip",
    993                 "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/ef4d7e442ca910c4764bce785146269b30cb5fc4",
    994                 "reference": "ef4d7e442ca910c4764bce785146269b30cb5fc4",
     990                "reference": "0424dff1c58f028c451efff2045f5d92410bd540"
     991            },
     992            "dist": {
     993                "type": "zip",
     994                "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/0424dff1c58f028c451efff2045f5d92410bd540",
     995                "reference": "0424dff1c58f028c451efff2045f5d92410bd540",
    995996                "shasum": ""
    996997            },
     
    10041005                "ext-ctype": "For best performance"
    10051006            },
    1006             "time": "2024-01-29T20:11:03+00:00",
     1007            "time": "2024-05-31T15:07:36+00:00",
    10071008            "type": "library",
    10081009            "extra": {
     
    10441045            ],
    10451046            "support": {
    1046                 "source": "https://github.com/symfony/polyfill-ctype/tree/v1.29.0"
     1047                "source": "https://github.com/symfony/polyfill-ctype/tree/v1.30.0"
    10471048            },
    10481049            "funding": [
     
    10641065        {
    10651066            "name": "symfony/polyfill-mbstring",
    1066             "version": "v1.29.0",
    1067             "version_normalized": "1.29.0.0",
     1067            "version": "v1.30.0",
     1068            "version_normalized": "1.30.0.0",
    10681069            "source": {
    10691070                "type": "git",
    10701071                "url": "https://github.com/symfony/polyfill-mbstring.git",
    1071                 "reference": "9773676c8a1bb1f8d4340a62efe641cf76eda7ec"
    1072             },
    1073             "dist": {
    1074                 "type": "zip",
    1075                 "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/9773676c8a1bb1f8d4340a62efe641cf76eda7ec",
    1076                 "reference": "9773676c8a1bb1f8d4340a62efe641cf76eda7ec",
     1072                "reference": "fd22ab50000ef01661e2a31d850ebaa297f8e03c"
     1073            },
     1074            "dist": {
     1075                "type": "zip",
     1076                "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/fd22ab50000ef01661e2a31d850ebaa297f8e03c",
     1077                "reference": "fd22ab50000ef01661e2a31d850ebaa297f8e03c",
    10771078                "shasum": ""
    10781079            },
     
    10861087                "ext-mbstring": "For best performance"
    10871088            },
    1088             "time": "2024-01-29T20:11:03+00:00",
     1089            "time": "2024-06-19T12:30:46+00:00",
    10891090            "type": "library",
    10901091            "extra": {
     
    11271128            ],
    11281129            "support": {
    1129                 "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.29.0"
     1130                "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.30.0"
    11301131            },
    11311132            "funding": [
     
    11471148        {
    11481149            "name": "symfony/polyfill-php80",
    1149             "version": "v1.29.0",
    1150             "version_normalized": "1.29.0.0",
     1150            "version": "v1.30.0",
     1151            "version_normalized": "1.30.0.0",
    11511152            "source": {
    11521153                "type": "git",
    11531154                "url": "https://github.com/symfony/polyfill-php80.git",
    1154                 "reference": "87b68208d5c1188808dd7839ee1e6c8ec3b02f1b"
    1155             },
    1156             "dist": {
    1157                 "type": "zip",
    1158                 "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/87b68208d5c1188808dd7839ee1e6c8ec3b02f1b",
    1159                 "reference": "87b68208d5c1188808dd7839ee1e6c8ec3b02f1b",
     1155                "reference": "77fa7995ac1b21ab60769b7323d600a991a90433"
     1156            },
     1157            "dist": {
     1158                "type": "zip",
     1159                "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/77fa7995ac1b21ab60769b7323d600a991a90433",
     1160                "reference": "77fa7995ac1b21ab60769b7323d600a991a90433",
    11601161                "shasum": ""
    11611162            },
     
    11631164                "php": ">=7.1"
    11641165            },
    1165             "time": "2024-01-29T20:11:03+00:00",
     1166            "time": "2024-05-31T15:07:36+00:00",
    11661167            "type": "library",
    11671168            "extra": {
     
    12101211            ],
    12111212            "support": {
    1212                 "source": "https://github.com/symfony/polyfill-php80/tree/v1.29.0"
     1213                "source": "https://github.com/symfony/polyfill-php80/tree/v1.30.0"
    12131214            },
    12141215            "funding": [
     
    12301231        {
    12311232            "name": "vlucas/phpdotenv",
    1232             "version": "v5.6.0",
    1233             "version_normalized": "5.6.0.0",
     1233            "version": "v5.6.1",
     1234            "version_normalized": "5.6.1.0",
    12341235            "source": {
    12351236                "type": "git",
    12361237                "url": "https://github.com/vlucas/phpdotenv.git",
    1237                 "reference": "2cf9fb6054c2bb1d59d1f3817706ecdb9d2934c4"
    1238             },
    1239             "dist": {
    1240                 "type": "zip",
    1241                 "url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/2cf9fb6054c2bb1d59d1f3817706ecdb9d2934c4",
    1242                 "reference": "2cf9fb6054c2bb1d59d1f3817706ecdb9d2934c4",
     1238                "reference": "a59a13791077fe3d44f90e7133eb68e7d22eaff2"
     1239            },
     1240            "dist": {
     1241                "type": "zip",
     1242                "url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/a59a13791077fe3d44f90e7133eb68e7d22eaff2",
     1243                "reference": "a59a13791077fe3d44f90e7133eb68e7d22eaff2",
    12431244                "shasum": ""
    12441245            },
    12451246            "require": {
    12461247                "ext-pcre": "*",
    1247                 "graham-campbell/result-type": "^1.1.2",
     1248                "graham-campbell/result-type": "^1.1.3",
    12481249                "php": "^7.2.5 || ^8.0",
    1249                 "phpoption/phpoption": "^1.9.2",
     1250                "phpoption/phpoption": "^1.9.3",
    12501251                "symfony/polyfill-ctype": "^1.24",
    12511252                "symfony/polyfill-mbstring": "^1.24",
     
    12601261                "ext-filter": "Required to use the boolean validator."
    12611262            },
    1262             "time": "2023-11-12T22:43:29+00:00",
     1263            "time": "2024-07-20T21:52:34+00:00",
    12631264            "type": "library",
    12641265            "extra": {
    12651266                "bamarni-bin": {
    12661267                    "bin-links": true,
    1267                     "forward-command": true
     1268                    "forward-command": false
    12681269                },
    12691270                "branch-alias": {
     
    13011302            "support": {
    13021303                "issues": "https://github.com/vlucas/phpdotenv/issues",
    1303                 "source": "https://github.com/vlucas/phpdotenv/tree/v5.6.0"
     1304                "source": "https://github.com/vlucas/phpdotenv/tree/v5.6.1"
    13041305            },
    13051306            "funding": [
     
    13171318        {
    13181319            "name": "voku/simple_html_dom",
    1319             "version": "4.8.9",
    1320             "version_normalized": "4.8.9.0",
     1320            "version": "4.8.10",
     1321            "version_normalized": "4.8.10.0",
    13211322            "source": {
    13221323                "type": "git",
    13231324                "url": "https://github.com/voku/simple_html_dom.git",
    1324                 "reference": "e477d316aa0ea9d4d482d9f542af81b617d46ad2"
    1325             },
    1326             "dist": {
    1327                 "type": "zip",
    1328                 "url": "https://api.github.com/repos/voku/simple_html_dom/zipball/e477d316aa0ea9d4d482d9f542af81b617d46ad2",
    1329                 "reference": "e477d316aa0ea9d4d482d9f542af81b617d46ad2",
     1325                "reference": "716822ed52ed3a1881542be07a786270de390e99"
     1326            },
     1327            "dist": {
     1328                "type": "zip",
     1329                "url": "https://api.github.com/repos/voku/simple_html_dom/zipball/716822ed52ed3a1881542be07a786270de390e99",
     1330                "reference": "716822ed52ed3a1881542be07a786270de390e99",
    13301331                "shasum": ""
    13311332            },
     
    13431344                "voku/portable-utf8": "If you need e.g. UTF-8 fixed output."
    13441345            },
    1345             "time": "2024-05-25T07:52:26+00:00",
     1346            "time": "2024-07-03T16:05:14+00:00",
    13461347            "type": "library",
    13471348            "installation-source": "dist",
     
    13771378            "support": {
    13781379                "issues": "https://github.com/voku/simple_html_dom/issues",
    1379                 "source": "https://github.com/voku/simple_html_dom/tree/4.8.9"
     1380                "source": "https://github.com/voku/simple_html_dom/tree/4.8.10"
    13801381            },
    13811382            "funding": [
  • web-archive/trunk/vendor/composer/installed.php

    r3095601 r3125369  
    44        'pretty_version' => 'dev-master',
    55        'version' => 'dev-master',
    6         'reference' => 'b16e2779faea605146f2f1b22e71e906821adc25',
     6        'reference' => '6d5f799543ca75847a7465a8d09265186977c4a2',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    1414            'pretty_version' => 'dev-master',
    1515            'version' => 'dev-master',
    16             'reference' => 'b16e2779faea605146f2f1b22e71e906821adc25',
     16            'reference' => '6d5f799543ca75847a7465a8d09265186977c4a2',
    1717            'type' => 'wordpress-plugin',
    1818            'install_path' => __DIR__ . '/../../',
     
    2121        ),
    2222        'composer/installers' => array(
    23             'pretty_version' => 'v2.2.0',
    24             'version' => '2.2.0.0',
    25             'reference' => 'c29dc4b93137acb82734f672c37e029dfbd95b35',
     23            'pretty_version' => 'v2.3.0',
     24            'version' => '2.3.0.0',
     25            'reference' => '12fb2dfe5e16183de69e784a7b84046c43d97e8e',
    2626            'type' => 'composer-plugin',
    2727            'install_path' => __DIR__ . '/./installers',
     
    3030        ),
    3131        'graham-campbell/result-type' => array(
    32             'pretty_version' => 'v1.1.2',
    33             'version' => '1.1.2.0',
    34             'reference' => 'fbd48bce38f73f8a4ec8583362e732e4095e5862',
     32            'pretty_version' => 'v1.1.3',
     33            'version' => '1.1.3.0',
     34            'reference' => '3ba905c11371512af9d9bdd27d99b782216b6945',
    3535            'type' => 'library',
    3636            'install_path' => __DIR__ . '/../graham-campbell/result-type',
     
    3939        ),
    4040        'guzzlehttp/guzzle' => array(
    41             'pretty_version' => '7.8.1',
    42             'version' => '7.8.1.0',
    43             'reference' => '41042bc7ab002487b876a0683fc8dce04ddce104',
     41            'pretty_version' => '7.9.2',
     42            'version' => '7.9.2.0',
     43            'reference' => 'd281ed313b989f213357e3be1a179f02196ac99b',
    4444            'type' => 'library',
    4545            'install_path' => __DIR__ . '/../guzzlehttp/guzzle',
     
    4848        ),
    4949        'guzzlehttp/promises' => array(
    50             'pretty_version' => '2.0.2',
    51             'version' => '2.0.2.0',
    52             'reference' => 'bbff78d96034045e58e13dedd6ad91b5d1253223',
     50            'pretty_version' => '2.0.3',
     51            'version' => '2.0.3.0',
     52            'reference' => '6ea8dd08867a2a42619d65c3deb2c0fcbf81c8f8',
    5353            'type' => 'library',
    5454            'install_path' => __DIR__ . '/../guzzlehttp/promises',
     
    5757        ),
    5858        'guzzlehttp/psr7' => array(
    59             'pretty_version' => '2.6.2',
    60             'version' => '2.6.2.0',
    61             'reference' => '45b30f99ac27b5ca93cb4831afe16285f57b8221',
     59            'pretty_version' => '2.7.0',
     60            'version' => '2.7.0.0',
     61            'reference' => 'a70f5c95fb43bc83f07c9c948baa0dc1829bf201',
    6262            'type' => 'library',
    6363            'install_path' => __DIR__ . '/../guzzlehttp/psr7',
     
    6666        ),
    6767        'phpoption/phpoption' => array(
    68             'pretty_version' => '1.9.2',
    69             'version' => '1.9.2.0',
    70             'reference' => '80735db690fe4fc5c76dfa7f9b770634285fa820',
     68            'pretty_version' => '1.9.3',
     69            'version' => '1.9.3.0',
     70            'reference' => 'e3fac8b24f56113f7cb96af14958c0dd16330f54',
    7171            'type' => 'library',
    7272            'install_path' => __DIR__ . '/../phpoption/phpoption',
     
    129129        ),
    130130        'symfony/css-selector' => array(
    131             'pretty_version' => 'v7.1.0',
    132             'version' => '7.1.0.0',
    133             'reference' => '843f2f7ac5e4c5bf0ec77daef23ca6d4d8922adc',
     131            'pretty_version' => 'v7.1.1',
     132            'version' => '7.1.1.0',
     133            'reference' => '1c7cee86c6f812896af54434f8ce29c8d94f9ff4',
    134134            'type' => 'library',
    135135            'install_path' => __DIR__ . '/../symfony/css-selector',
     
    147147        ),
    148148        'symfony/polyfill-ctype' => array(
    149             'pretty_version' => 'v1.29.0',
    150             'version' => '1.29.0.0',
    151             'reference' => 'ef4d7e442ca910c4764bce785146269b30cb5fc4',
     149            'pretty_version' => 'v1.30.0',
     150            'version' => '1.30.0.0',
     151            'reference' => '0424dff1c58f028c451efff2045f5d92410bd540',
    152152            'type' => 'library',
    153153            'install_path' => __DIR__ . '/../symfony/polyfill-ctype',
     
    156156        ),
    157157        'symfony/polyfill-mbstring' => array(
    158             'pretty_version' => 'v1.29.0',
    159             'version' => '1.29.0.0',
    160             'reference' => '9773676c8a1bb1f8d4340a62efe641cf76eda7ec',
     158            'pretty_version' => 'v1.30.0',
     159            'version' => '1.30.0.0',
     160            'reference' => 'fd22ab50000ef01661e2a31d850ebaa297f8e03c',
    161161            'type' => 'library',
    162162            'install_path' => __DIR__ . '/../symfony/polyfill-mbstring',
     
    165165        ),
    166166        'symfony/polyfill-php80' => array(
    167             'pretty_version' => 'v1.29.0',
    168             'version' => '1.29.0.0',
    169             'reference' => '87b68208d5c1188808dd7839ee1e6c8ec3b02f1b',
     167            'pretty_version' => 'v1.30.0',
     168            'version' => '1.30.0.0',
     169            'reference' => '77fa7995ac1b21ab60769b7323d600a991a90433',
    170170            'type' => 'library',
    171171            'install_path' => __DIR__ . '/../symfony/polyfill-php80',
     
    174174        ),
    175175        'vlucas/phpdotenv' => array(
    176             'pretty_version' => 'v5.6.0',
    177             'version' => '5.6.0.0',
    178             'reference' => '2cf9fb6054c2bb1d59d1f3817706ecdb9d2934c4',
     176            'pretty_version' => 'v5.6.1',
     177            'version' => '5.6.1.0',
     178            'reference' => 'a59a13791077fe3d44f90e7133eb68e7d22eaff2',
    179179            'type' => 'library',
    180180            'install_path' => __DIR__ . '/../vlucas/phpdotenv',
     
    183183        ),
    184184        'voku/simple_html_dom' => array(
    185             'pretty_version' => '4.8.9',
    186             'version' => '4.8.9.0',
    187             'reference' => 'e477d316aa0ea9d4d482d9f542af81b617d46ad2',
     185            'pretty_version' => '4.8.10',
     186            'version' => '4.8.10.0',
     187            'reference' => '716822ed52ed3a1881542be07a786270de390e99',
    188188            'type' => 'library',
    189189            'install_path' => __DIR__ . '/../voku/simple_html_dom',
  • web-archive/trunk/vendor/composer/installers/.github/workflows/continuous-integration.yml

    r3095601 r3125369  
    88  COMPOSER_FLAGS: "--ansi --no-interaction --no-progress --prefer-dist"
    99  SYMFONY_PHPUNIT_REMOVE_RETURN_TYPEHINT: "1"
     10
     11permissions:
     12  contents: read
    1013
    1114jobs:
  • web-archive/trunk/vendor/composer/installers/.github/workflows/lint.yml

    r3095601 r3125369  
    44  - push
    55  - pull_request
     6
     7permissions:
     8  contents: read
    69
    710jobs:
  • web-archive/trunk/vendor/composer/installers/.github/workflows/phpstan.yml

    r3095601 r3125369  
    88  COMPOSER_FLAGS: "--ansi --no-interaction --no-progress --prefer-dist"
    99  SYMFONY_PHPUNIT_VERSION: ""
     10
     11permissions:
     12  contents: read
    1013
    1114jobs:
  • web-archive/trunk/vendor/composer/installers/composer.json

    r3095601 r3125369  
    1515        "CodeIgniter",
    1616        "concrete5",
     17        "ConcreteCMS",
    1718        "Croogo",
    1819        "DokuWiki",
     
    103104    },
    104105    "require-dev": {
    105         "composer/composer": "1.6.* || ^2.0",
    106         "composer/semver": "^1 || ^3",
    107         "symfony/phpunit-bridge": "^5.3",
    108         "phpstan/phpstan": "^0.12.55",
    109         "symfony/process": "^5",
    110         "phpstan/phpstan-phpunit": "^0.12.16"
     106        "composer/composer": "^1.10.27 || ^2.7",
     107        "composer/semver": "^1.7.2 || ^3.4.0",
     108        "symfony/phpunit-bridge": "^7.1.1",
     109        "phpstan/phpstan": "^1.11",
     110        "symfony/process": "^5 || ^6 || ^7",
     111        "phpstan/phpstan-phpunit": "^1"
    111112    },
    112113    "scripts": {
    113         "test": "vendor/bin/simple-phpunit",
    114         "phpstan": "vendor/bin/phpstan analyse"
     114        "test": "@php vendor/bin/simple-phpunit",
     115        "phpstan": "@php vendor/bin/phpstan analyse"
    115116    }
    116117}
  • web-archive/trunk/vendor/composer/installers/src/Composer/Installers/CakePHPInstaller.php

    r3095601 r3125369  
    4747     * Check if CakePHP version matches against a version
    4848     *
    49      * @phpstan-param Constraint::STR_OP_* $matcher
     49     * @phpstan-param '='|'=='|'<'|'<='|'>'|'>='|'<>'|'!=' $matcher
    5050     */
    5151    protected function matchesCakeVersion(string $matcher, string $version): bool
  • web-archive/trunk/vendor/composer/installers/src/Composer/Installers/DrupalInstaller.php

    r3095601 r3125369  
    2121        'console-language' => 'console/language/{$name}/',
    2222        'config'           => 'config/sync/',
     23        'recipe'           => 'recipes/{$name}',
    2324    );
    2425}
  • web-archive/trunk/vendor/composer/installers/src/Composer/Installers/Installer.php

    r3095601 r3125369  
    2727        'annotatecms'  => 'AnnotateCmsInstaller',
    2828        'bitrix'       => 'BitrixInstaller',
     29        'botble'       => 'BotbleInstaller',
    2930        'bonefish'     => 'BonefishInstaller',
    3031        'cakephp'      => 'CakePHPInstaller',
     
    3536        'codeigniter'  => 'CodeIgniterInstaller',
    3637        'concrete5'    => 'Concrete5Installer',
     38        'concretecms'  => 'ConcreteCMSInstaller',
    3739        'croogo'       => 'CroogoInstaller',
    3840        'dframe'       => 'DframeInstaller',
     
    4648        'ee2'          => 'ExpressionEngineInstaller',
    4749        'ezplatform'   => 'EzPlatformInstaller',
     50        'fork'         => 'ForkCMSInstaller',
    4851        'fuel'         => 'FuelInstaller',
    4952        'fuelphp'      => 'FuelphpInstaller',
     
    146149
    147150        $class = 'Composer\\Installers\\' . $this->supportedTypes[$frameworkType];
     151        /**
     152         * @var BaseInstaller
     153         */
    148154        $installer = new $class($package, $this->composer, $this->getIO());
    149155
     
    179185    /**
    180186     * {@inheritDoc}
     187     *
     188     * @param string $packageType
    181189     */
    182190    public function supports($packageType)
  • web-archive/trunk/vendor/composer/installers/src/Composer/Installers/MoodleInstaller.php

    r3095601 r3125369  
    2222        'cachelock'          => 'cache/locks/{$name}/',
    2323        'calendartype'       => 'calendar/type/{$name}/',
     24        'communication'      => 'communication/provider/{$name}/',
    2425        'customfield'        => 'customfield/field/{$name}/',
    2526        'fileconverter'      => 'files/converter/{$name}/',
     
    3435        'enrol'              => 'enrol/{$name}/',
    3536        'filter'             => 'filter/{$name}/',
     37        'forumreport'        => 'mod/forum/report/{$name}/',
    3638        'gradeexport'        => 'grade/export/{$name}/',
    3739        'gradeimport'        => 'grade/import/{$name}/',
    3840        'gradereport'        => 'grade/report/{$name}/',
    3941        'gradingform'        => 'grade/grading/form/{$name}/',
     42        'h5plib'             => 'h5p/h5plib/{$name}/',
    4043        'local'              => 'local/{$name}/',
    4144        'logstore'           => 'admin/tool/log/store/{$name}/',
     
    4447        'media'              => 'media/player/{$name}/',
    4548        'message'            => 'message/output/{$name}/',
     49        'mlbackend'          => 'lib/mlbackend/{$name}/',
    4650        'mnetservice'        => 'mnet/service/{$name}/',
    4751        'paygw'              => 'payment/gateway/{$name}/',
    4852        'plagiarism'         => 'plagiarism/{$name}/',
    4953        'portfolio'          => 'portfolio/{$name}/',
     54        'qbank'              => 'question/bank/{$name}/',
    5055        'qbehaviour'         => 'question/behaviour/{$name}/',
    5156        'qformat'            => 'question/format/{$name}/',
     
    5863        'search'             => 'search/engine/{$name}/',
    5964        'theme'              => 'theme/{$name}/',
     65        'tiny'               => 'lib/editor/tiny/plugins/{$name}/',
    6066        'tinymce'            => 'lib/editor/tinymce/plugins/{$name}/',
    6167        'profilefield'       => 'user/profile/field/{$name}/',
  • web-archive/trunk/vendor/graham-campbell/result-type/LICENSE

    r3095601 r3125369  
    11The MIT License (MIT)
    22
    3 Copyright (c) 2020-2023 Graham Campbell <hello@gjcampbell.co.uk>
     3Copyright (c) 2020-2024 Graham Campbell <hello@gjcampbell.co.uk>
    44
    55Permission is hereby granted, free of charge, to any person obtaining a copy
  • web-archive/trunk/vendor/graham-campbell/result-type/composer.json

    r3095601 r3125369  
    1313    "require": {
    1414        "php": "^7.2.5 || ^8.0",
    15         "phpoption/phpoption": "^1.9.2"
     15        "phpoption/phpoption": "^1.9.3"
    1616    },
    1717    "require-dev": {
    18         "phpunit/phpunit": "^8.5.34 || ^9.6.13 || ^10.4.2"
     18        "phpunit/phpunit": "^8.5.39 || ^9.6.20 || ^10.5.28"
    1919    },
    2020    "autoload": {
  • web-archive/trunk/vendor/guzzlehttp/guzzle/CHANGELOG.md

    r3095601 r3125369  
    22
    33Please refer to [UPGRADING](UPGRADING.md) guide for upgrading to a major version.
     4
     5
     6## 7.9.2 - 2024-07-24
     7
     8### Fixed
     9
     10- Adjusted handler selection to use cURL if its version is 7.21.2 or higher, rather than 7.34.0
     11
     12
     13## 7.9.1 - 2024-07-19
     14
     15### Fixed
     16
     17- Fix TLS 1.3 check for HTTP/2 requests
     18
     19
     20## 7.9.0 - 2024-07-18
     21
     22### Changed
     23
     24- Improve protocol version checks to provide feedback around unsupported protocols
     25- Only select the cURL handler by default if 7.34.0 or higher is linked
     26- Improved `CurlMultiHandler` to avoid busy wait if possible
     27- Dropped support for EOL `guzzlehttp/psr7` v1
     28- Improved URI user info redaction in errors
     29
     30## 7.8.2 - 2024-07-18
     31
     32### Added
     33
     34- Support for PHP 8.4
    435
    536
  • web-archive/trunk/vendor/guzzlehttp/guzzle/README.md

    r3095601 r3125369  
    6363| Version | Status              | Packagist           | Namespace    | Repo                | Docs                | PSR-7 | PHP Version  |
    6464|---------|---------------------|---------------------|--------------|---------------------|---------------------|-------|--------------|
    65 | 3.x     | EOL                 | `guzzle/guzzle`     | `Guzzle`     | [v3][guzzle-3-repo] | [v3][guzzle-3-docs] | No    | >=5.3.3,<7.0 |
    66 | 4.x     | EOL                 | `guzzlehttp/guzzle` | `GuzzleHttp` | [v4][guzzle-4-repo] | N/A                 | No    | >=5.4,<7.0   |
    67 | 5.x     | EOL                 | `guzzlehttp/guzzle` | `GuzzleHttp` | [v5][guzzle-5-repo] | [v5][guzzle-5-docs] | No    | >=5.4,<7.4   |
    68 | 6.x     | Security fixes only | `guzzlehttp/guzzle` | `GuzzleHttp` | [v6][guzzle-6-repo] | [v6][guzzle-6-docs] | Yes   | >=5.5,<8.0   |
    69 | 7.x     | Latest              | `guzzlehttp/guzzle` | `GuzzleHttp` | [v7][guzzle-7-repo] | [v7][guzzle-7-docs] | Yes   | >=7.2.5,<8.4 |
     65| 3.x     | EOL (2016-10-31)    | `guzzle/guzzle`     | `Guzzle`     | [v3][guzzle-3-repo] | [v3][guzzle-3-docs] | No    | >=5.3.3,<7.0 |
     66| 4.x     | EOL (2016-10-31)    | `guzzlehttp/guzzle` | `GuzzleHttp` | [v4][guzzle-4-repo] | N/A                 | No    | >=5.4,<7.0   |
     67| 5.x     | EOL (2019-10-31)    | `guzzlehttp/guzzle` | `GuzzleHttp` | [v5][guzzle-5-repo] | [v5][guzzle-5-docs] | No    | >=5.4,<7.4   |
     68| 6.x     | EOL (2023-10-31)    | `guzzlehttp/guzzle` | `GuzzleHttp` | [v6][guzzle-6-repo] | [v6][guzzle-6-docs] | Yes   | >=5.5,<8.0   |
     69| 7.x     | Latest              | `guzzlehttp/guzzle` | `GuzzleHttp` | [v7][guzzle-7-repo] | [v7][guzzle-7-docs] | Yes   | >=7.2.5,<8.5 |
    7070
    7171[guzzle-3-repo]: https://github.com/guzzle/guzzle3
  • web-archive/trunk/vendor/guzzlehttp/guzzle/composer.json

    r3095601 r3125369  
    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    },
  • web-archive/trunk/vendor/guzzlehttp/guzzle/src/BodySummarizer.php

    r3095601 r3125369  
    1212    private $truncateAt;
    1313
    14     public function __construct(int $truncateAt = null)
     14    public function __construct(?int $truncateAt = null)
    1515    {
    1616        $this->truncateAt = $truncateAt;
     
    2323    {
    2424        return $this->truncateAt === null
    25             ? \GuzzleHttp\Psr7\Message::bodySummary($message)
    26             : \GuzzleHttp\Psr7\Message::bodySummary($message, $this->truncateAt);
     25            ? Psr7\Message::bodySummary($message)
     26            : Psr7\Message::bodySummary($message, $this->truncateAt);
    2727    }
    2828}
  • web-archive/trunk/vendor/guzzlehttp/guzzle/src/Client.php

    r3095601 r3125369  
    5353     * @param array $config Client configuration settings.
    5454     *
    55      * @see \GuzzleHttp\RequestOptions for a list of available request options.
     55     * @see RequestOptions for a list of available request options.
    5656     */
    5757    public function __construct(array $config = [])
     
    203203     * @deprecated Client::getConfig will be removed in guzzlehttp/guzzle:8.0.
    204204     */
    205     public function getConfig(string $option = null)
     205    public function getConfig(?string $option = null)
    206206    {
    207207        return $option === null
  • web-archive/trunk/vendor/guzzlehttp/guzzle/src/ClientInterface.php

    r3095601 r3125369  
    8181     * @deprecated ClientInterface::getConfig will be removed in guzzlehttp/guzzle:8.0.
    8282     */
    83     public function getConfig(string $option = null);
     83    public function getConfig(?string $option = null);
    8484}
  • web-archive/trunk/vendor/guzzlehttp/guzzle/src/Cookie/CookieJar.php

    r3095601 r3125369  
    104104    }
    105105
    106     public function clear(string $domain = null, string $path = null, string $name = null): void
     106    public function clear(?string $domain = null, ?string $path = null, ?string $name = null): void
    107107    {
    108108        if (!$domain) {
  • web-archive/trunk/vendor/guzzlehttp/guzzle/src/Cookie/CookieJarInterface.php

    r3095601 r3125369  
    6363     * @param string|null $name   Clears cookies matching a domain, path, and name
    6464     */
    65     public function clear(string $domain = null, string $path = null, string $name = null): void;
     65    public function clear(?string $domain = null, ?string $path = null, ?string $name = null): void;
    6666
    6767    /**
  • web-archive/trunk/vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php

    r3095601 r3125369  
    1515        RequestInterface $request,
    1616        ResponseInterface $response,
    17         \Throwable $previous = null,
     17        ?\Throwable $previous = null,
    1818        array $handlerContext = []
    1919    ) {
  • web-archive/trunk/vendor/guzzlehttp/guzzle/src/Exception/ConnectException.php

    r3095601 r3125369  
    2626        string $message,
    2727        RequestInterface $request,
    28         \Throwable $previous = null,
     28        ?\Throwable $previous = null,
    2929        array $handlerContext = []
    3030    ) {
  • web-archive/trunk/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php

    r3095601 r3125369  
    88use Psr\Http\Message\RequestInterface;
    99use Psr\Http\Message\ResponseInterface;
    10 use Psr\Http\Message\UriInterface;
    1110
    1211/**
     
    3332        string $message,
    3433        RequestInterface $request,
    35         ResponseInterface $response = null,
    36         \Throwable $previous = null,
     34        ?ResponseInterface $response = null,
     35        ?\Throwable $previous = null,
    3736        array $handlerContext = []
    3837    ) {
     
    6463    public static function create(
    6564        RequestInterface $request,
    66         ResponseInterface $response = null,
    67         \Throwable $previous = null,
     65        ?ResponseInterface $response = null,
     66        ?\Throwable $previous = null,
    6867        array $handlerContext = [],
    69         BodySummarizerInterface $bodySummarizer = null
     68        ?BodySummarizerInterface $bodySummarizer = null
    7069    ): self {
    7170        if (!$response) {
     
    9190        }
    9291
    93         $uri = $request->getUri();
    94         $uri = static::obfuscateUri($uri);
     92        $uri = \GuzzleHttp\Psr7\Utils::redactUserInfo($request->getUri());
    9593
    9694        // Client Error: `GET /` resulted in a `404 Not Found` response:
     
    112110
    113111        return new $className($message, $request, $response, $previous, $handlerContext);
    114     }
    115 
    116     /**
    117      * Obfuscates URI if there is a username and a password present
    118      */
    119     private static function obfuscateUri(UriInterface $uri): UriInterface
    120     {
    121         $userInfo = $uri->getUserInfo();
    122 
    123         if (false !== ($pos = \strpos($userInfo, ':'))) {
    124             return $uri->withUserInfo(\substr($userInfo, 0, $pos), '***');
    125         }
    126 
    127         return $uri;
    128112    }
    129113
  • web-archive/trunk/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php

    r3095601 r3125369  
    1212use GuzzleHttp\Utils;
    1313use Psr\Http\Message\RequestInterface;
     14use Psr\Http\Message\UriInterface;
    1415
    1516/**
     
    4748    public function create(RequestInterface $request, array $options): EasyHandle
    4849    {
     50        $protocolVersion = $request->getProtocolVersion();
     51
     52        if ('2' === $protocolVersion || '2.0' === $protocolVersion) {
     53            if (!self::supportsHttp2()) {
     54                throw new ConnectException('HTTP/2 is supported by the cURL handler, however libcurl is built without HTTP/2 support.', $request);
     55            }
     56        } elseif ('1.0' !== $protocolVersion && '1.1' !== $protocolVersion) {
     57            throw new ConnectException(sprintf('HTTP/%s is not supported by the cURL handler.', $protocolVersion), $request);
     58        }
     59
    4960        if (isset($options['curl']['body_as_string'])) {
    5061            $options['_body_as_string'] = $options['curl']['body_as_string'];
     
    7182
    7283        return $easy;
     84    }
     85
     86    private static function supportsHttp2(): bool
     87    {
     88        static $supportsHttp2 = null;
     89
     90        if (null === $supportsHttp2) {
     91            $supportsHttp2 = self::supportsTls12()
     92                && defined('CURL_VERSION_HTTP2')
     93                && (\CURL_VERSION_HTTP2 & \curl_version()['features']);
     94        }
     95
     96        return $supportsHttp2;
     97    }
     98
     99    private static function supportsTls12(): bool
     100    {
     101        static $supportsTls12 = null;
     102
     103        if (null === $supportsTls12) {
     104            $supportsTls12 = \CURL_SSLVERSION_TLSv1_2 & \curl_version()['features'];
     105        }
     106
     107        return $supportsTls12;
     108    }
     109
     110    private static function supportsTls13(): bool
     111    {
     112        static $supportsTls13 = null;
     113
     114        if (null === $supportsTls13) {
     115            $supportsTls13 = defined('CURL_SSLVERSION_TLSv1_3')
     116                && (\CURL_SSLVERSION_TLSv1_3 & \curl_version()['features']);
     117        }
     118
     119        return $supportsTls13;
    73120    }
    74121
     
    148195            'appconnect_time' => \curl_getinfo($easy->handle, \CURLINFO_APPCONNECT_TIME),
    149196        ] + \curl_getinfo($easy->handle);
    150         $ctx[self::CURL_VERSION_STR] = \curl_version()['version'];
     197        $ctx[self::CURL_VERSION_STR] = self::getCurlVersion();
    151198        $factory->release($easy);
    152199
     
    157204
    158205        return self::createRejection($easy, $ctx);
     206    }
     207
     208    private static function getCurlVersion(): string
     209    {
     210        static $curlVersion = null;
     211
     212        if (null === $curlVersion) {
     213            $curlVersion = \curl_version()['version'];
     214        }
     215
     216        return $curlVersion;
    159217    }
    160218
     
    195253        }
    196254
     255        $uri = $easy->request->getUri();
     256
     257        $sanitizedError = self::sanitizeCurlError($ctx['error'] ?? '', $uri);
     258
    197259        $message = \sprintf(
    198260            'cURL error %s: %s (%s)',
    199261            $ctx['errno'],
    200             $ctx['error'],
     262            $sanitizedError,
    201263            'see https://curl.haxx.se/libcurl/c/libcurl-errors.html'
    202264        );
    203         $uriString = (string) $easy->request->getUri();
    204         if ($uriString !== '' && false === \strpos($ctx['error'], $uriString)) {
    205             $message .= \sprintf(' for %s', $uriString);
     265
     266        if ('' !== $sanitizedError) {
     267            $redactedUriString = \GuzzleHttp\Psr7\Utils::redactUserInfo($uri)->__toString();
     268            if ($redactedUriString !== '' && false === \strpos($sanitizedError, $redactedUriString)) {
     269                $message .= \sprintf(' for %s', $redactedUriString);
     270            }
    206271        }
    207272
     
    212277
    213278        return P\Create::rejectionFor($error);
     279    }
     280
     281    private static function sanitizeCurlError(string $error, UriInterface $uri): string
     282    {
     283        if ('' === $error) {
     284            return $error;
     285        }
     286
     287        $baseUri = $uri->withQuery('')->withFragment('');
     288        $baseUriString = $baseUri->__toString();
     289
     290        if ('' === $baseUriString) {
     291            return $error;
     292        }
     293
     294        $redactedUriString = \GuzzleHttp\Psr7\Utils::redactUserInfo($baseUri)->__toString();
     295
     296        return str_replace($baseUriString, $redactedUriString, $error);
    214297    }
    215298
     
    233316
    234317        $version = $easy->request->getProtocolVersion();
    235         if ($version == 1.1) {
     318
     319        if ('2' === $version || '2.0' === $version) {
     320            $conf[\CURLOPT_HTTP_VERSION] = \CURL_HTTP_VERSION_2_0;
     321        } elseif ('1.1' === $version) {
    236322            $conf[\CURLOPT_HTTP_VERSION] = \CURL_HTTP_VERSION_1_1;
    237         } elseif ($version == 2.0) {
    238             $conf[\CURLOPT_HTTP_VERSION] = \CURL_HTTP_VERSION_2_0;
    239323        } else {
    240324            $conf[\CURLOPT_HTTP_VERSION] = \CURL_HTTP_VERSION_1_0;
     
    391475                // sets a matching 'Accept-Encoding' header.
    392476                $conf[\CURLOPT_ENCODING] = '';
    393                 // But as the user did not specify any acceptable encodings we need
    394                 // to overwrite this implicit header with an empty one.
     477                // But as the user did not specify any encoding preference,
     478                // let's leave it up to server by preventing curl from sending
     479                // the header, which will be interpreted as 'Accept-Encoding: *'.
     480                // https://www.rfc-editor.org/rfc/rfc9110#field.accept-encoding
    395481                $conf[\CURLOPT_HTTPHEADER][] = 'Accept-Encoding:';
    396482            }
     
    456542
    457543        if (isset($options['crypto_method'])) {
    458             if (\STREAM_CRYPTO_METHOD_TLSv1_0_CLIENT === $options['crypto_method']) {
    459                 if (!defined('CURL_SSLVERSION_TLSv1_0')) {
    460                     throw new \InvalidArgumentException('Invalid crypto_method request option: TLS 1.0 not supported by your version of cURL');
    461                 }
     544            $protocolVersion = $easy->request->getProtocolVersion();
     545
     546            // If HTTP/2, upgrade TLS 1.0 and 1.1 to 1.2
     547            if ('2' === $protocolVersion || '2.0' === $protocolVersion) {
     548                if (
     549                    \STREAM_CRYPTO_METHOD_TLSv1_0_CLIENT === $options['crypto_method']
     550                    || \STREAM_CRYPTO_METHOD_TLSv1_1_CLIENT === $options['crypto_method']
     551                    || \STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT === $options['crypto_method']
     552                ) {
     553                    $conf[\CURLOPT_SSLVERSION] = \CURL_SSLVERSION_TLSv1_2;
     554                } elseif (defined('STREAM_CRYPTO_METHOD_TLSv1_3_CLIENT') && \STREAM_CRYPTO_METHOD_TLSv1_3_CLIENT === $options['crypto_method']) {
     555                    if (!self::supportsTls13()) {
     556                        throw new \InvalidArgumentException('Invalid crypto_method request option: TLS 1.3 not supported by your version of cURL');
     557                    }
     558                    $conf[\CURLOPT_SSLVERSION] = \CURL_SSLVERSION_TLSv1_3;
     559                } else {
     560                    throw new \InvalidArgumentException('Invalid crypto_method request option: unknown version provided');
     561                }
     562            } elseif (\STREAM_CRYPTO_METHOD_TLSv1_0_CLIENT === $options['crypto_method']) {
    462563                $conf[\CURLOPT_SSLVERSION] = \CURL_SSLVERSION_TLSv1_0;
    463564            } elseif (\STREAM_CRYPTO_METHOD_TLSv1_1_CLIENT === $options['crypto_method']) {
    464                 if (!defined('CURL_SSLVERSION_TLSv1_1')) {
    465                     throw new \InvalidArgumentException('Invalid crypto_method request option: TLS 1.1 not supported by your version of cURL');
    466                 }
    467565                $conf[\CURLOPT_SSLVERSION] = \CURL_SSLVERSION_TLSv1_1;
    468566            } elseif (\STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT === $options['crypto_method']) {
    469                 if (!defined('CURL_SSLVERSION_TLSv1_2')) {
     567                if (!self::supportsTls12()) {
    470568                    throw new \InvalidArgumentException('Invalid crypto_method request option: TLS 1.2 not supported by your version of cURL');
    471569                }
    472570                $conf[\CURLOPT_SSLVERSION] = \CURL_SSLVERSION_TLSv1_2;
    473571            } elseif (defined('STREAM_CRYPTO_METHOD_TLSv1_3_CLIENT') && \STREAM_CRYPTO_METHOD_TLSv1_3_CLIENT === $options['crypto_method']) {
    474                 if (!defined('CURL_SSLVERSION_TLSv1_3')) {
     572                if (!self::supportsTls13()) {
    475573                    throw new \InvalidArgumentException('Invalid crypto_method request option: TLS 1.3 not supported by your version of cURL');
    476574                }
  • web-archive/trunk/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php

    r3095601 r3125369  
    33namespace GuzzleHttp\Handler;
    44
     5use Closure;
    56use GuzzleHttp\Promise as P;
    67use GuzzleHttp\Promise\Promise;
     
    160161        }
    161162
     163        // Run curl_multi_exec in the queue to enable other async tasks to run
     164        P\Utils::queue()->add(Closure::fromCallable([$this, 'tickInQueue']));
     165
    162166        // Step through the task queue which may add additional requests.
    163167        P\Utils::queue()->run();
     
    170174
    171175        while (\curl_multi_exec($this->_mh, $this->active) === \CURLM_CALL_MULTI_PERFORM) {
     176            // Prevent busy looping for slow HTTP requests.
     177            \curl_multi_select($this->_mh, $this->selectTimeout);
    172178        }
    173179
    174180        $this->processMessages();
     181    }
     182
     183    /**
     184     * Runs \curl_multi_exec() inside the event loop, to prevent busy looping
     185     */
     186    private function tickInQueue(): void
     187    {
     188        if (\curl_multi_exec($this->_mh, $this->active) === \CURLM_CALL_MULTI_PERFORM) {
     189            \curl_multi_select($this->_mh, 0);
     190            P\Utils::queue()->add(Closure::fromCallable([$this, 'tickInQueue']));
     191        }
    175192    }
    176193
  • web-archive/trunk/vendor/guzzlehttp/guzzle/src/Handler/MockHandler.php

    r3095601 r3125369  
    5353     * @param callable|null $onRejected  Callback to invoke when the return value is rejected.
    5454     */
    55     public static function createWithMiddleware(array $queue = null, callable $onFulfilled = null, callable $onRejected = null): HandlerStack
     55    public static function createWithMiddleware(?array $queue = null, ?callable $onFulfilled = null, ?callable $onRejected = null): HandlerStack
    5656    {
    5757        return HandlerStack::create(new self($queue, $onFulfilled, $onRejected));
     
    6060    /**
    6161     * The passed in value must be an array of
    62      * {@see \Psr\Http\Message\ResponseInterface} objects, Exceptions,
     62     * {@see ResponseInterface} objects, Exceptions,
    6363     * callables, or Promises.
    6464     *
     
    6767     * @param callable|null          $onRejected  Callback to invoke when the return value is rejected.
    6868     */
    69     public function __construct(array $queue = null, callable $onFulfilled = null, callable $onRejected = null)
     69    public function __construct(?array $queue = null, ?callable $onFulfilled = null, ?callable $onRejected = null)
    7070    {
    7171        $this->onFulfilled = $onFulfilled;
     
    201201        RequestInterface $request,
    202202        array $options,
    203         ResponseInterface $response = null,
     203        ?ResponseInterface $response = null,
    204204        $reason = null
    205205    ): void {
  • web-archive/trunk/vendor/guzzlehttp/guzzle/src/Handler/StreamHandler.php

    r3095601 r3125369  
    3939        if (isset($options['delay'])) {
    4040            \usleep($options['delay'] * 1000);
     41        }
     42
     43        $protocolVersion = $request->getProtocolVersion();
     44
     45        if ('1.0' !== $protocolVersion && '1.1' !== $protocolVersion) {
     46            throw new ConnectException(sprintf('HTTP/%s is not supported by the stream handler.', $protocolVersion), $request);
    4147        }
    4248
     
    8490        RequestInterface $request,
    8591        ?float $startTime,
    86         ResponseInterface $response = null,
    87         \Throwable $error = null
     92        ?ResponseInterface $response = null,
     93        ?\Throwable $error = null
    8894    ): void {
    8995        if (isset($options['on_stats'])) {
     
    274280        // HTTP/1.1 streams using the PHP stream wrapper require a
    275281        // Connection: close header
    276         if ($request->getProtocolVersion() == '1.1'
     282        if ($request->getProtocolVersion() === '1.1'
    277283            && !$request->hasHeader('Connection')
    278284        ) {
  • web-archive/trunk/vendor/guzzlehttp/guzzle/src/HandlerStack.php

    r3095601 r3125369  
    4545     *                                                                            system will be utilized.
    4646     */
    47     public static function create(callable $handler = null): self
     47    public static function create(?callable $handler = null): self
    4848    {
    4949        $stack = new self($handler ?: Utils::chooseHandler());
     
    5959     * @param (callable(RequestInterface, array): PromiseInterface)|null $handler Underlying HTTP handler.
    6060     */
    61     public function __construct(callable $handler = null)
     61    public function __construct(?callable $handler = null)
    6262    {
    6363        $this->handler = $handler;
     
    132132     * @param string                       $name       Name to register for this middleware.
    133133     */
    134     public function unshift(callable $middleware, string $name = null): void
     134    public function unshift(callable $middleware, ?string $name = null): void
    135135    {
    136136        \array_unshift($this->stack, [$middleware, $name]);
  • web-archive/trunk/vendor/guzzlehttp/guzzle/src/MessageFormatter.php

    r3095601 r3125369  
    6969     * @param \Throwable|null        $error    Exception that was received
    7070     */
    71     public function format(RequestInterface $request, ResponseInterface $response = null, \Throwable $error = null): string
     71    public function format(RequestInterface $request, ?ResponseInterface $response = null, ?\Throwable $error = null): string
    7272    {
    7373        $cache = [];
  • web-archive/trunk/vendor/guzzlehttp/guzzle/src/MessageFormatterInterface.php

    r3095601 r3125369  
    1515     * @param \Throwable|null        $error    Exception that was received
    1616     */
    17     public function format(RequestInterface $request, ResponseInterface $response = null, \Throwable $error = null): string;
     17    public function format(RequestInterface $request, ?ResponseInterface $response = null, ?\Throwable $error = null): string;
    1818}
  • web-archive/trunk/vendor/guzzlehttp/guzzle/src/Middleware.php

    r3095601 r3125369  
    5656     * @return callable(callable): callable Returns a function that accepts the next handler.
    5757     */
    58     public static function httpErrors(BodySummarizerInterface $bodySummarizer = null): callable
     58    public static function httpErrors(?BodySummarizerInterface $bodySummarizer = null): callable
    5959    {
    6060        return static function (callable $handler) use ($bodySummarizer): callable {
     
    133133     * @return callable Returns a function that accepts the next handler.
    134134     */
    135     public static function tap(callable $before = null, callable $after = null): callable
     135    public static function tap(?callable $before = null, ?callable $after = null): callable
    136136    {
    137137        return static function (callable $handler) use ($before, $after): callable {
     
    177177     * @return callable Returns a function that accepts the next handler.
    178178     */
    179     public static function retry(callable $decider, callable $delay = null): callable
     179    public static function retry(callable $decider, ?callable $delay = null): callable
    180180    {
    181181        return static function (callable $handler) use ($decider, $delay): RetryMiddleware {
  • web-archive/trunk/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php

    r3095601 r3125369  
    7777        $expect = $options['expect'] ?? null;
    7878
    79         // Return if disabled or if you're not using HTTP/1.1 or HTTP/2.0
    80         if ($expect === false || $request->getProtocolVersion() < 1.1) {
     79        // Return if disabled or using HTTP/1.0
     80        if ($expect === false || $request->getProtocolVersion() === '1.0') {
    8181            return;
    8282        }
  • web-archive/trunk/vendor/guzzlehttp/guzzle/src/RequestOptions.php

    r3095601 r3125369  
    6262     * jar to use or what cookies to send. This option only works if your
    6363     * handler has the `cookie` middleware. Valid values are `false` and
    64      * an instance of {@see \GuzzleHttp\Cookie\CookieJarInterface}.
     64     * an instance of {@see Cookie\CookieJarInterface}.
    6565     */
    6666    public const COOKIES = 'cookies';
  • web-archive/trunk/vendor/guzzlehttp/guzzle/src/RetryMiddleware.php

    r3095601 r3125369  
    4141     *                                                                         milliseconds to delay.
    4242     */
    43     public function __construct(callable $decider, callable $nextHandler, callable $delay = null)
     43    public function __construct(callable $decider, callable $nextHandler, ?callable $delay = null)
    4444    {
    4545        $this->decider = $decider;
     
    111111    }
    112112
    113     private function doRetry(RequestInterface $request, array $options, ResponseInterface $response = null): PromiseInterface
     113    private function doRetry(RequestInterface $request, array $options, ?ResponseInterface $response = null): PromiseInterface
    114114    {
    115115        $options['delay'] = ($this->delay)(++$options['retries'], $response, $request);
  • web-archive/trunk/vendor/guzzlehttp/guzzle/src/TransferStats.php

    r3095601 r3125369  
    4747    public function __construct(
    4848        RequestInterface $request,
    49         ResponseInterface $response = null,
    50         float $transferTime = null,
     49        ?ResponseInterface $response = null,
     50        ?float $transferTime = null,
    5151        $handlerErrorData = null,
    5252        array $handlerStats = []
  • web-archive/trunk/vendor/guzzlehttp/guzzle/src/Utils.php

    r3095601 r3125369  
    7272        }
    7373
    74         return \GuzzleHttp\Psr7\Utils::tryFopen('php://output', 'w');
     74        return Psr7\Utils::tryFopen('php://output', 'w');
    7575    }
    7676
     
    8888        $handler = null;
    8989
    90         if (\defined('CURLOPT_CUSTOMREQUEST')) {
     90        if (\defined('CURLOPT_CUSTOMREQUEST') && \function_exists('curl_version') && version_compare(curl_version()['version'], '7.21.2') >= 0) {
    9191            if (\function_exists('curl_multi_exec') && \function_exists('curl_exec')) {
    9292                $handler = Proxy::wrapSync(new CurlMultiHandler(), new CurlHandler());
  • web-archive/trunk/vendor/guzzlehttp/promises/CHANGELOG.md

    r3095601 r3125369  
    11# CHANGELOG
     2
     3
     4## 2.0.3 - 2024-07-18
     5
     6### Changed
     7
     8- PHP 8.4 support
    29
    310
  • web-archive/trunk/vendor/guzzlehttp/promises/README.md

    r3095601 r3125369  
    3939## Version Guidance
    4040
    41 | Version | Status                 | PHP Version  |
    42 |---------|------------------------|--------------|
    43 | 1.x     | Bug and security fixes | >=5.5,<8.3   |
    44 | 2.x     | Latest                 | >=7.2.5,<8.4 |
     41| Version | Status              | PHP Version  |
     42|---------|---------------------|--------------|
     43| 1.x     | Security fixes only | >=5.5,<8.3   |
     44| 2.x     | Latest              | >=7.2.5,<8.5 |
    4545
    4646
  • web-archive/trunk/vendor/guzzlehttp/promises/composer.json

    r3095601 r3125369  
    3131    "require-dev": {
    3232        "bamarni/composer-bin-plugin": "^1.8.2",
    33         "phpunit/phpunit": "^8.5.36 || ^9.6.15"
     33        "phpunit/phpunit": "^8.5.39 || ^9.6.20"
    3434    },
    3535    "autoload": {
  • web-archive/trunk/vendor/guzzlehttp/promises/src/Coroutine.php

    r3095601 r3125369  
    8585
    8686    public function then(
    87         callable $onFulfilled = null,
    88         callable $onRejected = null
     87        ?callable $onFulfilled = null,
     88        ?callable $onRejected = null
    8989    ): PromiseInterface {
    9090        return $this->result->then($onFulfilled, $onRejected);
  • web-archive/trunk/vendor/guzzlehttp/promises/src/Each.php

    r3095601 r3125369  
    2424    public static function of(
    2525        $iterable,
    26         callable $onFulfilled = null,
    27         callable $onRejected = null
     26        ?callable $onFulfilled = null,
     27        ?callable $onRejected = null
    2828    ): PromiseInterface {
    2929        return (new EachPromise($iterable, [
     
    4747        $iterable,
    4848        $concurrency,
    49         callable $onFulfilled = null,
    50         callable $onRejected = null
     49        ?callable $onFulfilled = null,
     50        ?callable $onRejected = null
    5151    ): PromiseInterface {
    5252        return (new EachPromise($iterable, [
     
    6868        $iterable,
    6969        $concurrency,
    70         callable $onFulfilled = null
     70        ?callable $onFulfilled = null
    7171    ): PromiseInterface {
    7272        return self::ofLimit(
  • web-archive/trunk/vendor/guzzlehttp/promises/src/FulfilledPromise.php

    r3095601 r3125369  
    3232
    3333    public function then(
    34         callable $onFulfilled = null,
    35         callable $onRejected = null
     34        ?callable $onFulfilled = null,
     35        ?callable $onRejected = null
    3636    ): PromiseInterface {
    3737        // Return itself if there is no onFulfilled function.
  • web-archive/trunk/vendor/guzzlehttp/promises/src/Promise.php

    r3095601 r3125369  
    2626     */
    2727    public function __construct(
    28         callable $waitFn = null,
    29         callable $cancelFn = null
     28        ?callable $waitFn = null,
     29        ?callable $cancelFn = null
    3030    ) {
    3131        $this->waitFn = $waitFn;
     
    3434
    3535    public function then(
    36         callable $onFulfilled = null,
    37         callable $onRejected = null
     36        ?callable $onFulfilled = null,
     37        ?callable $onRejected = null
    3838    ): PromiseInterface {
    3939        if ($this->state === self::PENDING) {
  • web-archive/trunk/vendor/guzzlehttp/promises/src/PromiseInterface.php

    r3095601 r3125369  
    2828     */
    2929    public function then(
    30         callable $onFulfilled = null,
    31         callable $onRejected = null
     30        ?callable $onFulfilled = null,
     31        ?callable $onRejected = null
    3232    ): PromiseInterface;
    3333
  • web-archive/trunk/vendor/guzzlehttp/promises/src/RejectedPromise.php

    r3095601 r3125369  
    3232
    3333    public function then(
    34         callable $onFulfilled = null,
    35         callable $onRejected = null
     34        ?callable $onFulfilled = null,
     35        ?callable $onRejected = null
    3636    ): PromiseInterface {
    3737        // If there's no onRejected callback then just return self.
  • web-archive/trunk/vendor/guzzlehttp/promises/src/RejectionException.php

    r3095601 r3125369  
    1919     * @param string|null $description Optional description.
    2020     */
    21     public function __construct($reason, string $description = null)
     21    public function __construct($reason, ?string $description = null)
    2222    {
    2323        $this->reason = $reason;
  • web-archive/trunk/vendor/guzzlehttp/promises/src/Utils.php

    r3095601 r3125369  
    2222     * @param TaskQueueInterface|null $assign Optionally specify a new queue instance.
    2323     */
    24     public static function queue(TaskQueueInterface $assign = null): TaskQueueInterface
     24    public static function queue(?TaskQueueInterface $assign = null): TaskQueueInterface
    2525    {
    2626        static $queue;
  • web-archive/trunk/vendor/guzzlehttp/psr7/CHANGELOG.md

    r3095601 r3125369  
    55The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
    66and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
     7
     8## 2.7.0 - 2024-07-18
     9
     10### Added
     11
     12- Add `Utils::redactUserInfo()` method
     13- Add ability to encode bools as ints in `Query::build`
     14
     15## 2.6.3 - 2024-07-18
     16
     17### Fixed
     18
     19- Make `StreamWrapper::stream_stat()` return `false` if inner stream's size is `null`
     20
     21### Changed
     22
     23- PHP 8.4 support
    724
    825## 2.6.2 - 2023-12-03
  • web-archive/trunk/vendor/guzzlehttp/psr7/README.md

    r3095601 r3125369  
    2525| Version | Status              | PHP Version  |
    2626|---------|---------------------|--------------|
    27 | 1.x     | Security fixes only | >=5.4,<8.1   |
    28 | 2.x     | Latest              | >=7.2.5,<8.4 |
     27| 1.x     | EOL (2024-06-30)    | >=5.4,<8.2   |
     28| 2.x     | Latest              | >=7.2.5,<8.5 |
    2929
    3030
     
    437437## `GuzzleHttp\Psr7\Query::build`
    438438
    439 `public static function build(array $params, int|false $encoding = PHP_QUERY_RFC3986): string`
     439`public static function build(array $params, int|false $encoding = PHP_QUERY_RFC3986, bool $treatBoolsAsInts = true): string`
    440440
    441441Build a query string from an array of key value pairs.
     
    499499## `GuzzleHttp\Psr7\Utils::readLine`
    500500
    501 `public static function readLine(StreamInterface $stream, int $maxLength = null): string`
     501`public static function readLine(StreamInterface $stream, ?int $maxLength = null): string`
    502502
    503503Read a line from the stream up to the maximum allowed buffer length.
     504
     505
     506## `GuzzleHttp\Psr7\Utils::redactUserInfo`
     507
     508`public static function redactUserInfo(UriInterface $uri): UriInterface`
     509
     510Redact the password in the user info part of a URI.
    504511
    505512
     
    675682### `GuzzleHttp\Psr7\Uri::isSameDocumentReference`
    676683
    677 `public static function isSameDocumentReference(UriInterface $uri, UriInterface $base = null): bool`
     684`public static function isSameDocumentReference(UriInterface $uri, ?UriInterface $base = null): bool`
    678685
    679686Whether the URI is a same-document reference. A same-document reference refers to a URI that is, aside from its
  • web-archive/trunk/vendor/guzzlehttp/psr7/composer.json

    r3095601 r3125369  
    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": {
  • web-archive/trunk/vendor/guzzlehttp/psr7/src/CachingStream.php

    r3095601 r3125369  
    3434    public function __construct(
    3535        StreamInterface $stream,
    36         StreamInterface $target = null
     36        ?StreamInterface $target = null
    3737    ) {
    3838        $this->remoteStream = $stream;
  • web-archive/trunk/vendor/guzzlehttp/psr7/src/HttpFactory.php

    r3095601 r3125369  
    2828    public function createUploadedFile(
    2929        StreamInterface $stream,
    30         int $size = null,
     30        ?int $size = null,
    3131        int $error = \UPLOAD_ERR_OK,
    32         string $clientFilename = null,
    33         string $clientMediaType = null
     32        ?string $clientFilename = null,
     33        ?string $clientMediaType = null
    3434    ): UploadedFileInterface {
    3535        if ($size === null) {
  • web-archive/trunk/vendor/guzzlehttp/psr7/src/MultipartStream.php

    r3095601 r3125369  
    3333     * @throws \InvalidArgumentException
    3434     */
    35     public function __construct(array $elements = [], string $boundary = null)
     35    public function __construct(array $elements = [], ?string $boundary = null)
    3636    {
    3737        $this->boundary = $boundary ?: bin2hex(random_bytes(20));
  • web-archive/trunk/vendor/guzzlehttp/psr7/src/Query.php

    r3095601 r3125369  
    6464     * encountered (like `http_build_query()` would).
    6565     *
    66      * @param array     $params   Query string parameters.
    67      * @param int|false $encoding Set to false to not encode, PHP_QUERY_RFC3986
    68      *                            to encode using RFC3986, or PHP_QUERY_RFC1738
    69      *                            to encode using RFC1738.
     66     * @param array     $params           Query string parameters.
     67     * @param int|false $encoding         Set to false to not encode,
     68     *                                    PHP_QUERY_RFC3986 to encode using
     69     *                                    RFC3986, or PHP_QUERY_RFC1738 to
     70     *                                    encode using RFC1738.
     71     * @param bool      $treatBoolsAsInts Set to true to encode as 0/1, and
     72     *                                    false as false/true.
    7073     */
    71     public static function build(array $params, $encoding = PHP_QUERY_RFC3986): string
     74    public static function build(array $params, $encoding = PHP_QUERY_RFC3986, bool $treatBoolsAsInts = true): string
    7275    {
    7376        if (!$params) {
     
    8790        }
    8891
     92        $castBool = $treatBoolsAsInts ? static function ($v) { return (int) $v; } : static function ($v) { return $v ? 'true' : 'false'; };
     93
    8994        $qs = '';
    9095        foreach ($params as $k => $v) {
     
    9297            if (!is_array($v)) {
    9398                $qs .= $k;
    94                 $v = is_bool($v) ? (int) $v : $v;
     99                $v = is_bool($v) ? $castBool($v) : $v;
    95100                if ($v !== null) {
    96101                    $qs .= '='.$encoder((string) $v);
     
    100105                foreach ($v as $vv) {
    101106                    $qs .= $k;
    102                     $vv = is_bool($vv) ? (int) $vv : $vv;
     107                    $vv = is_bool($vv) ? $castBool($vv) : $vv;
    103108                    if ($vv !== null) {
    104109                        $qs .= '='.$encoder((string) $vv);
  • web-archive/trunk/vendor/guzzlehttp/psr7/src/Response.php

    r3095601 r3125369  
    9797        $body = null,
    9898        string $version = '1.1',
    99         string $reason = null
     99        ?string $reason = null
    100100    ) {
    101101        $this->assertStatusCodeRange($status);
  • web-archive/trunk/vendor/guzzlehttp/psr7/src/StreamWrapper.php

    r3095601 r3125369  
    7070    }
    7171
    72     public function stream_open(string $path, string $mode, int $options, string &$opened_path = null): bool
     72    public function stream_open(string $path, string $mode, int $options, ?string &$opened_path = null): bool
    7373    {
    7474        $options = stream_context_get_options($this->context);
     
    120120
    121121        return $resource ?? false;
     122    }
     123
     124    /**
     125     * @return array{
     126     *   dev: int,
     127     *   ino: int,
     128     *   mode: int,
     129     *   nlink: int,
     130     *   uid: int,
     131     *   gid: int,
     132     *   rdev: int,
     133     *   size: int,
     134     *   atime: int,
     135     *   mtime: int,
     136     *   ctime: int,
     137     *   blksize: int,
     138     *   blocks: int
     139     * }|false
     140     */
     141    public function stream_stat()
     142    {
     143        if ($this->stream->getSize() === null) {
     144            return false;
     145        }
     146
     147        static $modeMap = [
     148            'r' => 33060,
     149            'rb' => 33060,
     150            'r+' => 33206,
     151            'w' => 33188,
     152            'wb' => 33188,
     153        ];
     154
     155        return [
     156            'dev' => 0,
     157            'ino' => 0,
     158            'mode' => $modeMap[$this->mode],
     159            'nlink' => 0,
     160            'uid' => 0,
     161            'gid' => 0,
     162            'rdev' => 0,
     163            'size' => $this->stream->getSize() ?: 0,
     164            'atime' => 0,
     165            'mtime' => 0,
     166            'ctime' => 0,
     167            'blksize' => 0,
     168            'blocks' => 0,
     169        ];
    122170    }
    123171
     
    139187     * }
    140188     */
    141     public function stream_stat(): array
    142     {
    143         static $modeMap = [
    144             'r' => 33060,
    145             'rb' => 33060,
    146             'r+' => 33206,
    147             'w' => 33188,
    148             'wb' => 33188,
    149         ];
    150 
    151         return [
    152             'dev' => 0,
    153             'ino' => 0,
    154             'mode' => $modeMap[$this->mode],
    155             'nlink' => 0,
    156             'uid' => 0,
    157             'gid' => 0,
    158             'rdev' => 0,
    159             'size' => $this->stream->getSize() ?: 0,
    160             'atime' => 0,
    161             'mtime' => 0,
    162             'ctime' => 0,
    163             'blksize' => 0,
    164             'blocks' => 0,
    165         ];
    166     }
    167 
    168     /**
    169      * @return array{
    170      *   dev: int,
    171      *   ino: int,
    172      *   mode: int,
    173      *   nlink: int,
    174      *   uid: int,
    175      *   gid: int,
    176      *   rdev: int,
    177      *   size: int,
    178      *   atime: int,
    179      *   mtime: int,
    180      *   ctime: int,
    181      *   blksize: int,
    182      *   blocks: int
    183      * }
    184      */
    185189    public function url_stat(string $path, int $flags): array
    186190    {
  • web-archive/trunk/vendor/guzzlehttp/psr7/src/UploadedFile.php

    r3095601 r3125369  
    6565        ?int $size,
    6666        int $errorStatus,
    67         string $clientFilename = null,
    68         string $clientMediaType = null
     67        ?string $clientFilename = null,
     68        ?string $clientMediaType = null
    6969    ) {
    7070        $this->setError($errorStatus);
  • web-archive/trunk/vendor/guzzlehttp/psr7/src/Uri.php

    r3095601 r3125369  
    280280     * @see https://datatracker.ietf.org/doc/html/rfc3986#section-4.4
    281281     */
    282     public static function isSameDocumentReference(UriInterface $uri, UriInterface $base = null): bool
     282    public static function isSameDocumentReference(UriInterface $uri, ?UriInterface $base = null): bool
    283283    {
    284284        if ($base !== null) {
  • web-archive/trunk/vendor/guzzlehttp/psr7/src/Utils.php

    r3095601 r3125369  
    232232     * @param int|null        $maxLength Maximum buffer length
    233233     */
    234     public static function readLine(StreamInterface $stream, int $maxLength = null): string
     234    public static function readLine(StreamInterface $stream, ?int $maxLength = null): string
    235235    {
    236236        $buffer = '';
     
    249249
    250250        return $buffer;
     251    }
     252
     253    /**
     254     * Redact the password in the user info part of a URI.
     255     */
     256    public static function redactUserInfo(UriInterface $uri): UriInterface
     257    {
     258        $userInfo = $uri->getUserInfo();
     259
     260        if (false !== ($pos = \strpos($userInfo, ':'))) {
     261            return $uri->withUserInfo(\substr($userInfo, 0, $pos), '***');
     262        }
     263
     264        return $uri;
    251265    }
    252266
  • web-archive/trunk/vendor/phpoption/phpoption/composer.json

    r3095601 r3125369  
    2121    "require-dev": {
    2222        "bamarni/composer-bin-plugin": "^1.8.2",
    23         "phpunit/phpunit": "^8.5.34 || ^9.6.13 || ^10.4.2"
     23        "phpunit/phpunit": "^8.5.39 || ^9.6.20 || ^10.5.28"
    2424    },
    2525    "autoload": {
     
    4242        "bamarni-bin": {
    4343            "bin-links": true,
    44             "forward-command": true
     44            "forward-command": false
    4545        },
    4646        "branch-alias": {
    4747            "dev-master": "1.9-dev"
    4848        }
    49     },
    50     "minimum-stability": "dev",
    51     "prefer-stable": true
     49    }
    5250}
  • web-archive/trunk/vendor/phpoption/phpoption/src/PhpOption/Option.php

    r3095601 r3125369  
    6363     *
    6464     * @param array<string|int,S>|ArrayAccess<string|int,S>|null $array A potential array or \ArrayAccess value.
    65      * @param string                                             $key   The key to check.
     65     * @param string|int|null                                    $key   The key to check.
    6666     *
    6767     * @return Option<S>
     
    6969    public static function fromArraysValue($array, $key)
    7070    {
    71         if (!(is_array($array) || $array instanceof ArrayAccess) || !isset($array[$key])) {
     71        if ($key === null || !(is_array($array) || $array instanceof ArrayAccess) || !isset($array[$key])) {
    7272            return None::create();
    7373        }
  • web-archive/trunk/vendor/symfony/polyfill-mbstring/Mbstring.php

    r3095601 r3125369  
    4949 * - mb_strwidth             - Return width of string
    5050 * - mb_substr_count         - Count the number of substring occurrences
     51 * - mb_ucfirst              - Make a string's first character uppercase
     52 * - mb_lcfirst              - Make a string's first character lowercase
    5153 *
    5254 * Not implemented:
     
    8183    public static function mb_convert_encoding($s, $toEncoding, $fromEncoding = null)
    8284    {
     85        if (\is_array($s)) {
     86            if (PHP_VERSION_ID < 70200) {
     87                trigger_error('mb_convert_encoding() expects parameter 1 to be string, array given', \E_USER_WARNING);
     88
     89                return null;
     90            }
     91
     92            $r = [];
     93            foreach ($s as $str) {
     94                $r[] = self::mb_convert_encoding($str, $toEncoding, $fromEncoding);
     95            }
     96
     97            return $r;
     98        }
     99
    83100        if (\is_array($fromEncoding) || (null !== $fromEncoding && false !== strpos($fromEncoding, ','))) {
    84101            $fromEncoding = self::mb_detect_encoding($s, $fromEncoding);
     
    411428    public static function mb_check_encoding($var = null, $encoding = null)
    412429    {
    413         if (PHP_VERSION_ID < 70200 && \is_array($var)) {
     430        if (\PHP_VERSION_ID < 70200 && \is_array($var)) {
    414431            trigger_error('mb_check_encoding() expects parameter 1 to be string, array given', \E_USER_WARNING);
    415432
     
    438455
    439456        return true;
    440 
    441457    }
    442458
     
    828844    }
    829845
    830     public static function mb_str_pad(string $string, int $length, string $pad_string = ' ', int $pad_type = \STR_PAD_RIGHT, string $encoding = null): string
     846    public static function mb_str_pad(string $string, int $length, string $pad_string = ' ', int $pad_type = \STR_PAD_RIGHT, ?string $encoding = null): string
    831847    {
    832848        if (!\in_array($pad_type, [\STR_PAD_RIGHT, \STR_PAD_LEFT, \STR_PAD_BOTH], true)) {
     
    836852        if (null === $encoding) {
    837853            $encoding = self::mb_internal_encoding();
    838         }
    839 
    840         try {
    841             $validEncoding = @self::mb_check_encoding('', $encoding);
    842         } catch (\ValueError $e) {
    843             throw new \ValueError(sprintf('mb_str_pad(): Argument #5 ($encoding) must be a valid encoding, "%s" given', $encoding));
    844         }
    845 
    846         // BC for PHP 7.3 and lower
    847         if (!$validEncoding) {
    848             throw new \ValueError(sprintf('mb_str_pad(): Argument #5 ($encoding) must be a valid encoding, "%s" given', $encoding));
     854        } else {
     855            self::assertEncoding($encoding, 'mb_str_pad(): Argument #5 ($encoding) must be a valid encoding, "%s" given');
    849856        }
    850857
     
    872879    }
    873880
     881    public static function mb_ucfirst(string $string, ?string $encoding = null): string
     882    {
     883        if (null === $encoding) {
     884            $encoding = self::mb_internal_encoding();
     885        } else {
     886            self::assertEncoding($encoding, 'mb_ucfirst(): Argument #2 ($encoding) must be a valid encoding, "%s" given');
     887        }
     888
     889        $firstChar = mb_substr($string, 0, 1, $encoding);
     890        $firstChar = mb_convert_case($firstChar, \MB_CASE_TITLE, $encoding);
     891
     892        return $firstChar.mb_substr($string, 1, null, $encoding);
     893    }
     894
     895    public static function mb_lcfirst(string $string, ?string $encoding = null): string
     896    {
     897        if (null === $encoding) {
     898            $encoding = self::mb_internal_encoding();
     899        } else {
     900            self::assertEncoding($encoding, 'mb_lcfirst(): Argument #2 ($encoding) must be a valid encoding, "%s" given');
     901        }
     902
     903        $firstChar = mb_substr($string, 0, 1, $encoding);
     904        $firstChar = mb_convert_case($firstChar, \MB_CASE_LOWER, $encoding);
     905
     906        return $firstChar.mb_substr($string, 1, null, $encoding);
     907    }
     908
    874909    private static function getSubpart($pos, $part, $haystack, $encoding)
    875910    {
     
    945980        return $encoding;
    946981    }
     982
     983    private static function assertEncoding(string $encoding, string $errorFormat): void
     984    {
     985        try {
     986            $validEncoding = @self::mb_check_encoding('', $encoding);
     987        } catch (\ValueError $e) {
     988            throw new \ValueError(\sprintf($errorFormat, $encoding));
     989        }
     990
     991        // BC for PHP 7.3 and lower
     992        if (!$validEncoding) {
     993            throw new \ValueError(\sprintf($errorFormat, $encoding));
     994        }
     995    }
    947996}
  • web-archive/trunk/vendor/symfony/polyfill-mbstring/bootstrap.php

    r3095601 r3125369  
    137137}
    138138
     139if (!function_exists('mb_ucfirst')) {
     140    function mb_ucfirst(string $string, ?string $encoding = null): string { return p\Mbstring::mb_ucfirst($string, $encoding); }
     141}
     142
     143if (!function_exists('mb_lcfirst')) {
     144    function mb_lcfirst(string $string, ?string $encoding = null): string { return p\Mbstring::mb_lcfirst($string, $encoding); }
     145}
     146
    139147if (extension_loaded('mbstring')) {
    140148    return;
  • web-archive/trunk/vendor/symfony/polyfill-mbstring/bootstrap80.php

    r3095601 r3125369  
    133133}
    134134
     135if (!function_exists('mb_ucfirst')) {
     136    function mb_ucfirst($string, ?string $encoding = null): string { return p\Mbstring::mb_ucfirst($string, $encoding); }
     137}
     138
     139if (!function_exists('mb_lcfirst')) {
     140    function mb_lcfirst($string, ?string $encoding = null): string { return p\Mbstring::mb_lcfirst($string, $encoding); }
     141}
     142
    135143if (extension_loaded('mbstring')) {
    136144    return;
  • web-archive/trunk/vendor/vlucas/phpdotenv/composer.json

    r3095601 r3125369  
    1919        "php": "^7.2.5 || ^8.0",
    2020        "ext-pcre": "*",
    21         "graham-campbell/result-type": "^1.1.2",
    22         "phpoption/phpoption": "^1.9.2",
     21        "graham-campbell/result-type": "^1.1.3",
     22        "phpoption/phpoption": "^1.9.3",
    2323        "symfony/polyfill-ctype": "^1.24",
    2424        "symfony/polyfill-mbstring": "^1.24",
     
    5252        "bamarni-bin": {
    5353            "bin-links": true,
    54             "forward-command": true
     54            "forward-command": false
    5555        },
    5656        "branch-alias": {
  • web-archive/trunk/vendor/vlucas/phpdotenv/src/Dotenv.php

    r3095601 r3125369  
    8181     * @return \Dotenv\Dotenv
    8282     */
    83     public static function create(RepositoryInterface $repository, $paths, $names = null, bool $shortCircuit = true, string $fileEncoding = null)
     83    public static function create(RepositoryInterface $repository, $paths, $names = null, bool $shortCircuit = true, ?string $fileEncoding = null)
    8484    {
    8585        $builder = $names === null ? StoreBuilder::createWithDefaultName() : StoreBuilder::createWithNoNames();
     
    110110     * @return \Dotenv\Dotenv
    111111     */
    112     public static function createMutable($paths, $names = null, bool $shortCircuit = true, string $fileEncoding = null)
     112    public static function createMutable($paths, $names = null, bool $shortCircuit = true, ?string $fileEncoding = null)
    113113    {
    114114        $repository = RepositoryBuilder::createWithDefaultAdapters()->make();
     
    127127     * @return \Dotenv\Dotenv
    128128     */
    129     public static function createUnsafeMutable($paths, $names = null, bool $shortCircuit = true, string $fileEncoding = null)
     129    public static function createUnsafeMutable($paths, $names = null, bool $shortCircuit = true, ?string $fileEncoding = null)
    130130    {
    131131        $repository = RepositoryBuilder::createWithDefaultAdapters()
     
    146146     * @return \Dotenv\Dotenv
    147147     */
    148     public static function createImmutable($paths, $names = null, bool $shortCircuit = true, string $fileEncoding = null)
     148    public static function createImmutable($paths, $names = null, bool $shortCircuit = true, ?string $fileEncoding = null)
    149149    {
    150150        $repository = RepositoryBuilder::createWithDefaultAdapters()->immutable()->make();
     
    163163     * @return \Dotenv\Dotenv
    164164     */
    165     public static function createUnsafeImmutable($paths, $names = null, bool $shortCircuit = true, string $fileEncoding = null)
     165    public static function createUnsafeImmutable($paths, $names = null, bool $shortCircuit = true, ?string $fileEncoding = null)
    166166    {
    167167        $repository = RepositoryBuilder::createWithDefaultAdapters()
     
    183183     * @return \Dotenv\Dotenv
    184184     */
    185     public static function createArrayBacked($paths, $names = null, bool $shortCircuit = true, string $fileEncoding = null)
     185    public static function createArrayBacked($paths, $names = null, bool $shortCircuit = true, ?string $fileEncoding = null)
    186186    {
    187187        $repository = RepositoryBuilder::createWithNoAdapters()->addAdapter(ArrayAdapter::class)->make();
  • web-archive/trunk/vendor/vlucas/phpdotenv/src/Parser/Entry.php

    r3095601 r3125369  
    3131     * @return void
    3232     */
    33     public function __construct(string $name, Value $value = null)
     33    public function __construct(string $name, ?Value $value = null)
    3434    {
    3535        $this->name = $name;
  • web-archive/trunk/vendor/vlucas/phpdotenv/src/Repository/RepositoryBuilder.php

    r3095601 r3125369  
    6666     * @return void
    6767     */
    68     private function __construct(array $readers = [], array $writers = [], bool $immutable = false, array $allowList = null)
     68    private function __construct(array $readers = [], array $writers = [], bool $immutable = false, ?array $allowList = null)
    6969    {
    7070        $this->readers = $readers;
     
    245245     * @return \Dotenv\Repository\RepositoryBuilder
    246246     */
    247     public function allowList(array $allowList = null)
     247    public function allowList(?array $allowList = null)
    248248    {
    249249        return new self($this->readers, $this->writers, $this->immutable, $allowList);
  • web-archive/trunk/vendor/vlucas/phpdotenv/src/Store/File/Reader.php

    r3095601 r3125369  
    4141     * @return array<string,string>
    4242     */
    43     public static function read(array $filePaths, bool $shortCircuit = true, string $fileEncoding = null)
     43    public static function read(array $filePaths, bool $shortCircuit = true, ?string $fileEncoding = null)
    4444    {
    4545        $output = [];
     
    6868     * @return \PhpOption\Option<string>
    6969     */
    70     private static function readFromFile(string $path, string $encoding = null)
     70    private static function readFromFile(string $path, ?string $encoding = null)
    7171    {
    7272        /** @var Option<string> */
  • web-archive/trunk/vendor/vlucas/phpdotenv/src/Store/FileStore.php

    r3095601 r3125369  
    4040     * @return void
    4141     */
    42     public function __construct(array $filePaths, bool $shortCircuit, string $fileEncoding = null)
     42    public function __construct(array $filePaths, bool $shortCircuit, ?string $fileEncoding = null)
    4343    {
    4444        $this->filePaths = $filePaths;
  • web-archive/trunk/vendor/vlucas/phpdotenv/src/Store/StoreBuilder.php

    r3095601 r3125369  
    5252     * @return void
    5353     */
    54     private function __construct(array $paths = [], array $names = [], bool $shortCircuit = false, string $fileEncoding = null)
     54    private function __construct(array $paths = [], array $names = [], bool $shortCircuit = false, ?string $fileEncoding = null)
    5555    {
    5656        $this->paths = $paths;
     
    121121     * @return \Dotenv\Store\StoreBuilder
    122122     */
    123     public function fileEncoding(string $fileEncoding = null)
     123    public function fileEncoding(?string $fileEncoding = null)
    124124    {
    125125        return new self($this->paths, $this->names, $this->shortCircuit, $fileEncoding);
  • web-archive/trunk/vendor/vlucas/phpdotenv/src/Util/Regex.php

    r3095601 r3125369  
    6565     * @return \GrahamCampbell\ResultType\Result<string,string>
    6666     */
    67     public static function replaceCallback(string $pattern, callable $callback, string $subject, int $limit = null)
     67    public static function replaceCallback(string $pattern, callable $callback, string $subject, ?int $limit = null)
    6868    {
    6969        return self::pregAndWrap(static function (string $subject) use ($pattern, $callback, $limit) {
  • web-archive/trunk/vendor/vlucas/phpdotenv/src/Util/Str.php

    r3095601 r3125369  
    3434     * @return \GrahamCampbell\ResultType\Result<string,string>
    3535     */
    36     public static function utf8(string $input, string $encoding = null)
     36    public static function utf8(string $input, ?string $encoding = null)
    3737    {
    3838        if ($encoding !== null && !\in_array($encoding, \mb_list_encodings(), true)) {
     
    8080     * @return string
    8181     */
    82     public static function substr(string $input, int $start, int $length = null)
     82    public static function substr(string $input, int $start, ?int $length = null)
    8383    {
    8484        return \mb_substr($input, $start, $length, 'UTF-8');
  • web-archive/trunk/vendor/voku/simple_html_dom/CHANGELOG

    r3095601 r3125369  
    1414   "Add text/template type" thanks @all9lives [Jeremy Brennan]
    1515   "fix: Cannot assign null to property DOMNode::* of type string" thanks @frugan-dev [Frugan]
     1610: "fix: HtmlDomHelper::mergeHtmlAttributes() with zero values"
    1617
    1718[PHP Simple HTML Dom v4.7.x]
  • web-archive/trunk/vendor/voku/simple_html_dom/src/voku/helper/HtmlDomHelper.php

    r3095601 r3125369  
    6565
    6666        foreach ($attributes as $attributeName => $attributeValue) {
    67             $domElement->setAttribute($attributeName, $attributeValue);
     67            $domElement->setAttribute($attributeName, $attributeValue, true);
    6868        }
    6969
Note: See TracChangeset for help on using the changeset viewer.