Plugin Directory

Changeset 3452915


Ignore:
Timestamp:
02/03/2026 01:51:52 PM (7 weeks ago)
Author:
elextensions
Message:

updated to v3.1.8

Location:
wschat-live-chat
Files:
22 edited
1 copied

Legend:

Unmodified
Added
Removed
  • wschat-live-chat/tags/3.1.8/readme.txt

    r3395773 r3452915  
    44Tags: live chat, chat, wordpress chat, chat plugin, live support
    55Requires at least: 4.3
    6 Tested up to: 6.8
    7 Stable tag: 3.1.7
     6Tested up to: 6.9
     7Stable tag: 3.1.8
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    9393== Changelog ==
    9494
     95= 3.1.8 =
     96* Made compatible with WordPress 6.9
     97
    9598= 3.1.7 =
     99* Fixed vulnerability issues
     100
     101= 3.1.6 =
    96102* Code cleanup and Improvement.
    97103
     
    153159== Upgrade notice ==
    154160
     161= 3.1.8 =
     162* Made compatible with WordPress 6.9
     163
    155164= 3.1.7 =
     165* Fixed vulnerability issues
     166
     167= 3.1.6 =
    156168* Code cleanup and Improvement.
    157169
  • wschat-live-chat/tags/3.1.8/vendor/autoload.php

    r3395773 r3452915  
    1515        }
    1616    }
    17     trigger_error(
    18         $err,
    19         E_USER_ERROR
    20     );
     17    throw new RuntimeException($err);
    2118}
    2219
    2320require_once __DIR__ . '/composer/autoload_real.php';
    2421
    25 return ComposerAutoloaderInitce184c7063177f4e01f76ab5b7765fa0::getLoader();
     22return ComposerAutoloaderInit6a932a337571d9c9081ba7062921a12a::getLoader();
  • wschat-live-chat/tags/3.1.8/vendor/bin/carbon

    r3094643 r3452915  
    113113        || (function_exists('stream_wrapper_register') && stream_wrapper_register('phpvfscomposer', 'Composer\BinProxyWrapper'))
    114114    ) {
    115         include("phpvfscomposer://" . __DIR__ . '/..'.'/nesbot/carbon/bin/carbon');
    116         exit(0);
     115        return include("phpvfscomposer://" . __DIR__ . '/..'.'/nesbot/carbon/bin/carbon');
    117116    }
    118117}
    119118
    120 include __DIR__ . '/..'.'/nesbot/carbon/bin/carbon';
     119return include __DIR__ . '/..'.'/nesbot/carbon/bin/carbon';
  • wschat-live-chat/tags/3.1.8/vendor/composer/ClassLoader.php

    r3094643 r3452915  
    4343class ClassLoader
    4444{
    45     /** @var ?string */
     45    /** @var \Closure(string):void */
     46    private static $includeFile;
     47
     48    /** @var string|null */
    4649    private $vendorDir;
    4750
    4851    // PSR-4
    4952    /**
    50      * @var array[]
    51      * @psalm-var array<string, array<string, int>>
     53     * @var array<string, array<string, int>>
    5254     */
    5355    private $prefixLengthsPsr4 = array();
    5456    /**
    55      * @var array[]
    56      * @psalm-var array<string, array<int, string>>
     57     * @var array<string, list<string>>
    5758     */
    5859    private $prefixDirsPsr4 = array();
    5960    /**
    60      * @var array[]
    61      * @psalm-var array<string, string>
     61     * @var list<string>
    6262     */
    6363    private $fallbackDirsPsr4 = array();
     
    6565    // PSR-0
    6666    /**
    67      * @var array[]
    68      * @psalm-var array<string, array<string, string[]>>
     67     * List of PSR-0 prefixes
     68     *
     69     * Structured as array('F (first letter)' => array('Foo\Bar (full prefix)' => array('path', 'path2')))
     70     *
     71     * @var array<string, array<string, list<string>>>
    6972     */
    7073    private $prefixesPsr0 = array();
    7174    /**
    72      * @var array[]
    73      * @psalm-var array<string, string>
     75     * @var list<string>
    7476     */
    7577    private $fallbackDirsPsr0 = array();
     
    7981
    8082    /**
    81      * @var string[]
    82      * @psalm-var array<string, string>
     83     * @var array<string, string>
    8384     */
    8485    private $classMap = array();
     
    8889
    8990    /**
    90      * @var bool[]
    91      * @psalm-var array<string, bool>
     91     * @var array<string, bool>
    9292     */
    9393    private $missingClasses = array();
    9494
    95     /** @var ?string */
     95    /** @var string|null */
    9696    private $apcuPrefix;
    9797
    9898    /**
    99      * @var self[]
     99     * @var array<string, self>
    100100     */
    101101    private static $registeredLoaders = array();
    102102
    103103    /**
    104      * @param ?string $vendorDir
     104     * @param string|null $vendorDir
    105105     */
    106106    public function __construct($vendorDir = null)
    107107    {
    108108        $this->vendorDir = $vendorDir;
    109     }
    110 
    111     /**
    112      * @return string[]
     109        self::initializeIncludeClosure();
     110    }
     111
     112    /**
     113     * @return array<string, list<string>>
    113114     */
    114115    public function getPrefixes()
     
    122123
    123124    /**
    124      * @return array[]
    125      * @psalm-return array<string, array<int, string>>
     125     * @return array<string, list<string>>
    126126     */
    127127    public function getPrefixesPsr4()
     
    131131
    132132    /**
    133      * @return array[]
    134      * @psalm-return array<string, string>
     133     * @return list<string>
    135134     */
    136135    public function getFallbackDirs()
     
    140139
    141140    /**
    142      * @return array[]
    143      * @psalm-return array<string, string>
     141     * @return list<string>
    144142     */
    145143    public function getFallbackDirsPsr4()
     
    149147
    150148    /**
    151      * @return string[] Array of classname => path
    152      * @psalm-return array<string, string>
     149     * @return array<string, string> Array of classname => path
    153150     */
    154151    public function getClassMap()
     
    158155
    159156    /**
    160      * @param string[] $classMap Class to filename map
    161      * @psalm-param array<string, string> $classMap
     157     * @param array<string, string> $classMap Class to filename map
    162158     *
    163159     * @return void
     
    176172     * appending or prepending to the ones previously set for this prefix.
    177173     *
    178      * @param string          $prefix  The prefix
    179      * @param string[]|string $paths   The PSR-0 root directories
    180      * @param bool            $prepend Whether to prepend the directories
     174     * @param string              $prefix  The prefix
     175     * @param list<string>|string $paths   The PSR-0 root directories
     176     * @param bool                $prepend Whether to prepend the directories
    181177     *
    182178     * @return void
     
    184180    public function add($prefix, $paths, $prepend = false)
    185181    {
     182        $paths = (array) $paths;
    186183        if (!$prefix) {
    187184            if ($prepend) {
    188185                $this->fallbackDirsPsr0 = array_merge(
    189                     (array) $paths,
     186                    $paths,
    190187                    $this->fallbackDirsPsr0
    191188                );
     
    193190                $this->fallbackDirsPsr0 = array_merge(
    194191                    $this->fallbackDirsPsr0,
    195                     (array) $paths
     192                    $paths
    196193                );
    197194            }
     
    202199        $first = $prefix[0];
    203200        if (!isset($this->prefixesPsr0[$first][$prefix])) {
    204             $this->prefixesPsr0[$first][$prefix] = (array) $paths;
     201            $this->prefixesPsr0[$first][$prefix] = $paths;
    205202
    206203            return;
     
    208205        if ($prepend) {
    209206            $this->prefixesPsr0[$first][$prefix] = array_merge(
    210                 (array) $paths,
     207                $paths,
    211208                $this->prefixesPsr0[$first][$prefix]
    212209            );
     
    214211            $this->prefixesPsr0[$first][$prefix] = array_merge(
    215212                $this->prefixesPsr0[$first][$prefix],
    216                 (array) $paths
     213                $paths
    217214            );
    218215        }
     
    223220     * appending or prepending to the ones previously set for this namespace.
    224221     *
    225      * @param string          $prefix  The prefix/namespace, with trailing '\\'
    226      * @param string[]|string $paths   The PSR-4 base directories
    227      * @param bool            $prepend Whether to prepend the directories
     222     * @param string              $prefix  The prefix/namespace, with trailing '\\'
     223     * @param list<string>|string $paths   The PSR-4 base directories
     224     * @param bool                $prepend Whether to prepend the directories
    228225     *
    229226     * @throws \InvalidArgumentException
     
    233230    public function addPsr4($prefix, $paths, $prepend = false)
    234231    {
     232        $paths = (array) $paths;
    235233        if (!$prefix) {
    236234            // Register directories for the root namespace.
    237235            if ($prepend) {
    238236                $this->fallbackDirsPsr4 = array_merge(
    239                     (array) $paths,
     237                    $paths,
    240238                    $this->fallbackDirsPsr4
    241239                );
     
    243241                $this->fallbackDirsPsr4 = array_merge(
    244242                    $this->fallbackDirsPsr4,
    245                     (array) $paths
     243                    $paths
    246244                );
    247245            }
     
    253251            }
    254252            $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
    255             $this->prefixDirsPsr4[$prefix] = (array) $paths;
     253            $this->prefixDirsPsr4[$prefix] = $paths;
    256254        } elseif ($prepend) {
    257255            // Prepend directories for an already registered namespace.
    258256            $this->prefixDirsPsr4[$prefix] = array_merge(
    259                 (array) $paths,
     257                $paths,
    260258                $this->prefixDirsPsr4[$prefix]
    261259            );
     
    264262            $this->prefixDirsPsr4[$prefix] = array_merge(
    265263                $this->prefixDirsPsr4[$prefix],
    266                 (array) $paths
     264                $paths
    267265            );
    268266        }
     
    273271     * replacing any others previously set for this prefix.
    274272     *
    275      * @param string          $prefix The prefix
    276      * @param string[]|string $paths  The PSR-0 base directories
     273     * @param string              $prefix The prefix
     274     * @param list<string>|string $paths  The PSR-0 base directories
    277275     *
    278276     * @return void
     
    291289     * replacing any others previously set for this namespace.
    292290     *
    293      * @param string          $prefix The prefix/namespace, with trailing '\\'
    294      * @param string[]|string $paths  The PSR-4 base directories
     291     * @param string              $prefix The prefix/namespace, with trailing '\\'
     292     * @param list<string>|string $paths  The PSR-4 base directories
    295293     *
    296294     * @throws \InvalidArgumentException
     
    426424    {
    427425        if ($file = $this->findFile($class)) {
    428             includeFile($file);
     426            $includeFile = self::$includeFile;
     427            $includeFile($file);
    429428
    430429            return true;
     
    477476
    478477    /**
    479      * Returns the currently registered loaders indexed by their corresponding vendor directories.
    480      *
    481      * @return self[]
     478     * Returns the currently registered loaders keyed by their corresponding vendor directories.
     479     *
     480     * @return array<string, self>
    482481     */
    483482    public static function getRegisteredLoaders()
     
    556555        return false;
    557556    }
     557
     558    /**
     559     * @return void
     560     */
     561    private static function initializeIncludeClosure()
     562    {
     563        if (self::$includeFile !== null) {
     564            return;
     565        }
     566
     567        /**
     568         * Scope isolated include.
     569         *
     570         * Prevents access to $this/self from included files.
     571         *
     572         * @param  string $file
     573         * @return void
     574         */
     575        self::$includeFile = \Closure::bind(static function($file) {
     576            include $file;
     577        }, null, null);
     578    }
    558579}
    559 
    560 /**
    561  * Scope isolated include.
    562  *
    563  * Prevents access to $this/self from included files.
    564  *
    565  * @param  string $file
    566  * @return void
    567  * @private
    568  */
    569 function includeFile($file)
    570 {
    571     include $file;
    572 }
  • wschat-live-chat/tags/3.1.8/vendor/composer/InstalledVersions.php

    r3094643 r3452915  
    2828{
    2929    /**
     30     * @var string|null if set (by reflection by Composer), this should be set to the path where this class is being copied to
     31     * @internal
     32     */
     33    private static $selfDir = null;
     34
     35    /**
    3036     * @var mixed[]|null
    3137     * @psalm-var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}|array{}|null
    3238     */
    3339    private static $installed;
     40
     41    /**
     42     * @var bool
     43     */
     44    private static $installedIsLocalDir;
    3445
    3546    /**
     
    99110        foreach (self::getInstalled() as $installed) {
    100111            if (isset($installed['versions'][$packageName])) {
    101                 return $includeDevRequirements || empty($installed['versions'][$packageName]['dev_requirement']);
     112                return $includeDevRequirements || !isset($installed['versions'][$packageName]['dev_requirement']) || $installed['versions'][$packageName]['dev_requirement'] === false;
    102113            }
    103114        }
     
    120131    public static function satisfies(VersionParser $parser, $packageName, $constraint)
    121132    {
    122         $constraint = $parser->parseConstraints($constraint);
     133        $constraint = $parser->parseConstraints((string) $constraint);
    123134        $provided = $parser->parseConstraints(self::getVersionRanges($packageName));
    124135
     
    310321        self::$installed = $data;
    311322        self::$installedByVendor = array();
     323
     324        // when using reload, we disable the duplicate protection to ensure that self::$installed data is
     325        // always returned, but we cannot know whether it comes from the installed.php in __DIR__ or not,
     326        // so we have to assume it does not, and that may result in duplicate data being returned when listing
     327        // all installed packages for example
     328        self::$installedIsLocalDir = false;
     329    }
     330
     331    /**
     332     * @return string
     333     */
     334    private static function getSelfDir()
     335    {
     336        if (self::$selfDir === null) {
     337            self::$selfDir = strtr(__DIR__, '\\', '/');
     338        }
     339
     340        return self::$selfDir;
    312341    }
    313342
     
    323352
    324353        $installed = array();
     354        $copiedLocalDir = false;
    325355
    326356        if (self::$canGetVendors) {
     357            $selfDir = self::getSelfDir();
    327358            foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) {
     359                $vendorDir = strtr($vendorDir, '\\', '/');
    328360                if (isset(self::$installedByVendor[$vendorDir])) {
    329361                    $installed[] = self::$installedByVendor[$vendorDir];
    330362                } elseif (is_file($vendorDir.'/composer/installed.php')) {
    331                     $installed[] = self::$installedByVendor[$vendorDir] = require $vendorDir.'/composer/installed.php';
    332                     if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) {
    333                         self::$installed = $installed[count($installed) - 1];
     363                    /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */
     364                    $required = require $vendorDir.'/composer/installed.php';
     365                    self::$installedByVendor[$vendorDir] = $required;
     366                    $installed[] = $required;
     367                    if (self::$installed === null && $vendorDir.'/composer' === $selfDir) {
     368                        self::$installed = $required;
     369                        self::$installedIsLocalDir = true;
    334370                    }
     371                }
     372                if (self::$installedIsLocalDir && $vendorDir.'/composer' === $selfDir) {
     373                    $copiedLocalDir = true;
    335374                }
    336375            }
     
    341380            // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937
    342381            if (substr(__DIR__, -8, 1) !== 'C') {
    343                 self::$installed = require __DIR__ . '/installed.php';
     382                /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */
     383                $required = require __DIR__ . '/installed.php';
     384                self::$installed = $required;
    344385            } else {
    345386                self::$installed = array();
    346387            }
    347388        }
    348         $installed[] = self::$installed;
     389
     390        if (self::$installed !== array() && !$copiedLocalDir) {
     391            $installed[] = self::$installed;
     392        }
    349393
    350394        return $installed;
  • wschat-live-chat/tags/3.1.8/vendor/composer/autoload_psr4.php

    r3313283 r3452915  
    1818    'Psr\\SimpleCache\\' => array($vendorDir . '/psr/simple-cache/src'),
    1919    'Psr\\Log\\' => array($vendorDir . '/psr/log/Psr/Log'),
    20     'Psr\\Http\\Message\\' => array($vendorDir . '/psr/http-message/src', $vendorDir . '/psr/http-factory/src'),
     20    'Psr\\Http\\Message\\' => array($vendorDir . '/psr/http-factory/src', $vendorDir . '/psr/http-message/src'),
    2121    'Psr\\Http\\Client\\' => array($vendorDir . '/psr/http-client/src'),
    2222    'Psr\\Container\\' => array($vendorDir . '/psr/container/src'),
    2323    'Psr\\Cache\\' => array($vendorDir . '/psr/cache/src'),
    24     'Illuminate\\Support\\' => array($vendorDir . '/illuminate/macroable', $vendorDir . '/illuminate/collections', $vendorDir . '/illuminate/support'),
     24    'Illuminate\\Support\\' => array($vendorDir . '/illuminate/support', $vendorDir . '/illuminate/collections', $vendorDir . '/illuminate/macroable'),
    2525    'Illuminate\\Contracts\\' => array($vendorDir . '/illuminate/contracts'),
    2626    'GuzzleHttp\\Psr7\\' => array($vendorDir . '/guzzlehttp/psr7/src'),
  • wschat-live-chat/tags/3.1.8/vendor/composer/autoload_real.php

    r3395773 r3452915  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInitce184c7063177f4e01f76ab5b7765fa0
     5class ComposerAutoloaderInit6a932a337571d9c9081ba7062921a12a
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInitce184c7063177f4e01f76ab5b7765fa0', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInit6a932a337571d9c9081ba7062921a12a', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    29         spl_autoload_unregister(array('ComposerAutoloaderInitce184c7063177f4e01f76ab5b7765fa0', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInit6a932a337571d9c9081ba7062921a12a', 'loadClassLoader'));
    3030
    3131        require __DIR__ . '/autoload_static.php';
    32         call_user_func(\Composer\Autoload\ComposerStaticInitce184c7063177f4e01f76ab5b7765fa0::getInitializer($loader));
     32        call_user_func(\Composer\Autoload\ComposerStaticInit6a932a337571d9c9081ba7062921a12a::getInitializer($loader));
    3333
    3434        $loader->register(true);
    3535
    36         $includeFiles = \Composer\Autoload\ComposerStaticInitce184c7063177f4e01f76ab5b7765fa0::$files;
    37         foreach ($includeFiles as $fileIdentifier => $file) {
    38             composerRequirece184c7063177f4e01f76ab5b7765fa0($fileIdentifier, $file);
     36        $filesToLoad = \Composer\Autoload\ComposerStaticInit6a932a337571d9c9081ba7062921a12a::$files;
     37        $requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
     38            if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
     39                $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
     40
     41                require $file;
     42            }
     43        }, null, null);
     44        foreach ($filesToLoad as $fileIdentifier => $file) {
     45            $requireFile($fileIdentifier, $file);
    3946        }
    4047
     
    4249    }
    4350}
    44 
    45 /**
    46  * @param string $fileIdentifier
    47  * @param string $file
    48  * @return void
    49  */
    50 function composerRequirece184c7063177f4e01f76ab5b7765fa0($fileIdentifier, $file)
    51 {
    52     if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
    53         $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
    54 
    55         require $file;
    56     }
    57 }
  • wschat-live-chat/tags/3.1.8/vendor/composer/autoload_static.php

    r3395773 r3452915  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInitce184c7063177f4e01f76ab5b7765fa0
     7class ComposerStaticInit6a932a337571d9c9081ba7062921a12a
    88{
    99    public static $files = array (
     
    2020
    2121    public static $prefixLengthsPsr4 = array (
    22         'v' => 
     22        'v' =>
    2323        array (
    2424            'voku\\' => 5,
    2525        ),
    26         'W' => 
     26        'W' =>
    2727        array (
    2828            'WSChat\\' => 7,
    2929        ),
    30         'T' => 
     30        'T' =>
    3131        array (
    3232            'Twilio\\' => 7,
    3333        ),
    34         'S' => 
     34        'S' =>
    3535        array (
    3636            'Symfony\\Polyfill\\Php80\\' => 23,
     
    4040            'Sinergi\\BrowserDetector\\' => 24,
    4141        ),
    42         'P' => 
     42        'P' =>
    4343        array (
    4444            'Pusher\\' => 7,
     
    5050            'Psr\\Cache\\' => 10,
    5151        ),
    52         'I' => 
     52        'I' =>
    5353        array (
    5454            'Illuminate\\Support\\' => 19,
    5555            'Illuminate\\Contracts\\' => 21,
    5656        ),
    57         'G' => 
     57        'G' =>
    5858        array (
    5959            'GuzzleHttp\\Psr7\\' => 16,
     
    8484            'GPBMetadata\\ApiCore\\' => 20,
    8585        ),
    86         'F' => 
     86        'F' =>
    8787        array (
    8888            'Firebase\\JWT\\' => 13,
    8989        ),
    90         'D' => 
     90        'D' =>
    9191        array (
    9292            'Doctrine\\Inflector\\' => 19,
    9393        ),
    94         'C' => 
     94        'C' =>
    9595        array (
    9696            'Carbon\\' => 7,
     
    9999
    100100    public static $prefixDirsPsr4 = array (
    101         'voku\\' => 
     101        'voku\\' =>
    102102        array (
    103103            0 => __DIR__ . '/..' . '/voku/portable-ascii/src/voku',
    104104        ),
    105         'WSChat\\' => 
     105        'WSChat\\' =>
    106106        array (
    107107            0 => __DIR__ . '/../..' . '/src',
    108108        ),
    109         'Twilio\\' => 
     109        'Twilio\\' =>
    110110        array (
    111111            0 => __DIR__ . '/..' . '/twilio/sdk/src/Twilio',
    112112        ),
    113         'Symfony\\Polyfill\\Php80\\' => 
     113        'Symfony\\Polyfill\\Php80\\' =>
    114114        array (
    115115            0 => __DIR__ . '/..' . '/symfony/polyfill-php80',
    116116        ),
    117         'Symfony\\Polyfill\\Mbstring\\' => 
     117        'Symfony\\Polyfill\\Mbstring\\' =>
    118118        array (
    119119            0 => __DIR__ . '/..' . '/symfony/polyfill-mbstring',
    120120        ),
    121         'Symfony\\Contracts\\Translation\\' => 
     121        'Symfony\\Contracts\\Translation\\' =>
    122122        array (
    123123            0 => __DIR__ . '/..' . '/symfony/translation-contracts',
    124124        ),
    125         'Symfony\\Component\\Translation\\' => 
     125        'Symfony\\Component\\Translation\\' =>
    126126        array (
    127127            0 => __DIR__ . '/..' . '/symfony/translation',
    128128        ),
    129         'Sinergi\\BrowserDetector\\' => 
     129        'Sinergi\\BrowserDetector\\' =>
    130130        array (
    131131            0 => __DIR__ . '/..' . '/sinergi/browser-detector/src',
    132132        ),
    133         'Pusher\\' => 
     133        'Pusher\\' =>
    134134        array (
    135135            0 => __DIR__ . '/..' . '/pusher/pusher-php-server/src',
    136136        ),
    137         'Psr\\SimpleCache\\' => 
     137        'Psr\\SimpleCache\\' =>
    138138        array (
    139139            0 => __DIR__ . '/..' . '/psr/simple-cache/src',
    140140        ),
    141         'Psr\\Log\\' => 
     141        'Psr\\Log\\' =>
    142142        array (
    143143            0 => __DIR__ . '/..' . '/psr/log/Psr/Log',
    144144        ),
    145         'Psr\\Http\\Message\\' => 
    146         array (
    147             0 => __DIR__ . '/..' . '/psr/http-message/src',
    148             1 => __DIR__ . '/..' . '/psr/http-factory/src',
    149         ),
    150         'Psr\\Http\\Client\\' => 
     145        'Psr\\Http\\Message\\' =>
     146        array (
     147            0 => __DIR__ . '/..' . '/psr/http-factory/src',
     148            1 => __DIR__ . '/..' . '/psr/http-message/src',
     149        ),
     150        'Psr\\Http\\Client\\' =>
    151151        array (
    152152            0 => __DIR__ . '/..' . '/psr/http-client/src',
    153153        ),
    154         'Psr\\Container\\' => 
     154        'Psr\\Container\\' =>
    155155        array (
    156156            0 => __DIR__ . '/..' . '/psr/container/src',
    157157        ),
    158         'Psr\\Cache\\' => 
     158        'Psr\\Cache\\' =>
    159159        array (
    160160            0 => __DIR__ . '/..' . '/psr/cache/src',
    161161        ),
    162         'Illuminate\\Support\\' => 
    163         array (
    164             0 => __DIR__ . '/..' . '/illuminate/macroable',
     162        'Illuminate\\Support\\' =>
     163        array (
     164            0 => __DIR__ . '/..' . '/illuminate/support',
    165165            1 => __DIR__ . '/..' . '/illuminate/collections',
    166             2 => __DIR__ . '/..' . '/illuminate/support',
    167         ),
    168         'Illuminate\\Contracts\\' => 
     166            2 => __DIR__ . '/..' . '/illuminate/macroable',
     167        ),
     168        'Illuminate\\Contracts\\' =>
    169169        array (
    170170            0 => __DIR__ . '/..' . '/illuminate/contracts',
    171171        ),
    172         'GuzzleHttp\\Psr7\\' => 
     172        'GuzzleHttp\\Psr7\\' =>
    173173        array (
    174174            0 => __DIR__ . '/..' . '/guzzlehttp/psr7/src',
    175175        ),
    176         'GuzzleHttp\\Promise\\' => 
     176        'GuzzleHttp\\Promise\\' =>
    177177        array (
    178178            0 => __DIR__ . '/..' . '/guzzlehttp/promises/src',
    179179        ),
    180         'GuzzleHttp\\' => 
     180        'GuzzleHttp\\' =>
    181181        array (
    182182            0 => __DIR__ . '/..' . '/guzzlehttp/guzzle/src',
    183183        ),
    184         'Grpc\\Gcp\\' => 
     184        'Grpc\\Gcp\\' =>
    185185        array (
    186186            0 => __DIR__ . '/..' . '/google/grpc-gcp/src',
    187187        ),
    188         'Grpc\\' => 
     188        'Grpc\\' =>
    189189        array (
    190190            0 => __DIR__ . '/..' . '/grpc/grpc/src/lib',
    191191        ),
    192         'Google\\Type\\' => 
     192        'Google\\Type\\' =>
    193193        array (
    194194            0 => __DIR__ . '/..' . '/google/common-protos/src/Type',
    195195        ),
    196         'Google\\Rpc\\' => 
     196        'Google\\Rpc\\' =>
    197197        array (
    198198            0 => __DIR__ . '/..' . '/google/common-protos/src/Rpc',
    199199        ),
    200         'Google\\Protobuf\\' => 
     200        'Google\\Protobuf\\' =>
    201201        array (
    202202            0 => __DIR__ . '/..' . '/google/protobuf/src/Google/Protobuf',
    203203        ),
    204         'Google\\LongRunning\\' => 
     204        'Google\\LongRunning\\' =>
    205205        array (
    206206            0 => __DIR__ . '/..' . '/google/longrunning/src/LongRunning',
    207207        ),
    208         'Google\\Iam\\' => 
     208        'Google\\Iam\\' =>
    209209        array (
    210210            0 => __DIR__ . '/..' . '/google/common-protos/src/Iam',
    211211        ),
    212         'Google\\Cloud\\Dialogflow\\' => 
     212        'Google\\Cloud\\Dialogflow\\' =>
    213213        array (
    214214            0 => __DIR__ . '/..' . '/google/cloud-dialogflow/src',
    215215        ),
    216         'Google\\Cloud\\' => 
     216        'Google\\Cloud\\' =>
    217217        array (
    218218            0 => __DIR__ . '/..' . '/google/common-protos/src/Cloud',
    219219        ),
    220         'Google\\Auth\\' => 
     220        'Google\\Auth\\' =>
    221221        array (
    222222            0 => __DIR__ . '/..' . '/google/auth/src',
    223223        ),
    224         'Google\\Api\\' => 
     224        'Google\\Api\\' =>
    225225        array (
    226226            0 => __DIR__ . '/..' . '/google/common-protos/src/Api',
    227227        ),
    228         'Google\\ApiCore\\LongRunning\\' => 
     228        'Google\\ApiCore\\LongRunning\\' =>
    229229        array (
    230230            0 => __DIR__ . '/..' . '/google/longrunning/src/ApiCore/LongRunning',
    231231        ),
    232         'Google\\ApiCore\\' => 
     232        'Google\\ApiCore\\' =>
    233233        array (
    234234            0 => __DIR__ . '/..' . '/google/gax/src',
    235235        ),
    236         'GPBMetadata\\Google\\Type\\' => 
     236        'GPBMetadata\\Google\\Type\\' =>
    237237        array (
    238238            0 => __DIR__ . '/..' . '/google/common-protos/metadata/Type',
    239239        ),
    240         'GPBMetadata\\Google\\Rpc\\' => 
     240        'GPBMetadata\\Google\\Rpc\\' =>
    241241        array (
    242242            0 => __DIR__ . '/..' . '/google/common-protos/metadata/Rpc',
    243243        ),
    244         'GPBMetadata\\Google\\Protobuf\\' => 
     244        'GPBMetadata\\Google\\Protobuf\\' =>
    245245        array (
    246246            0 => __DIR__ . '/..' . '/google/protobuf/src/GPBMetadata/Google/Protobuf',
    247247        ),
    248         'GPBMetadata\\Google\\Longrunning\\' => 
     248        'GPBMetadata\\Google\\Longrunning\\' =>
    249249        array (
    250250            0 => __DIR__ . '/..' . '/google/longrunning/metadata/Longrunning',
    251251        ),
    252         'GPBMetadata\\Google\\Logging\\' => 
     252        'GPBMetadata\\Google\\Logging\\' =>
    253253        array (
    254254            0 => __DIR__ . '/..' . '/google/common-protos/metadata/Logging',
    255255        ),
    256         'GPBMetadata\\Google\\Iam\\' => 
     256        'GPBMetadata\\Google\\Iam\\' =>
    257257        array (
    258258            0 => __DIR__ . '/..' . '/google/common-protos/metadata/Iam',
    259259        ),
    260         'GPBMetadata\\Google\\Cloud\\Dialogflow\\' => 
     260        'GPBMetadata\\Google\\Cloud\\Dialogflow\\' =>
    261261        array (
    262262            0 => __DIR__ . '/..' . '/google/cloud-dialogflow/metadata',
    263263        ),
    264         'GPBMetadata\\Google\\Cloud\\' => 
     264        'GPBMetadata\\Google\\Cloud\\' =>
    265265        array (
    266266            0 => __DIR__ . '/..' . '/google/common-protos/metadata/Cloud',
    267267        ),
    268         'GPBMetadata\\Google\\Api\\' => 
     268        'GPBMetadata\\Google\\Api\\' =>
    269269        array (
    270270            0 => __DIR__ . '/..' . '/google/common-protos/metadata/Api',
    271271        ),
    272         'GPBMetadata\\ApiCore\\' => 
     272        'GPBMetadata\\ApiCore\\' =>
    273273        array (
    274274            0 => __DIR__ . '/..' . '/google/gax/metadata/ApiCore',
    275275        ),
    276         'Firebase\\JWT\\' => 
     276        'Firebase\\JWT\\' =>
    277277        array (
    278278            0 => __DIR__ . '/..' . '/firebase/php-jwt/src',
    279279        ),
    280         'Doctrine\\Inflector\\' => 
     280        'Doctrine\\Inflector\\' =>
    281281        array (
    282282            0 => __DIR__ . '/..' . '/doctrine/inflector/lib/Doctrine/Inflector',
    283283        ),
    284         'Carbon\\' => 
     284        'Carbon\\' =>
    285285        array (
    286286            0 => __DIR__ . '/..' . '/nesbot/carbon/src/Carbon',
     
    306306    {
    307307        return \Closure::bind(function () use ($loader) {
    308             $loader->prefixLengthsPsr4 = ComposerStaticInitce184c7063177f4e01f76ab5b7765fa0::$prefixLengthsPsr4;
    309             $loader->prefixDirsPsr4 = ComposerStaticInitce184c7063177f4e01f76ab5b7765fa0::$prefixDirsPsr4;
    310             $loader->classMap = ComposerStaticInitce184c7063177f4e01f76ab5b7765fa0::$classMap;
     308            $loader->prefixLengthsPsr4 = ComposerStaticInit6a932a337571d9c9081ba7062921a12a::$prefixLengthsPsr4;
     309            $loader->prefixDirsPsr4 = ComposerStaticInit6a932a337571d9c9081ba7062921a12a::$prefixDirsPsr4;
     310            $loader->classMap = ComposerStaticInit6a932a337571d9c9081ba7062921a12a::$classMap;
    311311
    312312        }, null, ClassLoader::class);
  • wschat-live-chat/tags/3.1.8/vendor/composer/installed.php

    r3395773 r3452915  
    44        'pretty_version' => 'dev-master',
    55        'version' => 'dev-master',
    6         'reference' => 'e9eebf54c5bebbdabe7a82d276fbe8100bb49eff',
     6        'reference' => 'd34e0bab49877b049c2afb46d20892245946b21a',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    2323            'pretty_version' => 'dev-master',
    2424            'version' => 'dev-master',
    25             'reference' => 'e9eebf54c5bebbdabe7a82d276fbe8100bb49eff',
     25            'reference' => 'd34e0bab49877b049c2afb46d20892245946b21a',
    2626            'type' => 'wordpress-plugin',
    2727            'install_path' => __DIR__ . '/../../',
  • wschat-live-chat/tags/3.1.8/vendor/composer/platform_check.php

    r2974794 r3452915  
    2020        }
    2121    }
    22     trigger_error(
    23         'Composer detected issues in your platform: ' . implode(' ', $issues),
    24         E_USER_ERROR
     22    throw new \RuntimeException(
     23        'Composer detected issues in your platform: ' . implode(' ', $issues)
    2524    );
    2625}
  • wschat-live-chat/tags/3.1.8/wschat.php

    r3395773 r3452915  
    44 * Plugin URI:      https://elextensions.com/plugin/wschat-wordpress-live-chat-plugin/
    55 * Description:     Let's you connect to your customers in real-time.
    6  * Version:         3.1.7
     6 * Version:         3.1.8
    77 * Requires PHP:    7.1.3
    88 * WC requires at least: 3.0.0
  • wschat-live-chat/trunk/readme.txt

    r3395773 r3452915  
    44Tags: live chat, chat, wordpress chat, chat plugin, live support
    55Requires at least: 4.3
    6 Tested up to: 6.8
    7 Stable tag: 3.1.7
     6Tested up to: 6.9
     7Stable tag: 3.1.8
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    9393== Changelog ==
    9494
     95= 3.1.8 =
     96* Made compatible with WordPress 6.9
     97
    9598= 3.1.7 =
     99* Fixed vulnerability issues
     100
     101= 3.1.6 =
    96102* Code cleanup and Improvement.
    97103
     
    153159== Upgrade notice ==
    154160
     161= 3.1.8 =
     162* Made compatible with WordPress 6.9
     163
    155164= 3.1.7 =
     165* Fixed vulnerability issues
     166
     167= 3.1.6 =
    156168* Code cleanup and Improvement.
    157169
  • wschat-live-chat/trunk/vendor/autoload.php

    r3395773 r3452915  
    1515        }
    1616    }
    17     trigger_error(
    18         $err,
    19         E_USER_ERROR
    20     );
     17    throw new RuntimeException($err);
    2118}
    2219
    2320require_once __DIR__ . '/composer/autoload_real.php';
    2421
    25 return ComposerAutoloaderInitce184c7063177f4e01f76ab5b7765fa0::getLoader();
     22return ComposerAutoloaderInit6a932a337571d9c9081ba7062921a12a::getLoader();
  • wschat-live-chat/trunk/vendor/bin/carbon

    r3094643 r3452915  
    113113        || (function_exists('stream_wrapper_register') && stream_wrapper_register('phpvfscomposer', 'Composer\BinProxyWrapper'))
    114114    ) {
    115         include("phpvfscomposer://" . __DIR__ . '/..'.'/nesbot/carbon/bin/carbon');
    116         exit(0);
     115        return include("phpvfscomposer://" . __DIR__ . '/..'.'/nesbot/carbon/bin/carbon');
    117116    }
    118117}
    119118
    120 include __DIR__ . '/..'.'/nesbot/carbon/bin/carbon';
     119return include __DIR__ . '/..'.'/nesbot/carbon/bin/carbon';
  • wschat-live-chat/trunk/vendor/composer/ClassLoader.php

    r3094643 r3452915  
    4343class ClassLoader
    4444{
    45     /** @var ?string */
     45    /** @var \Closure(string):void */
     46    private static $includeFile;
     47
     48    /** @var string|null */
    4649    private $vendorDir;
    4750
    4851    // PSR-4
    4952    /**
    50      * @var array[]
    51      * @psalm-var array<string, array<string, int>>
     53     * @var array<string, array<string, int>>
    5254     */
    5355    private $prefixLengthsPsr4 = array();
    5456    /**
    55      * @var array[]
    56      * @psalm-var array<string, array<int, string>>
     57     * @var array<string, list<string>>
    5758     */
    5859    private $prefixDirsPsr4 = array();
    5960    /**
    60      * @var array[]
    61      * @psalm-var array<string, string>
     61     * @var list<string>
    6262     */
    6363    private $fallbackDirsPsr4 = array();
     
    6565    // PSR-0
    6666    /**
    67      * @var array[]
    68      * @psalm-var array<string, array<string, string[]>>
     67     * List of PSR-0 prefixes
     68     *
     69     * Structured as array('F (first letter)' => array('Foo\Bar (full prefix)' => array('path', 'path2')))
     70     *
     71     * @var array<string, array<string, list<string>>>
    6972     */
    7073    private $prefixesPsr0 = array();
    7174    /**
    72      * @var array[]
    73      * @psalm-var array<string, string>
     75     * @var list<string>
    7476     */
    7577    private $fallbackDirsPsr0 = array();
     
    7981
    8082    /**
    81      * @var string[]
    82      * @psalm-var array<string, string>
     83     * @var array<string, string>
    8384     */
    8485    private $classMap = array();
     
    8889
    8990    /**
    90      * @var bool[]
    91      * @psalm-var array<string, bool>
     91     * @var array<string, bool>
    9292     */
    9393    private $missingClasses = array();
    9494
    95     /** @var ?string */
     95    /** @var string|null */
    9696    private $apcuPrefix;
    9797
    9898    /**
    99      * @var self[]
     99     * @var array<string, self>
    100100     */
    101101    private static $registeredLoaders = array();
    102102
    103103    /**
    104      * @param ?string $vendorDir
     104     * @param string|null $vendorDir
    105105     */
    106106    public function __construct($vendorDir = null)
    107107    {
    108108        $this->vendorDir = $vendorDir;
    109     }
    110 
    111     /**
    112      * @return string[]
     109        self::initializeIncludeClosure();
     110    }
     111
     112    /**
     113     * @return array<string, list<string>>
    113114     */
    114115    public function getPrefixes()
     
    122123
    123124    /**
    124      * @return array[]
    125      * @psalm-return array<string, array<int, string>>
     125     * @return array<string, list<string>>
    126126     */
    127127    public function getPrefixesPsr4()
     
    131131
    132132    /**
    133      * @return array[]
    134      * @psalm-return array<string, string>
     133     * @return list<string>
    135134     */
    136135    public function getFallbackDirs()
     
    140139
    141140    /**
    142      * @return array[]
    143      * @psalm-return array<string, string>
     141     * @return list<string>
    144142     */
    145143    public function getFallbackDirsPsr4()
     
    149147
    150148    /**
    151      * @return string[] Array of classname => path
    152      * @psalm-return array<string, string>
     149     * @return array<string, string> Array of classname => path
    153150     */
    154151    public function getClassMap()
     
    158155
    159156    /**
    160      * @param string[] $classMap Class to filename map
    161      * @psalm-param array<string, string> $classMap
     157     * @param array<string, string> $classMap Class to filename map
    162158     *
    163159     * @return void
     
    176172     * appending or prepending to the ones previously set for this prefix.
    177173     *
    178      * @param string          $prefix  The prefix
    179      * @param string[]|string $paths   The PSR-0 root directories
    180      * @param bool            $prepend Whether to prepend the directories
     174     * @param string              $prefix  The prefix
     175     * @param list<string>|string $paths   The PSR-0 root directories
     176     * @param bool                $prepend Whether to prepend the directories
    181177     *
    182178     * @return void
     
    184180    public function add($prefix, $paths, $prepend = false)
    185181    {
     182        $paths = (array) $paths;
    186183        if (!$prefix) {
    187184            if ($prepend) {
    188185                $this->fallbackDirsPsr0 = array_merge(
    189                     (array) $paths,
     186                    $paths,
    190187                    $this->fallbackDirsPsr0
    191188                );
     
    193190                $this->fallbackDirsPsr0 = array_merge(
    194191                    $this->fallbackDirsPsr0,
    195                     (array) $paths
     192                    $paths
    196193                );
    197194            }
     
    202199        $first = $prefix[0];
    203200        if (!isset($this->prefixesPsr0[$first][$prefix])) {
    204             $this->prefixesPsr0[$first][$prefix] = (array) $paths;
     201            $this->prefixesPsr0[$first][$prefix] = $paths;
    205202
    206203            return;
     
    208205        if ($prepend) {
    209206            $this->prefixesPsr0[$first][$prefix] = array_merge(
    210                 (array) $paths,
     207                $paths,
    211208                $this->prefixesPsr0[$first][$prefix]
    212209            );
     
    214211            $this->prefixesPsr0[$first][$prefix] = array_merge(
    215212                $this->prefixesPsr0[$first][$prefix],
    216                 (array) $paths
     213                $paths
    217214            );
    218215        }
     
    223220     * appending or prepending to the ones previously set for this namespace.
    224221     *
    225      * @param string          $prefix  The prefix/namespace, with trailing '\\'
    226      * @param string[]|string $paths   The PSR-4 base directories
    227      * @param bool            $prepend Whether to prepend the directories
     222     * @param string              $prefix  The prefix/namespace, with trailing '\\'
     223     * @param list<string>|string $paths   The PSR-4 base directories
     224     * @param bool                $prepend Whether to prepend the directories
    228225     *
    229226     * @throws \InvalidArgumentException
     
    233230    public function addPsr4($prefix, $paths, $prepend = false)
    234231    {
     232        $paths = (array) $paths;
    235233        if (!$prefix) {
    236234            // Register directories for the root namespace.
    237235            if ($prepend) {
    238236                $this->fallbackDirsPsr4 = array_merge(
    239                     (array) $paths,
     237                    $paths,
    240238                    $this->fallbackDirsPsr4
    241239                );
     
    243241                $this->fallbackDirsPsr4 = array_merge(
    244242                    $this->fallbackDirsPsr4,
    245                     (array) $paths
     243                    $paths
    246244                );
    247245            }
     
    253251            }
    254252            $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
    255             $this->prefixDirsPsr4[$prefix] = (array) $paths;
     253            $this->prefixDirsPsr4[$prefix] = $paths;
    256254        } elseif ($prepend) {
    257255            // Prepend directories for an already registered namespace.
    258256            $this->prefixDirsPsr4[$prefix] = array_merge(
    259                 (array) $paths,
     257                $paths,
    260258                $this->prefixDirsPsr4[$prefix]
    261259            );
     
    264262            $this->prefixDirsPsr4[$prefix] = array_merge(
    265263                $this->prefixDirsPsr4[$prefix],
    266                 (array) $paths
     264                $paths
    267265            );
    268266        }
     
    273271     * replacing any others previously set for this prefix.
    274272     *
    275      * @param string          $prefix The prefix
    276      * @param string[]|string $paths  The PSR-0 base directories
     273     * @param string              $prefix The prefix
     274     * @param list<string>|string $paths  The PSR-0 base directories
    277275     *
    278276     * @return void
     
    291289     * replacing any others previously set for this namespace.
    292290     *
    293      * @param string          $prefix The prefix/namespace, with trailing '\\'
    294      * @param string[]|string $paths  The PSR-4 base directories
     291     * @param string              $prefix The prefix/namespace, with trailing '\\'
     292     * @param list<string>|string $paths  The PSR-4 base directories
    295293     *
    296294     * @throws \InvalidArgumentException
     
    426424    {
    427425        if ($file = $this->findFile($class)) {
    428             includeFile($file);
     426            $includeFile = self::$includeFile;
     427            $includeFile($file);
    429428
    430429            return true;
     
    477476
    478477    /**
    479      * Returns the currently registered loaders indexed by their corresponding vendor directories.
    480      *
    481      * @return self[]
     478     * Returns the currently registered loaders keyed by their corresponding vendor directories.
     479     *
     480     * @return array<string, self>
    482481     */
    483482    public static function getRegisteredLoaders()
     
    556555        return false;
    557556    }
     557
     558    /**
     559     * @return void
     560     */
     561    private static function initializeIncludeClosure()
     562    {
     563        if (self::$includeFile !== null) {
     564            return;
     565        }
     566
     567        /**
     568         * Scope isolated include.
     569         *
     570         * Prevents access to $this/self from included files.
     571         *
     572         * @param  string $file
     573         * @return void
     574         */
     575        self::$includeFile = \Closure::bind(static function($file) {
     576            include $file;
     577        }, null, null);
     578    }
    558579}
    559 
    560 /**
    561  * Scope isolated include.
    562  *
    563  * Prevents access to $this/self from included files.
    564  *
    565  * @param  string $file
    566  * @return void
    567  * @private
    568  */
    569 function includeFile($file)
    570 {
    571     include $file;
    572 }
  • wschat-live-chat/trunk/vendor/composer/InstalledVersions.php

    r3094643 r3452915  
    2828{
    2929    /**
     30     * @var string|null if set (by reflection by Composer), this should be set to the path where this class is being copied to
     31     * @internal
     32     */
     33    private static $selfDir = null;
     34
     35    /**
    3036     * @var mixed[]|null
    3137     * @psalm-var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}|array{}|null
    3238     */
    3339    private static $installed;
     40
     41    /**
     42     * @var bool
     43     */
     44    private static $installedIsLocalDir;
    3445
    3546    /**
     
    99110        foreach (self::getInstalled() as $installed) {
    100111            if (isset($installed['versions'][$packageName])) {
    101                 return $includeDevRequirements || empty($installed['versions'][$packageName]['dev_requirement']);
     112                return $includeDevRequirements || !isset($installed['versions'][$packageName]['dev_requirement']) || $installed['versions'][$packageName]['dev_requirement'] === false;
    102113            }
    103114        }
     
    120131    public static function satisfies(VersionParser $parser, $packageName, $constraint)
    121132    {
    122         $constraint = $parser->parseConstraints($constraint);
     133        $constraint = $parser->parseConstraints((string) $constraint);
    123134        $provided = $parser->parseConstraints(self::getVersionRanges($packageName));
    124135
     
    310321        self::$installed = $data;
    311322        self::$installedByVendor = array();
     323
     324        // when using reload, we disable the duplicate protection to ensure that self::$installed data is
     325        // always returned, but we cannot know whether it comes from the installed.php in __DIR__ or not,
     326        // so we have to assume it does not, and that may result in duplicate data being returned when listing
     327        // all installed packages for example
     328        self::$installedIsLocalDir = false;
     329    }
     330
     331    /**
     332     * @return string
     333     */
     334    private static function getSelfDir()
     335    {
     336        if (self::$selfDir === null) {
     337            self::$selfDir = strtr(__DIR__, '\\', '/');
     338        }
     339
     340        return self::$selfDir;
    312341    }
    313342
     
    323352
    324353        $installed = array();
     354        $copiedLocalDir = false;
    325355
    326356        if (self::$canGetVendors) {
     357            $selfDir = self::getSelfDir();
    327358            foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) {
     359                $vendorDir = strtr($vendorDir, '\\', '/');
    328360                if (isset(self::$installedByVendor[$vendorDir])) {
    329361                    $installed[] = self::$installedByVendor[$vendorDir];
    330362                } elseif (is_file($vendorDir.'/composer/installed.php')) {
    331                     $installed[] = self::$installedByVendor[$vendorDir] = require $vendorDir.'/composer/installed.php';
    332                     if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) {
    333                         self::$installed = $installed[count($installed) - 1];
     363                    /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */
     364                    $required = require $vendorDir.'/composer/installed.php';
     365                    self::$installedByVendor[$vendorDir] = $required;
     366                    $installed[] = $required;
     367                    if (self::$installed === null && $vendorDir.'/composer' === $selfDir) {
     368                        self::$installed = $required;
     369                        self::$installedIsLocalDir = true;
    334370                    }
     371                }
     372                if (self::$installedIsLocalDir && $vendorDir.'/composer' === $selfDir) {
     373                    $copiedLocalDir = true;
    335374                }
    336375            }
     
    341380            // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937
    342381            if (substr(__DIR__, -8, 1) !== 'C') {
    343                 self::$installed = require __DIR__ . '/installed.php';
     382                /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */
     383                $required = require __DIR__ . '/installed.php';
     384                self::$installed = $required;
    344385            } else {
    345386                self::$installed = array();
    346387            }
    347388        }
    348         $installed[] = self::$installed;
     389
     390        if (self::$installed !== array() && !$copiedLocalDir) {
     391            $installed[] = self::$installed;
     392        }
    349393
    350394        return $installed;
  • wschat-live-chat/trunk/vendor/composer/autoload_psr4.php

    r3313283 r3452915  
    1818    'Psr\\SimpleCache\\' => array($vendorDir . '/psr/simple-cache/src'),
    1919    'Psr\\Log\\' => array($vendorDir . '/psr/log/Psr/Log'),
    20     'Psr\\Http\\Message\\' => array($vendorDir . '/psr/http-message/src', $vendorDir . '/psr/http-factory/src'),
     20    'Psr\\Http\\Message\\' => array($vendorDir . '/psr/http-factory/src', $vendorDir . '/psr/http-message/src'),
    2121    'Psr\\Http\\Client\\' => array($vendorDir . '/psr/http-client/src'),
    2222    'Psr\\Container\\' => array($vendorDir . '/psr/container/src'),
    2323    'Psr\\Cache\\' => array($vendorDir . '/psr/cache/src'),
    24     'Illuminate\\Support\\' => array($vendorDir . '/illuminate/macroable', $vendorDir . '/illuminate/collections', $vendorDir . '/illuminate/support'),
     24    'Illuminate\\Support\\' => array($vendorDir . '/illuminate/support', $vendorDir . '/illuminate/collections', $vendorDir . '/illuminate/macroable'),
    2525    'Illuminate\\Contracts\\' => array($vendorDir . '/illuminate/contracts'),
    2626    'GuzzleHttp\\Psr7\\' => array($vendorDir . '/guzzlehttp/psr7/src'),
  • wschat-live-chat/trunk/vendor/composer/autoload_real.php

    r3395773 r3452915  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInitce184c7063177f4e01f76ab5b7765fa0
     5class ComposerAutoloaderInit6a932a337571d9c9081ba7062921a12a
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInitce184c7063177f4e01f76ab5b7765fa0', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInit6a932a337571d9c9081ba7062921a12a', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    29         spl_autoload_unregister(array('ComposerAutoloaderInitce184c7063177f4e01f76ab5b7765fa0', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInit6a932a337571d9c9081ba7062921a12a', 'loadClassLoader'));
    3030
    3131        require __DIR__ . '/autoload_static.php';
    32         call_user_func(\Composer\Autoload\ComposerStaticInitce184c7063177f4e01f76ab5b7765fa0::getInitializer($loader));
     32        call_user_func(\Composer\Autoload\ComposerStaticInit6a932a337571d9c9081ba7062921a12a::getInitializer($loader));
    3333
    3434        $loader->register(true);
    3535
    36         $includeFiles = \Composer\Autoload\ComposerStaticInitce184c7063177f4e01f76ab5b7765fa0::$files;
    37         foreach ($includeFiles as $fileIdentifier => $file) {
    38             composerRequirece184c7063177f4e01f76ab5b7765fa0($fileIdentifier, $file);
     36        $filesToLoad = \Composer\Autoload\ComposerStaticInit6a932a337571d9c9081ba7062921a12a::$files;
     37        $requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
     38            if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
     39                $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
     40
     41                require $file;
     42            }
     43        }, null, null);
     44        foreach ($filesToLoad as $fileIdentifier => $file) {
     45            $requireFile($fileIdentifier, $file);
    3946        }
    4047
     
    4249    }
    4350}
    44 
    45 /**
    46  * @param string $fileIdentifier
    47  * @param string $file
    48  * @return void
    49  */
    50 function composerRequirece184c7063177f4e01f76ab5b7765fa0($fileIdentifier, $file)
    51 {
    52     if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
    53         $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
    54 
    55         require $file;
    56     }
    57 }
  • wschat-live-chat/trunk/vendor/composer/autoload_static.php

    r3395773 r3452915  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInitce184c7063177f4e01f76ab5b7765fa0
     7class ComposerStaticInit6a932a337571d9c9081ba7062921a12a
    88{
    99    public static $files = array (
     
    2020
    2121    public static $prefixLengthsPsr4 = array (
    22         'v' => 
     22        'v' =>
    2323        array (
    2424            'voku\\' => 5,
    2525        ),
    26         'W' => 
     26        'W' =>
    2727        array (
    2828            'WSChat\\' => 7,
    2929        ),
    30         'T' => 
     30        'T' =>
    3131        array (
    3232            'Twilio\\' => 7,
    3333        ),
    34         'S' => 
     34        'S' =>
    3535        array (
    3636            'Symfony\\Polyfill\\Php80\\' => 23,
     
    4040            'Sinergi\\BrowserDetector\\' => 24,
    4141        ),
    42         'P' => 
     42        'P' =>
    4343        array (
    4444            'Pusher\\' => 7,
     
    5050            'Psr\\Cache\\' => 10,
    5151        ),
    52         'I' => 
     52        'I' =>
    5353        array (
    5454            'Illuminate\\Support\\' => 19,
    5555            'Illuminate\\Contracts\\' => 21,
    5656        ),
    57         'G' => 
     57        'G' =>
    5858        array (
    5959            'GuzzleHttp\\Psr7\\' => 16,
     
    8484            'GPBMetadata\\ApiCore\\' => 20,
    8585        ),
    86         'F' => 
     86        'F' =>
    8787        array (
    8888            'Firebase\\JWT\\' => 13,
    8989        ),
    90         'D' => 
     90        'D' =>
    9191        array (
    9292            'Doctrine\\Inflector\\' => 19,
    9393        ),
    94         'C' => 
     94        'C' =>
    9595        array (
    9696            'Carbon\\' => 7,
     
    9999
    100100    public static $prefixDirsPsr4 = array (
    101         'voku\\' => 
     101        'voku\\' =>
    102102        array (
    103103            0 => __DIR__ . '/..' . '/voku/portable-ascii/src/voku',
    104104        ),
    105         'WSChat\\' => 
     105        'WSChat\\' =>
    106106        array (
    107107            0 => __DIR__ . '/../..' . '/src',
    108108        ),
    109         'Twilio\\' => 
     109        'Twilio\\' =>
    110110        array (
    111111            0 => __DIR__ . '/..' . '/twilio/sdk/src/Twilio',
    112112        ),
    113         'Symfony\\Polyfill\\Php80\\' => 
     113        'Symfony\\Polyfill\\Php80\\' =>
    114114        array (
    115115            0 => __DIR__ . '/..' . '/symfony/polyfill-php80',
    116116        ),
    117         'Symfony\\Polyfill\\Mbstring\\' => 
     117        'Symfony\\Polyfill\\Mbstring\\' =>
    118118        array (
    119119            0 => __DIR__ . '/..' . '/symfony/polyfill-mbstring',
    120120        ),
    121         'Symfony\\Contracts\\Translation\\' => 
     121        'Symfony\\Contracts\\Translation\\' =>
    122122        array (
    123123            0 => __DIR__ . '/..' . '/symfony/translation-contracts',
    124124        ),
    125         'Symfony\\Component\\Translation\\' => 
     125        'Symfony\\Component\\Translation\\' =>
    126126        array (
    127127            0 => __DIR__ . '/..' . '/symfony/translation',
    128128        ),
    129         'Sinergi\\BrowserDetector\\' => 
     129        'Sinergi\\BrowserDetector\\' =>
    130130        array (
    131131            0 => __DIR__ . '/..' . '/sinergi/browser-detector/src',
    132132        ),
    133         'Pusher\\' => 
     133        'Pusher\\' =>
    134134        array (
    135135            0 => __DIR__ . '/..' . '/pusher/pusher-php-server/src',
    136136        ),
    137         'Psr\\SimpleCache\\' => 
     137        'Psr\\SimpleCache\\' =>
    138138        array (
    139139            0 => __DIR__ . '/..' . '/psr/simple-cache/src',
    140140        ),
    141         'Psr\\Log\\' => 
     141        'Psr\\Log\\' =>
    142142        array (
    143143            0 => __DIR__ . '/..' . '/psr/log/Psr/Log',
    144144        ),
    145         'Psr\\Http\\Message\\' => 
    146         array (
    147             0 => __DIR__ . '/..' . '/psr/http-message/src',
    148             1 => __DIR__ . '/..' . '/psr/http-factory/src',
    149         ),
    150         'Psr\\Http\\Client\\' => 
     145        'Psr\\Http\\Message\\' =>
     146        array (
     147            0 => __DIR__ . '/..' . '/psr/http-factory/src',
     148            1 => __DIR__ . '/..' . '/psr/http-message/src',
     149        ),
     150        'Psr\\Http\\Client\\' =>
    151151        array (
    152152            0 => __DIR__ . '/..' . '/psr/http-client/src',
    153153        ),
    154         'Psr\\Container\\' => 
     154        'Psr\\Container\\' =>
    155155        array (
    156156            0 => __DIR__ . '/..' . '/psr/container/src',
    157157        ),
    158         'Psr\\Cache\\' => 
     158        'Psr\\Cache\\' =>
    159159        array (
    160160            0 => __DIR__ . '/..' . '/psr/cache/src',
    161161        ),
    162         'Illuminate\\Support\\' => 
    163         array (
    164             0 => __DIR__ . '/..' . '/illuminate/macroable',
     162        'Illuminate\\Support\\' =>
     163        array (
     164            0 => __DIR__ . '/..' . '/illuminate/support',
    165165            1 => __DIR__ . '/..' . '/illuminate/collections',
    166             2 => __DIR__ . '/..' . '/illuminate/support',
    167         ),
    168         'Illuminate\\Contracts\\' => 
     166            2 => __DIR__ . '/..' . '/illuminate/macroable',
     167        ),
     168        'Illuminate\\Contracts\\' =>
    169169        array (
    170170            0 => __DIR__ . '/..' . '/illuminate/contracts',
    171171        ),
    172         'GuzzleHttp\\Psr7\\' => 
     172        'GuzzleHttp\\Psr7\\' =>
    173173        array (
    174174            0 => __DIR__ . '/..' . '/guzzlehttp/psr7/src',
    175175        ),
    176         'GuzzleHttp\\Promise\\' => 
     176        'GuzzleHttp\\Promise\\' =>
    177177        array (
    178178            0 => __DIR__ . '/..' . '/guzzlehttp/promises/src',
    179179        ),
    180         'GuzzleHttp\\' => 
     180        'GuzzleHttp\\' =>
    181181        array (
    182182            0 => __DIR__ . '/..' . '/guzzlehttp/guzzle/src',
    183183        ),
    184         'Grpc\\Gcp\\' => 
     184        'Grpc\\Gcp\\' =>
    185185        array (
    186186            0 => __DIR__ . '/..' . '/google/grpc-gcp/src',
    187187        ),
    188         'Grpc\\' => 
     188        'Grpc\\' =>
    189189        array (
    190190            0 => __DIR__ . '/..' . '/grpc/grpc/src/lib',
    191191        ),
    192         'Google\\Type\\' => 
     192        'Google\\Type\\' =>
    193193        array (
    194194            0 => __DIR__ . '/..' . '/google/common-protos/src/Type',
    195195        ),
    196         'Google\\Rpc\\' => 
     196        'Google\\Rpc\\' =>
    197197        array (
    198198            0 => __DIR__ . '/..' . '/google/common-protos/src/Rpc',
    199199        ),
    200         'Google\\Protobuf\\' => 
     200        'Google\\Protobuf\\' =>
    201201        array (
    202202            0 => __DIR__ . '/..' . '/google/protobuf/src/Google/Protobuf',
    203203        ),
    204         'Google\\LongRunning\\' => 
     204        'Google\\LongRunning\\' =>
    205205        array (
    206206            0 => __DIR__ . '/..' . '/google/longrunning/src/LongRunning',
    207207        ),
    208         'Google\\Iam\\' => 
     208        'Google\\Iam\\' =>
    209209        array (
    210210            0 => __DIR__ . '/..' . '/google/common-protos/src/Iam',
    211211        ),
    212         'Google\\Cloud\\Dialogflow\\' => 
     212        'Google\\Cloud\\Dialogflow\\' =>
    213213        array (
    214214            0 => __DIR__ . '/..' . '/google/cloud-dialogflow/src',
    215215        ),
    216         'Google\\Cloud\\' => 
     216        'Google\\Cloud\\' =>
    217217        array (
    218218            0 => __DIR__ . '/..' . '/google/common-protos/src/Cloud',
    219219        ),
    220         'Google\\Auth\\' => 
     220        'Google\\Auth\\' =>
    221221        array (
    222222            0 => __DIR__ . '/..' . '/google/auth/src',
    223223        ),
    224         'Google\\Api\\' => 
     224        'Google\\Api\\' =>
    225225        array (
    226226            0 => __DIR__ . '/..' . '/google/common-protos/src/Api',
    227227        ),
    228         'Google\\ApiCore\\LongRunning\\' => 
     228        'Google\\ApiCore\\LongRunning\\' =>
    229229        array (
    230230            0 => __DIR__ . '/..' . '/google/longrunning/src/ApiCore/LongRunning',
    231231        ),
    232         'Google\\ApiCore\\' => 
     232        'Google\\ApiCore\\' =>
    233233        array (
    234234            0 => __DIR__ . '/..' . '/google/gax/src',
    235235        ),
    236         'GPBMetadata\\Google\\Type\\' => 
     236        'GPBMetadata\\Google\\Type\\' =>
    237237        array (
    238238            0 => __DIR__ . '/..' . '/google/common-protos/metadata/Type',
    239239        ),
    240         'GPBMetadata\\Google\\Rpc\\' => 
     240        'GPBMetadata\\Google\\Rpc\\' =>
    241241        array (
    242242            0 => __DIR__ . '/..' . '/google/common-protos/metadata/Rpc',
    243243        ),
    244         'GPBMetadata\\Google\\Protobuf\\' => 
     244        'GPBMetadata\\Google\\Protobuf\\' =>
    245245        array (
    246246            0 => __DIR__ . '/..' . '/google/protobuf/src/GPBMetadata/Google/Protobuf',
    247247        ),
    248         'GPBMetadata\\Google\\Longrunning\\' => 
     248        'GPBMetadata\\Google\\Longrunning\\' =>
    249249        array (
    250250            0 => __DIR__ . '/..' . '/google/longrunning/metadata/Longrunning',
    251251        ),
    252         'GPBMetadata\\Google\\Logging\\' => 
     252        'GPBMetadata\\Google\\Logging\\' =>
    253253        array (
    254254            0 => __DIR__ . '/..' . '/google/common-protos/metadata/Logging',
    255255        ),
    256         'GPBMetadata\\Google\\Iam\\' => 
     256        'GPBMetadata\\Google\\Iam\\' =>
    257257        array (
    258258            0 => __DIR__ . '/..' . '/google/common-protos/metadata/Iam',
    259259        ),
    260         'GPBMetadata\\Google\\Cloud\\Dialogflow\\' => 
     260        'GPBMetadata\\Google\\Cloud\\Dialogflow\\' =>
    261261        array (
    262262            0 => __DIR__ . '/..' . '/google/cloud-dialogflow/metadata',
    263263        ),
    264         'GPBMetadata\\Google\\Cloud\\' => 
     264        'GPBMetadata\\Google\\Cloud\\' =>
    265265        array (
    266266            0 => __DIR__ . '/..' . '/google/common-protos/metadata/Cloud',
    267267        ),
    268         'GPBMetadata\\Google\\Api\\' => 
     268        'GPBMetadata\\Google\\Api\\' =>
    269269        array (
    270270            0 => __DIR__ . '/..' . '/google/common-protos/metadata/Api',
    271271        ),
    272         'GPBMetadata\\ApiCore\\' => 
     272        'GPBMetadata\\ApiCore\\' =>
    273273        array (
    274274            0 => __DIR__ . '/..' . '/google/gax/metadata/ApiCore',
    275275        ),
    276         'Firebase\\JWT\\' => 
     276        'Firebase\\JWT\\' =>
    277277        array (
    278278            0 => __DIR__ . '/..' . '/firebase/php-jwt/src',
    279279        ),
    280         'Doctrine\\Inflector\\' => 
     280        'Doctrine\\Inflector\\' =>
    281281        array (
    282282            0 => __DIR__ . '/..' . '/doctrine/inflector/lib/Doctrine/Inflector',
    283283        ),
    284         'Carbon\\' => 
     284        'Carbon\\' =>
    285285        array (
    286286            0 => __DIR__ . '/..' . '/nesbot/carbon/src/Carbon',
     
    306306    {
    307307        return \Closure::bind(function () use ($loader) {
    308             $loader->prefixLengthsPsr4 = ComposerStaticInitce184c7063177f4e01f76ab5b7765fa0::$prefixLengthsPsr4;
    309             $loader->prefixDirsPsr4 = ComposerStaticInitce184c7063177f4e01f76ab5b7765fa0::$prefixDirsPsr4;
    310             $loader->classMap = ComposerStaticInitce184c7063177f4e01f76ab5b7765fa0::$classMap;
     308            $loader->prefixLengthsPsr4 = ComposerStaticInit6a932a337571d9c9081ba7062921a12a::$prefixLengthsPsr4;
     309            $loader->prefixDirsPsr4 = ComposerStaticInit6a932a337571d9c9081ba7062921a12a::$prefixDirsPsr4;
     310            $loader->classMap = ComposerStaticInit6a932a337571d9c9081ba7062921a12a::$classMap;
    311311
    312312        }, null, ClassLoader::class);
  • wschat-live-chat/trunk/vendor/composer/installed.php

    r3395773 r3452915  
    44        'pretty_version' => 'dev-master',
    55        'version' => 'dev-master',
    6         'reference' => 'e9eebf54c5bebbdabe7a82d276fbe8100bb49eff',
     6        'reference' => 'd34e0bab49877b049c2afb46d20892245946b21a',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    2323            'pretty_version' => 'dev-master',
    2424            'version' => 'dev-master',
    25             'reference' => 'e9eebf54c5bebbdabe7a82d276fbe8100bb49eff',
     25            'reference' => 'd34e0bab49877b049c2afb46d20892245946b21a',
    2626            'type' => 'wordpress-plugin',
    2727            'install_path' => __DIR__ . '/../../',
  • wschat-live-chat/trunk/vendor/composer/platform_check.php

    r2974794 r3452915  
    2020        }
    2121    }
    22     trigger_error(
    23         'Composer detected issues in your platform: ' . implode(' ', $issues),
    24         E_USER_ERROR
     22    throw new \RuntimeException(
     23        'Composer detected issues in your platform: ' . implode(' ', $issues)
    2524    );
    2625}
  • wschat-live-chat/trunk/wschat.php

    r3395773 r3452915  
    44 * Plugin URI:      https://elextensions.com/plugin/wschat-wordpress-live-chat-plugin/
    55 * Description:     Let's you connect to your customers in real-time.
    6  * Version:         3.1.7
     6 * Version:         3.1.8
    77 * Requires PHP:    7.1.3
    88 * WC requires at least: 3.0.0
Note: See TracChangeset for help on using the changeset viewer.