Plugin Directory

Changeset 2990870

Timestamp:
11/07/2023 02:24:46 PM (9 months ago)
Author:
ecgan
Message:

Tagging version 3.1.3

Location:
facebook-for-woocommerce
Files:
24 edited
1 copied

Legend:

Unmodified
Added
Removed
  • facebook-for-woocommerce/tags/3.1.3/changelog.txt

    r2981322 r2990870  
    11*** Facebook for WooCommerce Changelog ***
     2
     3
     4
     5
     6
    27
    38= 3.1.2 - 2023-10-19 =
  • facebook-for-woocommerce/tags/3.1.3/class-wc-facebookcommerce.php

    r2978320 r2990870  
    711711     */
    712712    public function get_documentation_url() {
    713         return 'https://docs.woocommerce.com/document/facebook-for-woocommerce/';
     713        return 'https://.com/document/facebook-for-woocommerce/';
    714714    }
    715715
     
    735735     */
    736736    public function get_sales_page_url() {
    737         return 'https://woocommerce.com/products/facebook/';
     737        return 'https://woo.com/products/facebook/';
    738738    }
    739739
  • facebook-for-woocommerce/tags/3.1.3/facebook-for-woocommerce.php

    r2981322 r2990870  
    1212 * Author: Facebook
    1313 * Author URI: https://www.facebook.com/
    14  * Version: 3.1.2
     14 * Version: 3.1.
    1515 * Requires at least: 5.6
    1616 * Text Domain: facebook-for-woocommerce
    17  * Tested up to: 6.3
     17 * Tested up to: 6.
    1818 * WC requires at least: 5.4
    19  * WC tested up to: 8.2
     19 * WC tested up to: 8.
    2020 *
    2121 * @package FacebookCommerce
     
    4545     * @var string the plugin version. This must be in the main plugin file to be automatically bumped by Woorelease.
    4646     */
    47     const PLUGIN_VERSION = '3.1.2'; // WRCS: DEFINED_VERSION.
     47    const PLUGIN_VERSION = '3.1.'; // WRCS: DEFINED_VERSION.
    4848
    4949    // Minimum PHP version required by this plugin.
  • facebook-for-woocommerce/tags/3.1.3/i18n/languages/facebook-for-woocommerce.pot

    r2981322 r2990870  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Facebook for WooCommerce 3.1.2\n"
     5"Project-Id-Version: Facebook for WooCommerce 3.1.\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/facebook-for-woocommerce\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2023-10-19T17:34:20+00:00\n"
     12"POT-Creation-Date: 2023-1+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.8.1\n"
  • facebook-for-woocommerce/tags/3.1.3/includes/Utilities/Tracker.php

    r2832756 r2990870  
    1616 * Class for adding diagnostic info to WooCommerce Tracker snapshot.
    1717 *
    18  * See https://woocommerce.com/usage-tracking/ for more information.
     18 * See https://woo.com/usage-tracking/ for more information.
    1919 *
    2020 * @since 2.3.4
  • facebook-for-woocommerce/tags/3.1.3/readme.txt

    r2981322 r2990870  
    33Tags: facebook, shop, catalog, advertise, pixel, product
    44Requires at least: 4.4
    5 Tested up to: 6.3
    6 Stable tag: 3.1.2
     5Tested up to: 6.
     6Stable tag: 3.1.
    77Requires PHP: 5.6 or greater
    88MySQL: 5.6 or greater
     
    3939
    4040== Changelog ==
     41
     42
     43
     44
     45
    4146
    4247= 3.1.2 - 2023-10-19 =
  • facebook-for-woocommerce/tags/3.1.3/vendor/autoload.php

    r2981322 r2990870  
    2323require_once __DIR__ . '/composer/autoload_real.php';
    2424
    25 return ComposerAutoloaderInit6825c407cbbd3941a1a327e91226c4ef::getLoader();
     25return ComposerAutoloaderInit::getLoader();
  • facebook-for-woocommerce/tags/3.1.3/vendor/composer/ClassLoader.php

    r2981322 r2990870  
    4646    private static $includeFile;
    4747
    48     /** @var ?string */
     48    /** @var */
    4949    private $vendorDir;
    5050
    5151    // PSR-4
    5252    /**
    53      * @var array[]
    54      * @psalm-var array<string, array<string, int>>
     53     * @var array<string, array<string, int>>
    5554     */
    5655    private $prefixLengthsPsr4 = array();
    5756    /**
    58      * @var array[]
    59      * @psalm-var array<string, array<int, string>>
     57     * @var array<string, list<string>>
    6058     */
    6159    private $prefixDirsPsr4 = array();
    6260    /**
    63      * @var array[]
    64      * @psalm-var array<string, string>
     61     * @var list<string>
    6562     */
    6663    private $fallbackDirsPsr4 = array();
     
    6865    // PSR-0
    6966    /**
    70      * @var array[]
    71      * @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>>>
    7272     */
    7373    private $prefixesPsr0 = array();
    7474    /**
    75      * @var array[]
    76      * @psalm-var array<string, string>
     75     * @var list<string>
    7776     */
    7877    private $fallbackDirsPsr0 = array();
     
    8281
    8382    /**
    84      * @var string[]
    85      * @psalm-var array<string, string>
     83     * @var array<string, string>
    8684     */
    8785    private $classMap = array();
     
    9189
    9290    /**
    93      * @var bool[]
    94      * @psalm-var array<string, bool>
     91     * @var array<string, bool>
    9592     */
    9693    private $missingClasses = array();
    9794
    98     /** @var ?string */
     95    /** @var */
    9996    private $apcuPrefix;
    10097
    10198    /**
    102      * @var self[]
     99     * @var
    103100     */
    104101    private static $registeredLoaders = array();
    105102
    106103    /**
    107      * @param ?string $vendorDir
     104     * @param $vendorDir
    108105     */
    109106    public function __construct($vendorDir = null)
     
    114111
    115112    /**
    116      * @return string[]
     113     * @return
    117114     */
    118115    public function getPrefixes()
     
    126123
    127124    /**
    128      * @return array[]
    129      * @psalm-return array<string, array<int, string>>
     125     * @return array<string, list<string>>
    130126     */
    131127    public function getPrefixesPsr4()
     
    135131
    136132    /**
    137      * @return array[]
    138      * @psalm-return array<string, string>
     133     * @return list<string>
    139134     */
    140135    public function getFallbackDirs()
     
    144139
    145140    /**
    146      * @return array[]
    147      * @psalm-return array<string, string>
     141     * @return list<string>
    148142     */
    149143    public function getFallbackDirsPsr4()
     
    153147
    154148    /**
    155      * @return string[] Array of classname => path
    156      * @psalm-return array<string, string>
     149     * @return array<string, string> Array of classname => path
    157150     */
    158151    public function getClassMap()
     
    162155
    163156    /**
    164      * @param string[] $classMap Class to filename map
    165      * @psalm-param array<string, string> $classMap
     157     * @param array<string, string> $classMap Class to filename map
    166158     *
    167159     * @return void
     
    180172     * appending or prepending to the ones previously set for this prefix.
    181173     *
    182      * @param string          $prefix  The prefix
    183      * @param string[]|string $paths   The PSR-0 root directories
    184      * @param bool            $prepend Whether to prepend the directories
     174     * @param string          $prefix  The prefix
     175     * @param |string $paths   The PSR-0 root directories
     176     * @param bool            $prepend Whether to prepend the directories
    185177     *
    186178     * @return void
     
    188180    public function add($prefix, $paths, $prepend = false)
    189181    {
     182
    190183        if (!$prefix) {
    191184            if ($prepend) {
    192185                $this->fallbackDirsPsr0 = array_merge(
    193                     (array) $paths,
     186                    $paths,
    194187                    $this->fallbackDirsPsr0
    195188                );
     
    197190                $this->fallbackDirsPsr0 = array_merge(
    198191                    $this->fallbackDirsPsr0,
    199                     (array) $paths
     192                    $paths
    200193                );
    201194            }
     
    206199        $first = $prefix[0];
    207200        if (!isset($this->prefixesPsr0[$first][$prefix])) {
    208             $this->prefixesPsr0[$first][$prefix] = (array) $paths;
     201            $this->prefixesPsr0[$first][$prefix] = $paths;
    209202
    210203            return;
     
    212205        if ($prepend) {
    213206            $this->prefixesPsr0[$first][$prefix] = array_merge(
    214                 (array) $paths,
     207                $paths,
    215208                $this->prefixesPsr0[$first][$prefix]
    216209            );
     
    218211            $this->prefixesPsr0[$first][$prefix] = array_merge(
    219212                $this->prefixesPsr0[$first][$prefix],
    220                 (array) $paths
     213                $paths
    221214            );
    222215        }
     
    227220     * appending or prepending to the ones previously set for this namespace.
    228221     *
    229      * @param string          $prefix  The prefix/namespace, with trailing '\\'
    230      * @param string[]|string $paths   The PSR-4 base directories
    231      * @param bool            $prepend Whether to prepend the directories
     222     * @param string          $prefix  The prefix/namespace, with trailing '\\'
     223     * @param |string $paths   The PSR-4 base directories
     224     * @param bool            $prepend Whether to prepend the directories
    232225     *
    233226     * @throws \InvalidArgumentException
     
    237230    public function addPsr4($prefix, $paths, $prepend = false)
    238231    {
     232
    239233        if (!$prefix) {
    240234            // Register directories for the root namespace.
    241235            if ($prepend) {
    242236                $this->fallbackDirsPsr4 = array_merge(
    243                     (array) $paths,
     237                    $paths,
    244238                    $this->fallbackDirsPsr4
    245239                );
     
    247241                $this->fallbackDirsPsr4 = array_merge(
    248242                    $this->fallbackDirsPsr4,
    249                     (array) $paths
     243                    $paths
    250244                );
    251245            }
     
    257251            }
    258252            $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
    259             $this->prefixDirsPsr4[$prefix] = (array) $paths;
     253            $this->prefixDirsPsr4[$prefix] = $paths;
    260254        } elseif ($prepend) {
    261255            // Prepend directories for an already registered namespace.
    262256            $this->prefixDirsPsr4[$prefix] = array_merge(
    263                 (array) $paths,
     257                $paths,
    264258                $this->prefixDirsPsr4[$prefix]
    265259            );
     
    268262            $this->prefixDirsPsr4[$prefix] = array_merge(
    269263                $this->prefixDirsPsr4[$prefix],
    270                 (array) $paths
     264                $paths
    271265            );
    272266        }
     
    277271     * replacing any others previously set for this prefix.
    278272     *
    279      * @param string          $prefix The prefix
    280      * @param string[]|string $paths  The PSR-0 base directories
     273     * @param string          $prefix The prefix
     274     * @param |string $paths  The PSR-0 base directories
    281275     *
    282276     * @return void
     
    295289     * replacing any others previously set for this namespace.
    296290     *
    297      * @param string          $prefix The prefix/namespace, with trailing '\\'
    298      * @param string[]|string $paths  The PSR-4 base directories
     291     * @param string          $prefix The prefix/namespace, with trailing '\\'
     292     * @param |string $paths  The PSR-4 base directories
    299293     *
    300294     * @throws \InvalidArgumentException
     
    430424    {
    431425        if ($file = $this->findFile($class)) {
    432             (self::$includeFile)($file);
     426            $includeFile = self::$includeFile;
     427            $includeFile($file);
    433428
    434429            return true;
     
    481476
    482477    /**
    483      * Returns the currently registered loaders indexed by their corresponding vendor directories.
    484      *
    485      * @return self[]
     478     * Returns the currently registered loaders ed by their corresponding vendor directories.
     479     *
     480     * @return
    486481     */
    487482    public static function getRegisteredLoaders()
     
    561556    }
    562557
    563     private static function initializeIncludeClosure(): void
     558    /**
     559     * @return void
     560     */
     561    private static function initializeIncludeClosure()
    564562    {
    565563        if (self::$includeFile !== null) {
     
    575573         * @return void
    576574         */
    577         self::$includeFile = static function($file) {
     575        self::$includeFile = static function($file) {
    578576            include $file;
    579         };
     577        };
    580578    }
    581579}
  • facebook-for-woocommerce/tags/3.1.3/vendor/composer/InstalledVersions.php

    r2981322 r2990870  
    9999        foreach (self::getInstalled() as $installed) {
    100100            if (isset($installed['versions'][$packageName])) {
    101                 return $includeDevRequirements || empty($installed['versions'][$packageName]['dev_requirement']);
     101                return $includeDevRequirements || ;
    102102            }
    103103        }
     
    120120    public static function satisfies(VersionParser $parser, $packageName, $constraint)
    121121    {
    122         $constraint = $parser->parseConstraints($constraint);
     122        $constraint = $parser->parseConstraints($constraint);
    123123        $provided = $parser->parseConstraints(self::getVersionRanges($packageName));
    124124
     
    329329                    $installed[] = self::$installedByVendor[$vendorDir];
    330330                } elseif (is_file($vendorDir.'/composer/installed.php')) {
    331                     $installed[] = self::$installedByVendor[$vendorDir] = require $vendorDir.'/composer/installed.php';
     331                    /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */
     332                    $required = require $vendorDir.'/composer/installed.php';
     333                    $installed[] = self::$installedByVendor[$vendorDir] = $required;
    332334                    if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) {
    333335                        self::$installed = $installed[count($installed) - 1];
     
    341343            // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937
    342344            if (substr(__DIR__, -8, 1) !== 'C') {
    343                 self::$installed = require __DIR__ . '/installed.php';
     345                /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */
     346                $required = require __DIR__ . '/installed.php';
     347                self::$installed = $required;
    344348            } else {
    345349                self::$installed = array();
    346350            }
    347351        }
    348         $installed[] = self::$installed;
     352
     353        if (self::$installed !== array()) {
     354            $installed[] = self::$installed;
     355        }
    349356
    350357        return $installed;
  • facebook-for-woocommerce/tags/3.1.3/vendor/composer/autoload_real.php

    r2981322 r2990870  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit6825c407cbbd3941a1a327e91226c4ef
     5class ComposerAutoloaderInit
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInit6825c407cbbd3941a1a327e91226c4ef', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInit', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    29         spl_autoload_unregister(array('ComposerAutoloaderInit6825c407cbbd3941a1a327e91226c4ef', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInit', 'loadClassLoader'));
    3030
    3131        require __DIR__ . '/autoload_static.php';
    32         call_user_func(\Composer\Autoload\ComposerStaticInit6825c407cbbd3941a1a327e91226c4ef::getInitializer($loader));
     32        call_user_func(\Composer\Autoload\ComposerStaticInit::getInitializer($loader));
    3333
    3434        $loader->register(true);
  • facebook-for-woocommerce/tags/3.1.3/vendor/composer/autoload_static.php

    r2981322 r2990870  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit6825c407cbbd3941a1a327e91226c4ef
     7class ComposerStaticInit
    88{
    99    public static $prefixLengthsPsr4 = array (
     
    185185    {
    186186        return \Closure::bind(function () use ($loader) {
    187             $loader->prefixLengthsPsr4 = ComposerStaticInit6825c407cbbd3941a1a327e91226c4ef::$prefixLengthsPsr4;
    188             $loader->prefixDirsPsr4 = ComposerStaticInit6825c407cbbd3941a1a327e91226c4ef::$prefixDirsPsr4;
    189             $loader->classMap = ComposerStaticInit6825c407cbbd3941a1a327e91226c4ef::$classMap;
     187            $loader->prefixLengthsPsr4 = ComposerStaticInit::$prefixLengthsPsr4;
     188            $loader->prefixDirsPsr4 = ComposerStaticInit::$prefixDirsPsr4;
     189            $loader->classMap = ComposerStaticInit::$classMap;
    190190
    191191        }, null, ClassLoader::class);
  • facebook-for-woocommerce/tags/3.1.3/vendor/composer/installed.php

    r2981322 r2990870  
    22    'root' => array(
    33        'name' => 'facebookincubator/facebook-for-woocommerce',
    4         'pretty_version' => 'dev-release/3.1.2',
    5         'version' => 'dev-release/3.1.2',
    6         'reference' => '93faeab00ff5070cf19c09739c1d431bdee45a9c',
     4        'pretty_version' => 'dev-release/3.1.',
     5        'version' => 'dev-release/3.1.',
     6        'reference' => '',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    1212    'versions' => array(
    1313        'facebookincubator/facebook-for-woocommerce' => array(
    14             'pretty_version' => 'dev-release/3.1.2',
    15             'version' => 'dev-release/3.1.2',
    16             'reference' => '93faeab00ff5070cf19c09739c1d431bdee45a9c',
     14            'pretty_version' => 'dev-release/3.1.',
     15            'version' => 'dev-release/3.1.',
     16            'reference' => '',
    1717            'type' => 'wordpress-plugin',
    1818            'install_path' => __DIR__ . '/../../',
  • facebook-for-woocommerce/trunk/changelog.txt

    r2981322 r2990870  
    11*** Facebook for WooCommerce Changelog ***
     2
     3
     4
     5
     6
    27
    38= 3.1.2 - 2023-10-19 =
  • facebook-for-woocommerce/trunk/class-wc-facebookcommerce.php

    r2978320 r2990870  
    711711     */
    712712    public function get_documentation_url() {
    713         return 'https://docs.woocommerce.com/document/facebook-for-woocommerce/';
     713        return 'https://.com/document/facebook-for-woocommerce/';
    714714    }
    715715
     
    735735     */
    736736    public function get_sales_page_url() {
    737         return 'https://woocommerce.com/products/facebook/';
     737        return 'https://woo.com/products/facebook/';
    738738    }
    739739
  • facebook-for-woocommerce/trunk/facebook-for-woocommerce.php

    r2981322 r2990870  
    1212 * Author: Facebook
    1313 * Author URI: https://www.facebook.com/
    14  * Version: 3.1.2
     14 * Version: 3.1.
    1515 * Requires at least: 5.6
    1616 * Text Domain: facebook-for-woocommerce
    17  * Tested up to: 6.3
     17 * Tested up to: 6.
    1818 * WC requires at least: 5.4
    19  * WC tested up to: 8.2
     19 * WC tested up to: 8.
    2020 *
    2121 * @package FacebookCommerce
     
    4545     * @var string the plugin version. This must be in the main plugin file to be automatically bumped by Woorelease.
    4646     */
    47     const PLUGIN_VERSION = '3.1.2'; // WRCS: DEFINED_VERSION.
     47    const PLUGIN_VERSION = '3.1.'; // WRCS: DEFINED_VERSION.
    4848
    4949    // Minimum PHP version required by this plugin.
  • facebook-for-woocommerce/trunk/i18n/languages/facebook-for-woocommerce.pot

    r2981322 r2990870  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Facebook for WooCommerce 3.1.2\n"
     5"Project-Id-Version: Facebook for WooCommerce 3.1.\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/facebook-for-woocommerce\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2023-10-19T17:34:20+00:00\n"
     12"POT-Creation-Date: 2023-1+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.8.1\n"
  • facebook-for-woocommerce/trunk/includes/Utilities/Tracker.php

    r2832756 r2990870  
    1616 * Class for adding diagnostic info to WooCommerce Tracker snapshot.
    1717 *
    18  * See https://woocommerce.com/usage-tracking/ for more information.
     18 * See https://woo.com/usage-tracking/ for more information.
    1919 *
    2020 * @since 2.3.4
  • facebook-for-woocommerce/trunk/readme.txt

    r2981322 r2990870  
    33Tags: facebook, shop, catalog, advertise, pixel, product
    44Requires at least: 4.4
    5 Tested up to: 6.3
    6 Stable tag: 3.1.2
     5Tested up to: 6.
     6Stable tag: 3.1.
    77Requires PHP: 5.6 or greater
    88MySQL: 5.6 or greater
     
    3939
    4040== Changelog ==
     41
     42
     43
     44
     45
    4146
    4247= 3.1.2 - 2023-10-19 =
  • facebook-for-woocommerce/trunk/vendor/autoload.php

    r2981322 r2990870  
    2323require_once __DIR__ . '/composer/autoload_real.php';
    2424
    25 return ComposerAutoloaderInit6825c407cbbd3941a1a327e91226c4ef::getLoader();
     25return ComposerAutoloaderInit::getLoader();
  • facebook-for-woocommerce/trunk/vendor/composer/ClassLoader.php

    r2981322 r2990870  
    4646    private static $includeFile;
    4747
    48     /** @var ?string */
     48    /** @var */
    4949    private $vendorDir;
    5050
    5151    // PSR-4
    5252    /**
    53      * @var array[]
    54      * @psalm-var array<string, array<string, int>>
     53     * @var array<string, array<string, int>>
    5554     */
    5655    private $prefixLengthsPsr4 = array();
    5756    /**
    58      * @var array[]
    59      * @psalm-var array<string, array<int, string>>
     57     * @var array<string, list<string>>
    6058     */
    6159    private $prefixDirsPsr4 = array();
    6260    /**
    63      * @var array[]
    64      * @psalm-var array<string, string>
     61     * @var list<string>
    6562     */
    6663    private $fallbackDirsPsr4 = array();
     
    6865    // PSR-0
    6966    /**
    70      * @var array[]
    71      * @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>>>
    7272     */
    7373    private $prefixesPsr0 = array();
    7474    /**
    75      * @var array[]
    76      * @psalm-var array<string, string>
     75     * @var list<string>
    7776     */
    7877    private $fallbackDirsPsr0 = array();
     
    8281
    8382    /**
    84      * @var string[]
    85      * @psalm-var array<string, string>
     83     * @var array<string, string>
    8684     */
    8785    private $classMap = array();
     
    9189
    9290    /**
    93      * @var bool[]
    94      * @psalm-var array<string, bool>
     91     * @var array<string, bool>
    9592     */
    9693    private $missingClasses = array();
    9794
    98     /** @var ?string */
     95    /** @var */
    9996    private $apcuPrefix;
    10097
    10198    /**
    102      * @var self[]
     99     * @var
    103100     */
    104101    private static $registeredLoaders = array();
    105102
    106103    /**
    107      * @param ?string $vendorDir
     104     * @param $vendorDir
    108105     */
    109106    public function __construct($vendorDir = null)
     
    114111
    115112    /**
    116      * @return string[]
     113     * @return
    117114     */
    118115    public function getPrefixes()
     
    126123
    127124    /**
    128      * @return array[]
    129      * @psalm-return array<string, array<int, string>>
     125     * @return array<string, list<string>>
    130126     */
    131127    public function getPrefixesPsr4()
     
    135131
    136132    /**
    137      * @return array[]
    138      * @psalm-return array<string, string>
     133     * @return list<string>
    139134     */
    140135    public function getFallbackDirs()
     
    144139
    145140    /**
    146      * @return array[]
    147      * @psalm-return array<string, string>
     141     * @return list<string>
    148142     */
    149143    public function getFallbackDirsPsr4()
     
    153147
    154148    /**
    155      * @return string[] Array of classname => path
    156      * @psalm-return array<string, string>
     149     * @return array<string, string> Array of classname => path
    157150     */
    158151    public function getClassMap()
     
    162155
    163156    /**
    164      * @param string[] $classMap Class to filename map
    165      * @psalm-param array<string, string> $classMap
     157     * @param array<string, string> $classMap Class to filename map
    166158     *
    167159     * @return void
     
    180172     * appending or prepending to the ones previously set for this prefix.
    181173     *
    182      * @param string          $prefix  The prefix
    183      * @param string[]|string $paths   The PSR-0 root directories
    184      * @param bool            $prepend Whether to prepend the directories
     174     * @param string          $prefix  The prefix
     175     * @param |string $paths   The PSR-0 root directories
     176     * @param bool            $prepend Whether to prepend the directories
    185177     *
    186178     * @return void
     
    188180    public function add($prefix, $paths, $prepend = false)
    189181    {
     182
    190183        if (!$prefix) {
    191184            if ($prepend) {
    192185                $this->fallbackDirsPsr0 = array_merge(
    193                     (array) $paths,
     186                    $paths,
    194187                    $this->fallbackDirsPsr0
    195188                );
     
    197190                $this->fallbackDirsPsr0 = array_merge(
    198191                    $this->fallbackDirsPsr0,
    199                     (array) $paths
     192                    $paths
    200193                );
    201194            }
     
    206199        $first = $prefix[0];
    207200        if (!isset($this->prefixesPsr0[$first][$prefix])) {
    208             $this->prefixesPsr0[$first][$prefix] = (array) $paths;
     201            $this->prefixesPsr0[$first][$prefix] = $paths;
    209202
    210203            return;
     
    212205        if ($prepend) {
    213206            $this->prefixesPsr0[$first][$prefix] = array_merge(
    214                 (array) $paths,
     207                $paths,
    215208                $this->prefixesPsr0[$first][$prefix]
    216209            );
     
    218211            $this->prefixesPsr0[$first][$prefix] = array_merge(
    219212                $this->prefixesPsr0[$first][$prefix],
    220                 (array) $paths
     213                $paths
    221214            );
    222215        }
     
    227220     * appending or prepending to the ones previously set for this namespace.
    228221     *
    229      * @param string          $prefix  The prefix/namespace, with trailing '\\'
    230      * @param string[]|string $paths   The PSR-4 base directories
    231      * @param bool            $prepend Whether to prepend the directories
     222     * @param string          $prefix  The prefix/namespace, with trailing '\\'
     223     * @param |string $paths   The PSR-4 base directories
     224     * @param bool            $prepend Whether to prepend the directories
    232225     *
    233226     * @throws \InvalidArgumentException
     
    237230    public function addPsr4($prefix, $paths, $prepend = false)
    238231    {
     232
    239233        if (!$prefix) {
    240234            // Register directories for the root namespace.
    241235            if ($prepend) {
    242236                $this->fallbackDirsPsr4 = array_merge(
    243                     (array) $paths,
     237                    $paths,
    244238                    $this->fallbackDirsPsr4
    245239                );
     
    247241                $this->fallbackDirsPsr4 = array_merge(
    248242                    $this->fallbackDirsPsr4,
    249                     (array) $paths
     243                    $paths
    250244                );
    251245            }
     
    257251            }
    258252            $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
    259             $this->prefixDirsPsr4[$prefix] = (array) $paths;
     253            $this->prefixDirsPsr4[$prefix] = $paths;
    260254        } elseif ($prepend) {
    261255            // Prepend directories for an already registered namespace.
    262256            $this->prefixDirsPsr4[$prefix] = array_merge(
    263                 (array) $paths,
     257                $paths,
    264258                $this->prefixDirsPsr4[$prefix]
    265259            );
     
    268262            $this->prefixDirsPsr4[$prefix] = array_merge(
    269263                $this->prefixDirsPsr4[$prefix],
    270                 (array) $paths
     264                $paths
    271265            );
    272266        }
     
    277271     * replacing any others previously set for this prefix.
    278272     *
    279      * @param string          $prefix The prefix
    280      * @param string[]|string $paths  The PSR-0 base directories
     273     * @param string          $prefix The prefix
     274     * @param |string $paths  The PSR-0 base directories
    281275     *
    282276     * @return void
     
    295289     * replacing any others previously set for this namespace.
    296290     *
    297      * @param string          $prefix The prefix/namespace, with trailing '\\'
    298      * @param string[]|string $paths  The PSR-4 base directories
     291     * @param string          $prefix The prefix/namespace, with trailing '\\'
     292     * @param |string $paths  The PSR-4 base directories
    299293     *
    300294     * @throws \InvalidArgumentException
     
    430424    {
    431425        if ($file = $this->findFile($class)) {
    432             (self::$includeFile)($file);
     426            $includeFile = self::$includeFile;
     427            $includeFile($file);
    433428
    434429            return true;
     
    481476
    482477    /**
    483      * Returns the currently registered loaders indexed by their corresponding vendor directories.
    484      *
    485      * @return self[]
     478     * Returns the currently registered loaders ed by their corresponding vendor directories.
     479     *
     480     * @return
    486481     */
    487482    public static function getRegisteredLoaders()
     
    561556    }
    562557
    563     private static function initializeIncludeClosure(): void
     558    /**
     559     * @return void
     560     */
     561    private static function initializeIncludeClosure()
    564562    {
    565563        if (self::$includeFile !== null) {
     
    575573         * @return void
    576574         */
    577         self::$includeFile = static function($file) {
     575        self::$includeFile = static function($file) {
    578576            include $file;
    579         };
     577        };
    580578    }
    581579}
  • facebook-for-woocommerce/trunk/vendor/composer/InstalledVersions.php

    r2981322 r2990870  
    9999        foreach (self::getInstalled() as $installed) {
    100100            if (isset($installed['versions'][$packageName])) {
    101                 return $includeDevRequirements || empty($installed['versions'][$packageName]['dev_requirement']);
     101                return $includeDevRequirements || ;
    102102            }
    103103        }
     
    120120    public static function satisfies(VersionParser $parser, $packageName, $constraint)
    121121    {
    122         $constraint = $parser->parseConstraints($constraint);
     122        $constraint = $parser->parseConstraints($constraint);
    123123        $provided = $parser->parseConstraints(self::getVersionRanges($packageName));
    124124
     
    329329                    $installed[] = self::$installedByVendor[$vendorDir];
    330330                } elseif (is_file($vendorDir.'/composer/installed.php')) {
    331                     $installed[] = self::$installedByVendor[$vendorDir] = require $vendorDir.'/composer/installed.php';
     331                    /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */
     332                    $required = require $vendorDir.'/composer/installed.php';
     333                    $installed[] = self::$installedByVendor[$vendorDir] = $required;
    332334                    if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) {
    333335                        self::$installed = $installed[count($installed) - 1];
     
    341343            // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937
    342344            if (substr(__DIR__, -8, 1) !== 'C') {
    343                 self::$installed = require __DIR__ . '/installed.php';
     345                /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */
     346                $required = require __DIR__ . '/installed.php';
     347                self::$installed = $required;
    344348            } else {
    345349                self::$installed = array();
    346350            }
    347351        }
    348         $installed[] = self::$installed;
     352
     353        if (self::$installed !== array()) {
     354            $installed[] = self::$installed;
     355        }
    349356
    350357        return $installed;
  • facebook-for-woocommerce/trunk/vendor/composer/autoload_real.php

    r2981322 r2990870  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit6825c407cbbd3941a1a327e91226c4ef
     5class ComposerAutoloaderInit
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInit6825c407cbbd3941a1a327e91226c4ef', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInit', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    29         spl_autoload_unregister(array('ComposerAutoloaderInit6825c407cbbd3941a1a327e91226c4ef', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInit', 'loadClassLoader'));
    3030
    3131        require __DIR__ . '/autoload_static.php';
    32         call_user_func(\Composer\Autoload\ComposerStaticInit6825c407cbbd3941a1a327e91226c4ef::getInitializer($loader));
     32        call_user_func(\Composer\Autoload\ComposerStaticInit::getInitializer($loader));
    3333
    3434        $loader->register(true);
  • facebook-for-woocommerce/trunk/vendor/composer/autoload_static.php

    r2981322 r2990870  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit6825c407cbbd3941a1a327e91226c4ef
     7class ComposerStaticInit
    88{
    99    public static $prefixLengthsPsr4 = array (
     
    185185    {
    186186        return \Closure::bind(function () use ($loader) {
    187             $loader->prefixLengthsPsr4 = ComposerStaticInit6825c407cbbd3941a1a327e91226c4ef::$prefixLengthsPsr4;
    188             $loader->prefixDirsPsr4 = ComposerStaticInit6825c407cbbd3941a1a327e91226c4ef::$prefixDirsPsr4;
    189             $loader->classMap = ComposerStaticInit6825c407cbbd3941a1a327e91226c4ef::$classMap;
     187            $loader->prefixLengthsPsr4 = ComposerStaticInit::$prefixLengthsPsr4;
     188            $loader->prefixDirsPsr4 = ComposerStaticInit::$prefixDirsPsr4;
     189            $loader->classMap = ComposerStaticInit::$classMap;
    190190
    191191        }, null, ClassLoader::class);
  • facebook-for-woocommerce/trunk/vendor/composer/installed.php

    r2981322 r2990870  
    22    'root' => array(
    33        'name' => 'facebookincubator/facebook-for-woocommerce',
    4         'pretty_version' => 'dev-release/3.1.2',
    5         'version' => 'dev-release/3.1.2',
    6         'reference' => '93faeab00ff5070cf19c09739c1d431bdee45a9c',
     4        'pretty_version' => 'dev-release/3.1.',
     5        'version' => 'dev-release/3.1.',
     6        'reference' => '',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    1212    'versions' => array(
    1313        'facebookincubator/facebook-for-woocommerce' => array(
    14             'pretty_version' => 'dev-release/3.1.2',
    15             'version' => 'dev-release/3.1.2',
    16             'reference' => '93faeab00ff5070cf19c09739c1d431bdee45a9c',
     14            'pretty_version' => 'dev-release/3.1.',
     15            'version' => 'dev-release/3.1.',
     16            'reference' => '',
    1717            'type' => 'wordpress-plugin',
    1818            'install_path' => __DIR__ . '/../../',
Note: See TracChangeset for help on using the changeset viewer.