Plugin Directory

Changeset 2761526


Ignore:
Timestamp:
07/26/2022 06:46:57 AM (4 years ago)
Author:
hamworks
Message:

Update to version 2.0.1 from GitHub

Location:
simple-csv-exporter
Files:
8 added
20 deleted
84 edited
1 copied

Legend:

Unmodified
Added
Removed
  • simple-csv-exporter/tags/2.0.1/readme.txt

    r2446249 r2761526  
    33Donate link:       https://www.paypal.me/torounit 
    44Tags:              CSV,export 
    5 Requires at least: 5.5 
    6 Tested up to:      5.6 
    7 Requires PHP:      7.2 
    8 Stable tag:        2.0.0
     5Requires at least: 5.8 
     6Tested up to:      6.0 
     7Requires PHP:      7.4 
     8Stable tag:        2.0.1
    99License:           GPLv2 or later 
    1010License URI:       https://www.gnu.org/licenses/gpl-2.0.html 
     
    1717
    1818When you select a post type, the posts will be exported.
     19
     20Github Repo: [https://github.com/hamworks/simple-csv-exporter](https://github.com/hamworks/simple-csv-exporter)
    1921
    2022
     
    6163== Changelog ==
    6264
     65= 2.0.1 =
     66* Tested on WP 6.0
     67* Drop support WP 5.7 and PHP 7.3
     68
    6369= 2.0.0 =
    6470* Use PHP-DI.
  • simple-csv-exporter/tags/2.0.1/simple-csv-exporter.php

    r2446249 r2761526  
    1010 * Text Domain:     wp-csv-exporter
    1111 * Domain Path:     /languages
    12  * Version: 2.0.0
     12 * Requires PHP:    7.4
     13 * Version: 2.0.1
    1314 */
    1415
  • simple-csv-exporter/tags/2.0.1/vendor/autoload.php

    r2446249 r2761526  
    33// autoload.php @generated by Composer
    44
     5if (PHP_VERSION_ID < 50600) {
     6    echo 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL;
     7    exit(1);
     8}
     9
    510require_once __DIR__ . '/composer/autoload_real.php';
    611
    7 return ComposerAutoloaderInit576229bd9376ebde99435e9d7f3def84::getLoader();
     12return ComposerAutoloaderInit2e765ad8ae0dfed5be0e9b093247e6db::getLoader();
  • simple-csv-exporter/tags/2.0.1/vendor/composer/ClassLoader.php

    r2437085 r2761526  
    4343class ClassLoader
    4444{
     45    /** @var ?string */
     46    private $vendorDir;
     47
    4548    // PSR-4
     49    /**
     50     * @var array[]
     51     * @psalm-var array<string, array<string, int>>
     52     */
    4653    private $prefixLengthsPsr4 = array();
     54    /**
     55     * @var array[]
     56     * @psalm-var array<string, array<int, string>>
     57     */
    4758    private $prefixDirsPsr4 = array();
     59    /**
     60     * @var array[]
     61     * @psalm-var array<string, string>
     62     */
    4863    private $fallbackDirsPsr4 = array();
    4964
    5065    // PSR-0
     66    /**
     67     * @var array[]
     68     * @psalm-var array<string, array<string, string[]>>
     69     */
    5170    private $prefixesPsr0 = array();
     71    /**
     72     * @var array[]
     73     * @psalm-var array<string, string>
     74     */
    5275    private $fallbackDirsPsr0 = array();
    5376
     77    /** @var bool */
    5478    private $useIncludePath = false;
     79
     80    /**
     81     * @var string[]
     82     * @psalm-var array<string, string>
     83     */
    5584    private $classMap = array();
     85
     86    /** @var bool */
    5687    private $classMapAuthoritative = false;
     88
     89    /**
     90     * @var bool[]
     91     * @psalm-var array<string, bool>
     92     */
    5793    private $missingClasses = array();
     94
     95    /** @var ?string */
    5896    private $apcuPrefix;
    5997
     98    /**
     99     * @var self[]
     100     */
     101    private static $registeredLoaders = array();
     102
     103    /**
     104     * @param ?string $vendorDir
     105     */
     106    public function __construct($vendorDir = null)
     107    {
     108        $this->vendorDir = $vendorDir;
     109    }
     110
     111    /**
     112     * @return string[]
     113     */
    60114    public function getPrefixes()
    61115    {
     
    67121    }
    68122
     123    /**
     124     * @return array[]
     125     * @psalm-return array<string, array<int, string>>
     126     */
    69127    public function getPrefixesPsr4()
    70128    {
     
    72130    }
    73131
     132    /**
     133     * @return array[]
     134     * @psalm-return array<string, string>
     135     */
    74136    public function getFallbackDirs()
    75137    {
     
    77139    }
    78140
     141    /**
     142     * @return array[]
     143     * @psalm-return array<string, string>
     144     */
    79145    public function getFallbackDirsPsr4()
    80146    {
     
    82148    }
    83149
     150    /**
     151     * @return string[] Array of classname => path
     152     * @psalm-return array<string, string>
     153     */
    84154    public function getClassMap()
    85155    {
     
    88158
    89159    /**
    90      * @param array $classMap Class to filename map
     160     * @param string[] $classMap Class to filename map
     161     * @psalm-param array<string, string> $classMap
     162     *
     163     * @return void
    91164     */
    92165    public function addClassMap(array $classMap)
     
    103176     * appending or prepending to the ones previously set for this prefix.
    104177     *
    105      * @param string       $prefix  The prefix
    106      * @param array|string $paths   The PSR-0 root directories
    107      * @param bool         $prepend Whether to prepend the directories
     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
     181     *
     182     * @return void
    108183     */
    109184    public function add($prefix, $paths, $prepend = false)
     
    148223     * appending or prepending to the ones previously set for this namespace.
    149224     *
    150      * @param string       $prefix  The prefix/namespace, with trailing '\\'
    151      * @param array|string $paths   The PSR-4 base directories
    152      * @param bool         $prepend Whether to prepend the directories
     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
    153228     *
    154229     * @throws \InvalidArgumentException
     230     *
     231     * @return void
    155232     */
    156233    public function addPsr4($prefix, $paths, $prepend = false)
     
    196273     * replacing any others previously set for this prefix.
    197274     *
    198      * @param string       $prefix The prefix
    199      * @param array|string $paths  The PSR-0 base directories
     275     * @param string          $prefix The prefix
     276     * @param string[]|string $paths  The PSR-0 base directories
     277     *
     278     * @return void
    200279     */
    201280    public function set($prefix, $paths)
     
    212291     * replacing any others previously set for this namespace.
    213292     *
    214      * @param string       $prefix The prefix/namespace, with trailing '\\'
    215      * @param array|string $paths  The PSR-4 base directories
     293     * @param string          $prefix The prefix/namespace, with trailing '\\'
     294     * @param string[]|string $paths  The PSR-4 base directories
    216295     *
    217296     * @throws \InvalidArgumentException
     297     *
     298     * @return void
    218299     */
    219300    public function setPsr4($prefix, $paths)
     
    235316     *
    236317     * @param bool $useIncludePath
     318     *
     319     * @return void
    237320     */
    238321    public function setUseIncludePath($useIncludePath)
     
    257340     *
    258341     * @param bool $classMapAuthoritative
     342     *
     343     * @return void
    259344     */
    260345    public function setClassMapAuthoritative($classMapAuthoritative)
     
    277362     *
    278363     * @param string|null $apcuPrefix
     364     *
     365     * @return void
    279366     */
    280367    public function setApcuPrefix($apcuPrefix)
     
    297384     *
    298385     * @param bool $prepend Whether to prepend the autoloader or not
     386     *
     387     * @return void
    299388     */
    300389    public function register($prepend = false)
    301390    {
    302391        spl_autoload_register(array($this, 'loadClass'), true, $prepend);
     392
     393        if (null === $this->vendorDir) {
     394            return;
     395        }
     396
     397        if ($prepend) {
     398            self::$registeredLoaders = array($this->vendorDir => $this) + self::$registeredLoaders;
     399        } else {
     400            unset(self::$registeredLoaders[$this->vendorDir]);
     401            self::$registeredLoaders[$this->vendorDir] = $this;
     402        }
    303403    }
    304404
    305405    /**
    306406     * Unregisters this instance as an autoloader.
     407     *
     408     * @return void
    307409     */
    308410    public function unregister()
    309411    {
    310412        spl_autoload_unregister(array($this, 'loadClass'));
     413
     414        if (null !== $this->vendorDir) {
     415            unset(self::$registeredLoaders[$this->vendorDir]);
     416        }
    311417    }
    312418
     
    315421     *
    316422     * @param  string    $class The name of the class
    317      * @return bool|null True if loaded, null otherwise
     423     * @return true|null True if loaded, null otherwise
    318424     */
    319425    public function loadClass($class)
     
    324430            return true;
    325431        }
     432
     433        return null;
    326434    }
    327435
     
    368476    }
    369477
     478    /**
     479     * Returns the currently registered loaders indexed by their corresponding vendor directories.
     480     *
     481     * @return self[]
     482     */
     483    public static function getRegisteredLoaders()
     484    {
     485        return self::$registeredLoaders;
     486    }
     487
     488    /**
     489     * @param  string       $class
     490     * @param  string       $ext
     491     * @return string|false
     492     */
    370493    private function findFileWithExtension($class, $ext)
    371494    {
     
    439562 *
    440563 * Prevents access to $this/self from included files.
     564 *
     565 * @param  string $file
     566 * @return void
     567 * @private
    441568 */
    442569function includeFile($file)
  • simple-csv-exporter/tags/2.0.1/vendor/composer/InstalledVersions.php

    r2446249 r2761526  
    11<?php
    22
    3 
    4 
    5 
    6 
    7 
    8 
    9 
    10 
    11 
     3/*
     4 * This file is part of Composer.
     5 *
     6 * (c) Nils Adermann <naderman@naderman.de>
     7 *     Jordi Boggiano <j.boggiano@seld.be>
     8 *
     9 * For the full copyright and license information, please view the LICENSE
     10 * file that was distributed with this source code.
     11 */
    1212
    1313namespace Composer;
    1414
     15use Composer\Autoload\ClassLoader;
    1516use Composer\Semver\VersionParser;
    1617
    17 
    18 
    19 
    20 
    21 
     18/**
     19 * This class is copied in every Composer installed project and available to all
     20 *
     21 * See also https://getcomposer.org/doc/07-runtime.md#installed-versions
     22 *
     23 * To require its presence, you can require `composer-runtime-api ^2.0`
     24 *
     25 * @final
     26 */
    2227class InstalledVersions
    2328{
    24 private static $installed = array (
    25   'root' =>
    26   array (
    27     'pretty_version' => '2.0.0',
    28     'version' => '2.0.0.0',
    29     'aliases' =>
    30     array (
    31     ),
    32     'reference' => '6ee2453933381678ccb5d36652341799baa55521',
    33     'name' => 'hamworks/simple-csv-exporter',
    34   ),
    35   'versions' =>
    36   array (
    37     'hamworks/simple-csv-exporter' =>
    38     array (
    39       'pretty_version' => '2.0.0',
    40       'version' => '2.0.0.0',
    41       'aliases' =>
    42       array (
    43       ),
    44       'reference' => '6ee2453933381678ccb5d36652341799baa55521',
    45     ),
    46     'opis/closure' =>
    47     array (
    48       'pretty_version' => '3.6.1',
    49       'version' => '3.6.1.0',
    50       'aliases' =>
    51       array (
    52       ),
    53       'reference' => '943b5d70cc5ae7483f6aff6ff43d7e34592ca0f5',
    54     ),
    55     'php-di/invoker' =>
    56     array (
    57       'pretty_version' => '2.0.0',
    58       'version' => '2.0.0.0',
    59       'aliases' =>
    60       array (
    61       ),
    62       'reference' => '540c27c86f663e20fe39a24cd72fa76cdb21d41a',
    63     ),
    64     'php-di/php-di' =>
    65     array (
    66       'pretty_version' => '6.3.0',
    67       'version' => '6.3.0.0',
    68       'aliases' =>
    69       array (
    70       ),
    71       'reference' => '955cacea6b0beaba07e8c11b8367f5b3d5abe89f',
    72     ),
    73     'php-di/phpdoc-reader' =>
    74     array (
    75       'pretty_version' => '2.2.1',
    76       'version' => '2.2.1.0',
    77       'aliases' =>
    78       array (
    79       ),
    80       'reference' => '66daff34cbd2627740ffec9469ffbac9f8c8185c',
    81     ),
    82     'psr/container' =>
    83     array (
    84       'pretty_version' => '1.0.0',
    85       'version' => '1.0.0.0',
    86       'aliases' =>
    87       array (
    88       ),
    89       'reference' => 'b7ce3b176482dbbc1245ebf52b181af44c2cf55f',
    90     ),
    91     'psr/container-implementation' =>
    92     array (
    93       'provided' =>
    94       array (
    95         0 => '^1.0',
    96       ),
    97     ),
    98   ),
    99 );
    100 
    101 
    102 
    103 
    104 
    105 
    106 
    107 public static function getInstalledPackages()
    108 {
    109 return array_keys(self::$installed['versions']);
     29    /**
     30     * @var mixed[]|null
     31     * @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
     32     */
     33    private static $installed;
     34
     35    /**
     36     * @var bool|null
     37     */
     38    private static $canGetVendors;
     39
     40    /**
     41     * @var array[]
     42     * @psalm-var array<string, 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[]}>}>
     43     */
     44    private static $installedByVendor = array();
     45
     46    /**
     47     * Returns a list of all package names which are present, either by being installed, replaced or provided
     48     *
     49     * @return string[]
     50     * @psalm-return list<string>
     51     */
     52    public static function getInstalledPackages()
     53    {
     54        $packages = array();
     55        foreach (self::getInstalled() as $installed) {
     56            $packages[] = array_keys($installed['versions']);
     57        }
     58
     59        if (1 === \count($packages)) {
     60            return $packages[0];
     61        }
     62
     63        return array_keys(array_flip(\call_user_func_array('array_merge', $packages)));
     64    }
     65
     66    /**
     67     * Returns a list of all package names with a specific type e.g. 'library'
     68     *
     69     * @param  string   $type
     70     * @return string[]
     71     * @psalm-return list<string>
     72     */
     73    public static function getInstalledPackagesByType($type)
     74    {
     75        $packagesByType = array();
     76
     77        foreach (self::getInstalled() as $installed) {
     78            foreach ($installed['versions'] as $name => $package) {
     79                if (isset($package['type']) && $package['type'] === $type) {
     80                    $packagesByType[] = $name;
     81                }
     82            }
     83        }
     84
     85        return $packagesByType;
     86    }
     87
     88    /**
     89     * Checks whether the given package is installed
     90     *
     91     * This also returns true if the package name is provided or replaced by another package
     92     *
     93     * @param  string $packageName
     94     * @param  bool   $includeDevRequirements
     95     * @return bool
     96     */
     97    public static function isInstalled($packageName, $includeDevRequirements = true)
     98    {
     99        foreach (self::getInstalled() as $installed) {
     100            if (isset($installed['versions'][$packageName])) {
     101                return $includeDevRequirements || empty($installed['versions'][$packageName]['dev_requirement']);
     102            }
     103        }
     104
     105        return false;
     106    }
     107
     108    /**
     109     * Checks whether the given package satisfies a version constraint
     110     *
     111     * e.g. If you want to know whether version 2.3+ of package foo/bar is installed, you would call:
     112     *
     113     *   Composer\InstalledVersions::satisfies(new VersionParser, 'foo/bar', '^2.3')
     114     *
     115     * @param  VersionParser $parser      Install composer/semver to have access to this class and functionality
     116     * @param  string        $packageName
     117     * @param  string|null   $constraint  A version constraint to check for, if you pass one you have to make sure composer/semver is required by your package
     118     * @return bool
     119     */
     120    public static function satisfies(VersionParser $parser, $packageName, $constraint)
     121    {
     122        $constraint = $parser->parseConstraints($constraint);
     123        $provided = $parser->parseConstraints(self::getVersionRanges($packageName));
     124
     125        return $provided->matches($constraint);
     126    }
     127
     128    /**
     129     * Returns a version constraint representing all the range(s) which are installed for a given package
     130     *
     131     * It is easier to use this via isInstalled() with the $constraint argument if you need to check
     132     * whether a given version of a package is installed, and not just whether it exists
     133     *
     134     * @param  string $packageName
     135     * @return string Version constraint usable with composer/semver
     136     */
     137    public static function getVersionRanges($packageName)
     138    {
     139        foreach (self::getInstalled() as $installed) {
     140            if (!isset($installed['versions'][$packageName])) {
     141                continue;
     142            }
     143
     144            $ranges = array();
     145            if (isset($installed['versions'][$packageName]['pretty_version'])) {
     146                $ranges[] = $installed['versions'][$packageName]['pretty_version'];
     147            }
     148            if (array_key_exists('aliases', $installed['versions'][$packageName])) {
     149                $ranges = array_merge($ranges, $installed['versions'][$packageName]['aliases']);
     150            }
     151            if (array_key_exists('replaced', $installed['versions'][$packageName])) {
     152                $ranges = array_merge($ranges, $installed['versions'][$packageName]['replaced']);
     153            }
     154            if (array_key_exists('provided', $installed['versions'][$packageName])) {
     155                $ranges = array_merge($ranges, $installed['versions'][$packageName]['provided']);
     156            }
     157
     158            return implode(' || ', $ranges);
     159        }
     160
     161        throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
     162    }
     163
     164    /**
     165     * @param  string      $packageName
     166     * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as version, use satisfies or getVersionRanges if you need to know if a given version is present
     167     */
     168    public static function getVersion($packageName)
     169    {
     170        foreach (self::getInstalled() as $installed) {
     171            if (!isset($installed['versions'][$packageName])) {
     172                continue;
     173            }
     174
     175            if (!isset($installed['versions'][$packageName]['version'])) {
     176                return null;
     177            }
     178
     179            return $installed['versions'][$packageName]['version'];
     180        }
     181
     182        throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
     183    }
     184
     185    /**
     186     * @param  string      $packageName
     187     * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as version, use satisfies or getVersionRanges if you need to know if a given version is present
     188     */
     189    public static function getPrettyVersion($packageName)
     190    {
     191        foreach (self::getInstalled() as $installed) {
     192            if (!isset($installed['versions'][$packageName])) {
     193                continue;
     194            }
     195
     196            if (!isset($installed['versions'][$packageName]['pretty_version'])) {
     197                return null;
     198            }
     199
     200            return $installed['versions'][$packageName]['pretty_version'];
     201        }
     202
     203        throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
     204    }
     205
     206    /**
     207     * @param  string      $packageName
     208     * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as reference
     209     */
     210    public static function getReference($packageName)
     211    {
     212        foreach (self::getInstalled() as $installed) {
     213            if (!isset($installed['versions'][$packageName])) {
     214                continue;
     215            }
     216
     217            if (!isset($installed['versions'][$packageName]['reference'])) {
     218                return null;
     219            }
     220
     221            return $installed['versions'][$packageName]['reference'];
     222        }
     223
     224        throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
     225    }
     226
     227    /**
     228     * @param  string      $packageName
     229     * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as install path. Packages of type metapackages also have a null install path.
     230     */
     231    public static function getInstallPath($packageName)
     232    {
     233        foreach (self::getInstalled() as $installed) {
     234            if (!isset($installed['versions'][$packageName])) {
     235                continue;
     236            }
     237
     238            return isset($installed['versions'][$packageName]['install_path']) ? $installed['versions'][$packageName]['install_path'] : null;
     239        }
     240
     241        throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
     242    }
     243
     244    /**
     245     * @return array
     246     * @psalm-return array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}
     247     */
     248    public static function getRootPackage()
     249    {
     250        $installed = self::getInstalled();
     251
     252        return $installed[0]['root'];
     253    }
     254
     255    /**
     256     * Returns the raw installed.php data for custom implementations
     257     *
     258     * @deprecated Use getAllRawData() instead which returns all datasets for all autoloaders present in the process. getRawData only returns the first dataset loaded, which may not be what you expect.
     259     * @return array[]
     260     * @psalm-return 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[]}>}
     261     */
     262    public static function getRawData()
     263    {
     264        @trigger_error('getRawData only returns the first dataset loaded, which may not be what you expect. Use getAllRawData() instead which returns all datasets for all autoloaders present in the process.', E_USER_DEPRECATED);
     265
     266        if (null === self::$installed) {
     267            // only require the installed.php file if this file is loaded from its dumped location,
     268            // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937
     269            if (substr(__DIR__, -8, 1) !== 'C') {
     270                self::$installed = include __DIR__ . '/installed.php';
     271            } else {
     272                self::$installed = array();
     273            }
     274        }
     275
     276        return self::$installed;
     277    }
     278
     279    /**
     280     * Returns the raw data of all installed.php which are currently loaded for custom implementations
     281     *
     282     * @return array[]
     283     * @psalm-return list<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[]}>}>
     284     */
     285    public static function getAllRawData()
     286    {
     287        return self::getInstalled();
     288    }
     289
     290    /**
     291     * Lets you reload the static array from another file
     292     *
     293     * This is only useful for complex integrations in which a project needs to use
     294     * this class but then also needs to execute another project's autoloader in process,
     295     * and wants to ensure both projects have access to their version of installed.php.
     296     *
     297     * A typical case would be PHPUnit, where it would need to make sure it reads all
     298     * the data it needs from this class, then call reload() with
     299     * `require $CWD/vendor/composer/installed.php` (or similar) as input to make sure
     300     * the project in which it runs can then also use this class safely, without
     301     * interference between PHPUnit's dependencies and the project's dependencies.
     302     *
     303     * @param  array[] $data A vendor/composer/installed.php data set
     304     * @return void
     305     *
     306     * @psalm-param 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[]}>} $data
     307     */
     308    public static function reload($data)
     309    {
     310        self::$installed = $data;
     311        self::$installedByVendor = array();
     312    }
     313
     314    /**
     315     * @return array[]
     316     * @psalm-return list<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[]}>}>
     317     */
     318    private static function getInstalled()
     319    {
     320        if (null === self::$canGetVendors) {
     321            self::$canGetVendors = method_exists('Composer\Autoload\ClassLoader', 'getRegisteredLoaders');
     322        }
     323
     324        $installed = array();
     325
     326        if (self::$canGetVendors) {
     327            foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) {
     328                if (isset(self::$installedByVendor[$vendorDir])) {
     329                    $installed[] = self::$installedByVendor[$vendorDir];
     330                } 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];
     334                    }
     335                }
     336            }
     337        }
     338
     339        if (null === self::$installed) {
     340            // only require the installed.php file if this file is loaded from its dumped location,
     341            // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937
     342            if (substr(__DIR__, -8, 1) !== 'C') {
     343                self::$installed = require __DIR__ . '/installed.php';
     344            } else {
     345                self::$installed = array();
     346            }
     347        }
     348        $installed[] = self::$installed;
     349
     350        return $installed;
     351    }
    110352}
    111 
    112 
    113 
    114 
    115 
    116 
    117 
    118 
    119 
    120 public static function isInstalled($packageName)
    121 {
    122 return isset(self::$installed['versions'][$packageName]);
    123 }
    124 
    125 
    126 
    127 
    128 
    129 
    130 
    131 
    132 
    133 
    134 
    135 
    136 
    137 
    138 public static function satisfies(VersionParser $parser, $packageName, $constraint)
    139 {
    140 $constraint = $parser->parseConstraints($constraint);
    141 $provided = $parser->parseConstraints(self::getVersionRanges($packageName));
    142 
    143 return $provided->matches($constraint);
    144 }
    145 
    146 
    147 
    148 
    149 
    150 
    151 
    152 
    153 
    154 
    155 public static function getVersionRanges($packageName)
    156 {
    157 if (!isset(self::$installed['versions'][$packageName])) {
    158 throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
    159 }
    160 
    161 $ranges = array();
    162 if (isset(self::$installed['versions'][$packageName]['pretty_version'])) {
    163 $ranges[] = self::$installed['versions'][$packageName]['pretty_version'];
    164 }
    165 if (array_key_exists('aliases', self::$installed['versions'][$packageName])) {
    166 $ranges = array_merge($ranges, self::$installed['versions'][$packageName]['aliases']);
    167 }
    168 if (array_key_exists('replaced', self::$installed['versions'][$packageName])) {
    169 $ranges = array_merge($ranges, self::$installed['versions'][$packageName]['replaced']);
    170 }
    171 if (array_key_exists('provided', self::$installed['versions'][$packageName])) {
    172 $ranges = array_merge($ranges, self::$installed['versions'][$packageName]['provided']);
    173 }
    174 
    175 return implode(' || ', $ranges);
    176 }
    177 
    178 
    179 
    180 
    181 
    182 public static function getVersion($packageName)
    183 {
    184 if (!isset(self::$installed['versions'][$packageName])) {
    185 throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
    186 }
    187 
    188 if (!isset(self::$installed['versions'][$packageName]['version'])) {
    189 return null;
    190 }
    191 
    192 return self::$installed['versions'][$packageName]['version'];
    193 }
    194 
    195 
    196 
    197 
    198 
    199 public static function getPrettyVersion($packageName)
    200 {
    201 if (!isset(self::$installed['versions'][$packageName])) {
    202 throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
    203 }
    204 
    205 if (!isset(self::$installed['versions'][$packageName]['pretty_version'])) {
    206 return null;
    207 }
    208 
    209 return self::$installed['versions'][$packageName]['pretty_version'];
    210 }
    211 
    212 
    213 
    214 
    215 
    216 public static function getReference($packageName)
    217 {
    218 if (!isset(self::$installed['versions'][$packageName])) {
    219 throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
    220 }
    221 
    222 if (!isset(self::$installed['versions'][$packageName]['reference'])) {
    223 return null;
    224 }
    225 
    226 return self::$installed['versions'][$packageName]['reference'];
    227 }
    228 
    229 
    230 
    231 
    232 
    233 public static function getRootPackage()
    234 {
    235 return self::$installed['root'];
    236 }
    237 
    238 
    239 
    240 
    241 
    242 
    243 
    244 public static function getRawData()
    245 {
    246 return self::$installed;
    247 }
    248 
    249 
    250 
    251 
    252 
    253 
    254 
    255 
    256 
    257 
    258 
    259 
    260 
    261 
    262 
    263 
    264 
    265 
    266 
    267 public static function reload($data)
    268 {
    269 self::$installed = $data;
    270 }
    271 }
  • simple-csv-exporter/tags/2.0.1/vendor/composer/autoload_classmap.php

    r2446249 r2761526  
    33// autoload_classmap.php @generated by Composer
    44
    5 $vendorDir = dirname(dirname(__FILE__));
     5$vendorDir = dirname(__DIR__);
    66$baseDir = dirname($vendorDir);
    77
  • simple-csv-exporter/tags/2.0.1/vendor/composer/autoload_files.php

    r2446249 r2761526  
    33// autoload_files.php @generated by Composer
    44
    5 $vendorDir = dirname(dirname(__FILE__));
     5$vendorDir = dirname(__DIR__);
    66$baseDir = dirname($vendorDir);
    77
  • simple-csv-exporter/tags/2.0.1/vendor/composer/autoload_namespaces.php

    r2437085 r2761526  
    33// autoload_namespaces.php @generated by Composer
    44
    5 $vendorDir = dirname(dirname(__FILE__));
     5$vendorDir = dirname(__DIR__);
    66$baseDir = dirname($vendorDir);
    77
  • simple-csv-exporter/tags/2.0.1/vendor/composer/autoload_psr4.php

    r2446249 r2761526  
    33// autoload_psr4.php @generated by Composer
    44
    5 $vendorDir = dirname(dirname(__FILE__));
     5$vendorDir = dirname(__DIR__);
    66$baseDir = dirname($vendorDir);
    77
  • simple-csv-exporter/tags/2.0.1/vendor/composer/autoload_real.php

    r2446249 r2761526  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit576229bd9376ebde99435e9d7f3def84
     5class ComposerAutoloaderInit2e765ad8ae0dfed5be0e9b093247e6db
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInit576229bd9376ebde99435e9d7f3def84', 'loadClassLoader'), true, true);
    28         self::$loader = $loader = new \Composer\Autoload\ClassLoader();
    29         spl_autoload_unregister(array('ComposerAutoloaderInit576229bd9376ebde99435e9d7f3def84', 'loadClassLoader'));
     27        spl_autoload_register(array('ComposerAutoloaderInit2e765ad8ae0dfed5be0e9b093247e6db', 'loadClassLoader'), true, true);
     28        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
     29        spl_autoload_unregister(array('ComposerAutoloaderInit2e765ad8ae0dfed5be0e9b093247e6db', 'loadClassLoader'));
    3030
    31         $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
    32         if ($useStaticLoader) {
    33             require __DIR__ . '/autoload_static.php';
    34 
    35             call_user_func(\Composer\Autoload\ComposerStaticInit576229bd9376ebde99435e9d7f3def84::getInitializer($loader));
    36         } else {
    37             $map = require __DIR__ . '/autoload_namespaces.php';
    38             foreach ($map as $namespace => $path) {
    39                 $loader->set($namespace, $path);
    40             }
    41 
    42             $map = require __DIR__ . '/autoload_psr4.php';
    43             foreach ($map as $namespace => $path) {
    44                 $loader->setPsr4($namespace, $path);
    45             }
    46 
    47             $classMap = require __DIR__ . '/autoload_classmap.php';
    48             if ($classMap) {
    49                 $loader->addClassMap($classMap);
    50             }
    51         }
     31        require __DIR__ . '/autoload_static.php';
     32        call_user_func(\Composer\Autoload\ComposerStaticInit2e765ad8ae0dfed5be0e9b093247e6db::getInitializer($loader));
    5233
    5334        $loader->register(true);
    5435
    55         if ($useStaticLoader) {
    56             $includeFiles = Composer\Autoload\ComposerStaticInit576229bd9376ebde99435e9d7f3def84::$files;
    57         } else {
    58             $includeFiles = require __DIR__ . '/autoload_files.php';
    59         }
     36        $includeFiles = \Composer\Autoload\ComposerStaticInit2e765ad8ae0dfed5be0e9b093247e6db::$files;
    6037        foreach ($includeFiles as $fileIdentifier => $file) {
    61             composerRequire576229bd9376ebde99435e9d7f3def84($fileIdentifier, $file);
     38            composerRequire2e765ad8ae0dfed5be0e9b093247e6db($fileIdentifier, $file);
    6239        }
    6340
     
    6643}
    6744
    68 function composerRequire576229bd9376ebde99435e9d7f3def84($fileIdentifier, $file)
     45/**
     46 * @param string $fileIdentifier
     47 * @param string $file
     48 * @return void
     49 */
     50function composerRequire2e765ad8ae0dfed5be0e9b093247e6db($fileIdentifier, $file)
    6951{
    7052    if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
     53        $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
     54
    7155        require $file;
    72 
    73         $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
    7456    }
    7557}
  • simple-csv-exporter/tags/2.0.1/vendor/composer/autoload_static.php

    r2446249 r2761526  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit576229bd9376ebde99435e9d7f3def84
     7class ComposerStaticInit2e765ad8ae0dfed5be0e9b093247e6db
    88{
    99    public static $files = array (
     
    176176    {
    177177        return \Closure::bind(function () use ($loader) {
    178             $loader->prefixLengthsPsr4 = ComposerStaticInit576229bd9376ebde99435e9d7f3def84::$prefixLengthsPsr4;
    179             $loader->prefixDirsPsr4 = ComposerStaticInit576229bd9376ebde99435e9d7f3def84::$prefixDirsPsr4;
    180             $loader->classMap = ComposerStaticInit576229bd9376ebde99435e9d7f3def84::$classMap;
     178            $loader->prefixLengthsPsr4 = ComposerStaticInit2e765ad8ae0dfed5be0e9b093247e6db::$prefixLengthsPsr4;
     179            $loader->prefixDirsPsr4 = ComposerStaticInit2e765ad8ae0dfed5be0e9b093247e6db::$prefixDirsPsr4;
     180            $loader->classMap = ComposerStaticInit2e765ad8ae0dfed5be0e9b093247e6db::$classMap;
    181181
    182182        }, null, ClassLoader::class);
  • simple-csv-exporter/tags/2.0.1/vendor/composer/installed.json

    r2446249 r2761526  
    33        {
    44            "name": "opis/closure",
    5             "version": "3.6.1",
    6             "version_normalized": "3.6.1.0",
     5            "version": "3.6.3",
     6            "version_normalized": "3.6.3.0",
    77            "source": {
    88                "type": "git",
    99                "url": "https://github.com/opis/closure.git",
    10                 "reference": "943b5d70cc5ae7483f6aff6ff43d7e34592ca0f5"
    11             },
    12             "dist": {
    13                 "type": "zip",
    14                 "url": "https://api.github.com/repos/opis/closure/zipball/943b5d70cc5ae7483f6aff6ff43d7e34592ca0f5",
    15                 "reference": "943b5d70cc5ae7483f6aff6ff43d7e34592ca0f5",
     10                "reference": "3d81e4309d2a927abbe66df935f4bb60082805ad"
     11            },
     12            "dist": {
     13                "type": "zip",
     14                "url": "https://api.github.com/repos/opis/closure/zipball/3d81e4309d2a927abbe66df935f4bb60082805ad",
     15                "reference": "3d81e4309d2a927abbe66df935f4bb60082805ad",
    1616                "shasum": ""
    1717            },
     
    2323                "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.0"
    2424            },
    25             "time": "2020-11-07T02:01:34+00:00",
     25            "time": "2022-01-27T09:35:39+00:00",
    2626            "type": "library",
    2727            "extra": {
     
    3232            "installation-source": "dist",
    3333            "autoload": {
    34                 "psr-4": {
    35                     "Opis\\Closure\\": "src/"
    36                 },
    3734                "files": [
    3835                    "functions.php"
    39                 ]
     36                ],
     37                "psr-4": {
     38                    "Opis\\Closure\\": "src/"
     39                }
    4040            },
    4141            "notification-url": "https://packagist.org/downloads/",
     
    6565            "support": {
    6666                "issues": "https://github.com/opis/closure/issues",
    67                 "source": "https://github.com/opis/closure/tree/3.6.1"
     67                "source": "https://github.com/opis/closure/tree/3.6.3"
    6868            },
    6969            "install-path": "../opis/closure"
     
    121121        {
    122122            "name": "php-di/php-di",
    123             "version": "6.3.0",
    124             "version_normalized": "6.3.0.0",
     123            "version": "6.3.5",
     124            "version_normalized": "6.3.5.0",
    125125            "source": {
    126126                "type": "git",
    127127                "url": "https://github.com/PHP-DI/PHP-DI.git",
    128                 "reference": "955cacea6b0beaba07e8c11b8367f5b3d5abe89f"
    129             },
    130             "dist": {
    131                 "type": "zip",
    132                 "url": "https://api.github.com/repos/PHP-DI/PHP-DI/zipball/955cacea6b0beaba07e8c11b8367f5b3d5abe89f",
    133                 "reference": "955cacea6b0beaba07e8c11b8367f5b3d5abe89f",
     128                "reference": "b8126d066ce144765300ee0ab040c1ed6c9ef588"
     129            },
     130            "dist": {
     131                "type": "zip",
     132                "url": "https://api.github.com/repos/PHP-DI/PHP-DI/zipball/b8126d066ce144765300ee0ab040c1ed6c9ef588",
     133                "reference": "b8126d066ce144765300ee0ab040c1ed6c9ef588",
    134134                "shasum": ""
    135135            },
     
    148148                "friendsofphp/php-cs-fixer": "^2.4",
    149149                "mnapoli/phpunit-easymock": "^1.2",
    150                 "ocramius/proxy-manager": "~2.0.2",
     150                "ocramius/proxy-manager": "^2.0.2",
    151151                "phpstan/phpstan": "^0.12",
    152152                "phpunit/phpunit": "^8.5|^9.0"
     
    156156                "ocramius/proxy-manager": "Install it if you want to use lazy injection (version ~2.0)"
    157157            },
    158             "time": "2020-10-12T14:39:15+00:00",
    159             "type": "library",
    160             "installation-source": "dist",
    161             "autoload": {
    162                 "psr-4": {
    163                     "DI\\": "src/"
    164                 },
     158            "time": "2021-09-02T09:49:58+00:00",
     159            "type": "library",
     160            "installation-source": "dist",
     161            "autoload": {
    165162                "files": [
    166163                    "src/functions.php"
    167                 ]
     164                ],
     165                "psr-4": {
     166                    "DI\\": "src/"
     167                }
    168168            },
    169169            "notification-url": "https://packagist.org/downloads/",
     
    184184            "support": {
    185185                "issues": "https://github.com/PHP-DI/PHP-DI/issues",
    186                 "source": "https://github.com/PHP-DI/PHP-DI/tree/6.3.0"
     186                "source": "https://github.com/PHP-DI/PHP-DI/tree/6.3.5"
    187187            },
    188188            "funding": [
     
    245245        {
    246246            "name": "psr/container",
    247             "version": "1.0.0",
    248             "version_normalized": "1.0.0.0",
     247            "version": "1.1.1",
     248            "version_normalized": "1.1.1.0",
    249249            "source": {
    250250                "type": "git",
    251251                "url": "https://github.com/php-fig/container.git",
    252                 "reference": "b7ce3b176482dbbc1245ebf52b181af44c2cf55f"
    253             },
    254             "dist": {
    255                 "type": "zip",
    256                 "url": "https://api.github.com/repos/php-fig/container/zipball/b7ce3b176482dbbc1245ebf52b181af44c2cf55f",
    257                 "reference": "b7ce3b176482dbbc1245ebf52b181af44c2cf55f",
    258                 "shasum": ""
    259             },
    260             "require": {
    261                 "php": ">=5.3.0"
    262             },
    263             "time": "2017-02-14T16:28:37+00:00",
    264             "type": "library",
    265             "extra": {
    266                 "branch-alias": {
    267                     "dev-master": "1.0.x-dev"
    268                 }
    269             },
     252                "reference": "8622567409010282b7aeebe4bb841fe98b58dcaf"
     253            },
     254            "dist": {
     255                "type": "zip",
     256                "url": "https://api.github.com/repos/php-fig/container/zipball/8622567409010282b7aeebe4bb841fe98b58dcaf",
     257                "reference": "8622567409010282b7aeebe4bb841fe98b58dcaf",
     258                "shasum": ""
     259            },
     260            "require": {
     261                "php": ">=7.2.0"
     262            },
     263            "time": "2021-03-05T17:36:06+00:00",
     264            "type": "library",
    270265            "installation-source": "dist",
    271266            "autoload": {
     
    281276                {
    282277                    "name": "PHP-FIG",
    283                     "homepage": "http://www.php-fig.org/"
     278                    "homepage": "https://www.php-fig.org/"
    284279                }
    285280            ],
     
    295290            "support": {
    296291                "issues": "https://github.com/php-fig/container/issues",
    297                 "source": "https://github.com/php-fig/container/tree/master"
     292                "source": "https://github.com/php-fig/container/tree/1.1.1"
    298293            },
    299294            "install-path": "../psr/container"
  • simple-csv-exporter/tags/2.0.1/vendor/composer/installed.php

    r2446249 r2761526  
    1 <?php return array (
    2   'root' =>
    3   array (
    4     'pretty_version' => '2.0.0',
    5     'version' => '2.0.0.0',
    6     'aliases' =>
    7     array (
     1<?php return array(
     2    'root' => array(
     3        'name' => 'hamworks/simple-csv-exporter',
     4        'pretty_version' => '2.0.1',
     5        'version' => '2.0.1.0',
     6        'reference' => '1d0d4fca93369395531eb749924260d960ae3113',
     7        'type' => 'library',
     8        'install_path' => __DIR__ . '/../../',
     9        'aliases' => array(),
     10        'dev' => false,
    811    ),
    9     'reference' => '6ee2453933381678ccb5d36652341799baa55521',
    10     'name' => 'hamworks/simple-csv-exporter',
    11   ),
    12   'versions' =>
    13   array (
    14     'hamworks/simple-csv-exporter' =>
    15     array (
    16       'pretty_version' => '2.0.0',
    17       'version' => '2.0.0.0',
    18       'aliases' =>
    19       array (
    20       ),
    21       'reference' => '6ee2453933381678ccb5d36652341799baa55521',
     12    'versions' => array(
     13        'hamworks/simple-csv-exporter' => array(
     14            'pretty_version' => '2.0.1',
     15            'version' => '2.0.1.0',
     16            'reference' => '1d0d4fca93369395531eb749924260d960ae3113',
     17            'type' => 'library',
     18            'install_path' => __DIR__ . '/../../',
     19            'aliases' => array(),
     20            'dev_requirement' => false,
     21        ),
     22        'opis/closure' => array(
     23            'pretty_version' => '3.6.3',
     24            'version' => '3.6.3.0',
     25            'reference' => '3d81e4309d2a927abbe66df935f4bb60082805ad',
     26            'type' => 'library',
     27            'install_path' => __DIR__ . '/../opis/closure',
     28            'aliases' => array(),
     29            'dev_requirement' => false,
     30        ),
     31        'php-di/invoker' => array(
     32            'pretty_version' => '2.0.0',
     33            'version' => '2.0.0.0',
     34            'reference' => '540c27c86f663e20fe39a24cd72fa76cdb21d41a',
     35            'type' => 'library',
     36            'install_path' => __DIR__ . '/../php-di/invoker',
     37            'aliases' => array(),
     38            'dev_requirement' => false,
     39        ),
     40        'php-di/php-di' => array(
     41            'pretty_version' => '6.3.5',
     42            'version' => '6.3.5.0',
     43            'reference' => 'b8126d066ce144765300ee0ab040c1ed6c9ef588',
     44            'type' => 'library',
     45            'install_path' => __DIR__ . '/../php-di/php-di',
     46            'aliases' => array(),
     47            'dev_requirement' => false,
     48        ),
     49        'php-di/phpdoc-reader' => array(
     50            'pretty_version' => '2.2.1',
     51            'version' => '2.2.1.0',
     52            'reference' => '66daff34cbd2627740ffec9469ffbac9f8c8185c',
     53            'type' => 'library',
     54            'install_path' => __DIR__ . '/../php-di/phpdoc-reader',
     55            'aliases' => array(),
     56            'dev_requirement' => false,
     57        ),
     58        'psr/container' => array(
     59            'pretty_version' => '1.1.1',
     60            'version' => '1.1.1.0',
     61            'reference' => '8622567409010282b7aeebe4bb841fe98b58dcaf',
     62            'type' => 'library',
     63            'install_path' => __DIR__ . '/../psr/container',
     64            'aliases' => array(),
     65            'dev_requirement' => false,
     66        ),
     67        'psr/container-implementation' => array(
     68            'dev_requirement' => false,
     69            'provided' => array(
     70                0 => '^1.0',
     71            ),
     72        ),
    2273    ),
    23     'opis/closure' =>
    24     array (
    25       'pretty_version' => '3.6.1',
    26       'version' => '3.6.1.0',
    27       'aliases' =>
    28       array (
    29       ),
    30       'reference' => '943b5d70cc5ae7483f6aff6ff43d7e34592ca0f5',
    31     ),
    32     'php-di/invoker' =>
    33     array (
    34       'pretty_version' => '2.0.0',
    35       'version' => '2.0.0.0',
    36       'aliases' =>
    37       array (
    38       ),
    39       'reference' => '540c27c86f663e20fe39a24cd72fa76cdb21d41a',
    40     ),
    41     'php-di/php-di' =>
    42     array (
    43       'pretty_version' => '6.3.0',
    44       'version' => '6.3.0.0',
    45       'aliases' =>
    46       array (
    47       ),
    48       'reference' => '955cacea6b0beaba07e8c11b8367f5b3d5abe89f',
    49     ),
    50     'php-di/phpdoc-reader' =>
    51     array (
    52       'pretty_version' => '2.2.1',
    53       'version' => '2.2.1.0',
    54       'aliases' =>
    55       array (
    56       ),
    57       'reference' => '66daff34cbd2627740ffec9469ffbac9f8c8185c',
    58     ),
    59     'psr/container' =>
    60     array (
    61       'pretty_version' => '1.0.0',
    62       'version' => '1.0.0.0',
    63       'aliases' =>
    64       array (
    65       ),
    66       'reference' => 'b7ce3b176482dbbc1245ebf52b181af44c2cf55f',
    67     ),
    68     'psr/container-implementation' =>
    69     array (
    70       'provided' =>
    71       array (
    72         0 => '^1.0',
    73       ),
    74     ),
    75   ),
    7674);
  • simple-csv-exporter/tags/2.0.1/vendor/composer/platform_check.php

    r2437085 r2761526  
    55$issues = array();
    66
    7 if (!(PHP_VERSION_ID >= 70200)) {
    8     $issues[] = 'Your Composer dependencies require a PHP version ">= 7.2.0". You are running ' . PHP_VERSION . '.';
     7if (!(PHP_VERSION_ID >= 70400)) {
     8    $issues[] = 'Your Composer dependencies require a PHP version ">= 7.4.0". You are running ' . PHP_VERSION . '.';
    99}
    1010
  • simple-csv-exporter/tags/2.0.1/vendor/opis/closure/CHANGELOG.md

    r2446249 r2761526  
    11CHANGELOG
    22---------
     3
     4### v3.6.2, 2021.04.09
     5
     6- Fixed string interpolation
    37
    48### v3.6.1, 2020.11.07
  • simple-csv-exporter/tags/2.0.1/vendor/opis/closure/autoload.php

    r2446249 r2761526  
    11<?php
    22/* ===========================================================================
    3  * Copyright (c) 2018-2019 Zindex Software
     3 * Copyright (c) 2018-2021 Zindex Software
    44 *
    55 * Licensed under the MIT License
    66 * =========================================================================== */
    77
    8 require_once 'functions.php';
     8require_once __DIR__ . '/functions.php';
    99
    1010spl_autoload_register(function($class){
  • simple-csv-exporter/tags/2.0.1/vendor/opis/closure/functions.php

    r2446249 r2761526  
    11<?php
    22/* ===========================================================================
    3  * Copyright (c) 2018-2019 Zindex Software
     3 * Copyright (c) 2018-2021 Zindex Software
    44 *
    55 * Licensed under the MIT License
  • simple-csv-exporter/tags/2.0.1/vendor/opis/closure/src/Analyzer.php

    r2446249 r2761526  
    11<?php
    22/* ===========================================================================
    3  * Copyright (c) 2018-2019 Zindex Software
     3 * Copyright (c) 2018-2021 Zindex Software
    44 *
    55 * Licensed under the MIT License
  • simple-csv-exporter/tags/2.0.1/vendor/opis/closure/src/ClosureContext.php

    r2446249 r2761526  
    11<?php
    22/* ===========================================================================
    3  * Copyright (c) 2018-2019 Zindex Software
     3 * Copyright (c) 2018-2021 Zindex Software
    44 *
    55 * Licensed under the MIT License
  • simple-csv-exporter/tags/2.0.1/vendor/opis/closure/src/ClosureScope.php

    r2446249 r2761526  
    11<?php
    22/* ===========================================================================
    3  * Copyright (c) 2018-2019 Zindex Software
     3 * Copyright (c) 2018-2021 Zindex Software
    44 *
    55 * Licensed under the MIT License
  • simple-csv-exporter/tags/2.0.1/vendor/opis/closure/src/ClosureStream.php

    r2446249 r2761526  
    11<?php
    22/* ===========================================================================
    3  * Copyright (c) 2018-2019 Zindex Software
     3 * Copyright (c) 2018-2021 Zindex Software
    44 *
    55 * Licensed under the MIT License
  • simple-csv-exporter/tags/2.0.1/vendor/opis/closure/src/ISecurityProvider.php

    r2446249 r2761526  
    11<?php
    22/* ===========================================================================
    3  * Copyright (c) 2018-2019 Zindex Software
     3 * Copyright (c) 2018-2021 Zindex Software
    44 *
    55 * Licensed under the MIT License
  • simple-csv-exporter/tags/2.0.1/vendor/opis/closure/src/ReflectionClosure.php

    r2446249 r2761526  
    11<?php
    22/* ===========================================================================
    3  * Copyright (c) 2018-2019 Zindex Software
     3 * Copyright (c) 2018-2021 Zindex Software
    44 *
    55 * Licensed under the MIT License
     
    272272                        case T_DOLLAR_OPEN_CURLY_BRACES:
    273273                        case '{':
    274                             $code .= '{';
     274                            $code .= is_array($token) ? $token[1] : $token;
    275275                            $open++;
    276276                            break;
  • simple-csv-exporter/tags/2.0.1/vendor/opis/closure/src/SecurityException.php

    r2446249 r2761526  
    11<?php
    22/* ===========================================================================
    3  * Copyright (c) 2018-2019 Zindex Software
     3 * Copyright (c) 2018-2021 Zindex Software
    44 *
    55 * Licensed under the MIT License
  • simple-csv-exporter/tags/2.0.1/vendor/opis/closure/src/SecurityProvider.php

    r2446249 r2761526  
    11<?php
    22/* ===========================================================================
    3  * Copyright (c) 2018-2019 Zindex Software
     3 * Copyright (c) 2018-2021 Zindex Software
    44 *
    55 * Licensed under the MIT License
  • simple-csv-exporter/tags/2.0.1/vendor/opis/closure/src/SelfReference.php

    r2446249 r2761526  
    11<?php
    22/* ===========================================================================
    3  * Copyright (c) 2018-2019 Zindex Software
     3 * Copyright (c) 2018-2021 Zindex Software
    44 *
    55 * Licensed under the MIT License
  • simple-csv-exporter/tags/2.0.1/vendor/opis/closure/src/SerializableClosure.php

    r2446249 r2761526  
    11<?php
    22/* ===========================================================================
    3  * Copyright (c) 2018-2019 Zindex Software
     3 * Copyright (c) 2018-2021 Zindex Software
    44 *
    55 * Licensed under the MIT License
  • simple-csv-exporter/tags/2.0.1/vendor/php-di/php-di/src/CompiledContainer.php

    r2446249 r2761526  
    2525abstract class CompiledContainer extends Container
    2626{
     27    /**
     28     * This const is overridden in child classes (compiled containers).
     29     * @var array
     30     */
     31    protected const METHOD_MAPPING = [];
     32
    2733    /**
    2834     * @var InvokerInterface
  • simple-csv-exporter/tags/2.0.1/vendor/php-di/php-di/src/Compiler/Compiler.php

    r2446249 r2761526  
    245245                $defaultValue = $this->compileValue($definition->getDefaultValue());
    246246                $code = <<<PHP
    247         \$value = getenv($variableName);
     247        \$value = \$_ENV[$variableName] ?? \$_SERVER[$variableName] ?? getenv($variableName);
    248248        if (false !== \$value) return \$value;
    249249        if (!$isOptional) {
     
    359359    private function createCompilationDirectory(string $directory)
    360360    {
    361         if (!is_dir($directory) && !@mkdir($directory, 0777, true)) {
     361        if (!is_dir($directory) && !@mkdir($directory, 0777, true) && !is_dir($directory)) {
    362362            throw new InvalidArgumentException(sprintf('Compilation directory does not exist and cannot be created: %s.', $directory));
    363363        }
  • simple-csv-exporter/tags/2.0.1/vendor/php-di/php-di/src/Container.php

    r2446249 r2761526  
    118118     * Returns an entry of the container by its name.
    119119     *
    120      * @param string $name Entry name or a class name.
     120     * @template T
     121     * @param string|class-string<T> $name Entry name or a class name.
    121122     *
    122123     * @throws DependencyException Error while resolving the entry.
    123124     * @throws NotFoundException No entry found for the given name.
    124      * @return mixed
     125     * @return mixed|T
    125126     */
    126127    public function get($name)
     
    166167     * This method makes the container behave like a factory.
    167168     *
    168      * @param string $name       Entry name or a class name.
    169      * @param array  $parameters Optional parameters to use to build the entry. Use this to force specific parameters
    170      *                           to specific values. Parameters not defined in this array will be resolved using
    171      *                           the container.
     169     * @template T
     170     * @param string|class-string<T> $name       Entry name or a class name.
     171     * @param array                  $parameters Optional parameters to use to build the entry. Use this to force
     172     *                                           specific parameters to specific values. Parameters not defined in this
     173     *                                           array will be resolved using the container.
    172174     *
    173175     * @throws InvalidArgumentException The name parameter must be of type string.
    174176     * @throws DependencyException Error while resolving the entry.
    175177     * @throws NotFoundException No entry found for the given name.
    176      * @return mixed
     178     * @return mixed|T
    177179     */
    178180    public function make($name, array $parameters = [])
     
    230232     * Inject all dependencies on an existing instance.
    231233     *
    232      * @param object $instance Object to perform injection upon
     234     * @template T
     235     * @param object|T $instance Object to perform injection upon
    233236     * @throws InvalidArgumentException
    234237     * @throws DependencyException Error while injecting dependencies
    235      * @return object $instance Returns the same instance
     238     * @return object|T $instance Returns the same instance
    236239     */
    237240    public function injectOn($instance)
  • simple-csv-exporter/tags/2.0.1/vendor/php-di/php-di/src/Definition/ArrayDefinition.php

    r2446249 r2761526  
    5151    public function __toString()
    5252    {
    53         $str = '[' . PHP_EOL;
     53        $str = '[' . \PHP_EOL;
    5454
    5555        foreach ($this->values as $key => $value) {
     
    6161
    6262            if ($value instanceof Definition) {
    63                 $str .= str_replace(PHP_EOL, PHP_EOL . '    ', (string) $value);
     63                $str .= str_replace(\PHP_EOL, \PHP_EOL . '    ', (string) $value);
    6464            } else {
    6565                $str .= var_export($value, true);
    6666            }
    6767
    68             $str .= ',' . PHP_EOL;
     68            $str .= ',' . \PHP_EOL;
    6969        }
    7070
  • simple-csv-exporter/tags/2.0.1/vendor/php-di/php-di/src/Definition/Dumper/ObjectDefinitionDumper.php

    r2446249 r2761526  
    3636
    3737        // Lazy
    38         $str .= PHP_EOL . '    lazy = ' . var_export($definition->isLazy(), true);
     38        $str .= \PHP_EOL . '    lazy = ' . var_export($definition->isLazy(), true);
    3939
    4040        if ($classExist) {
     
    4949        }
    5050
    51         return sprintf('Object (' . PHP_EOL . '%s' . PHP_EOL . ')', $str);
     51        return sprintf('Object (' . \PHP_EOL . '%s' . \PHP_EOL . ')', $str);
    5252    }
    5353
     
    6161            $parameters = $this->dumpMethodParameters($className, $constructorInjection);
    6262
    63             $str .= sprintf(PHP_EOL . '    __construct(' . PHP_EOL . '        %s' . PHP_EOL . '    )', $parameters);
     63            $str .= sprintf(\PHP_EOL . '    __construct(' . \PHP_EOL . '        %s' . \PHP_EOL . '    )', $parameters);
    6464        }
    6565
     
    7575            $valueStr = $value instanceof Definition ? (string) $value : var_export($value, true);
    7676
    77             $str .= sprintf(PHP_EOL . '    $%s = %s', $propertyInjection->getPropertyName(), $valueStr);
     77            $str .= sprintf(\PHP_EOL . '    $%s = %s', $propertyInjection->getPropertyName(), $valueStr);
    7878        }
    7979
     
    8888            $parameters = $this->dumpMethodParameters($className, $methodInjection);
    8989
    90             $str .= sprintf(PHP_EOL . '    %s(' . PHP_EOL . '        %s' . PHP_EOL . '    )', $methodInjection->getMethodName(), $parameters);
     90            $str .= sprintf(\PHP_EOL . '    %s(' . \PHP_EOL . '        %s' . \PHP_EOL . '    )', $methodInjection->getMethodName(), $parameters);
    9191        }
    9292
     
    131131        }
    132132
    133         return implode(PHP_EOL . '        ', $args);
     133        return implode(\PHP_EOL . '        ', $args);
    134134    }
    135135}
  • simple-csv-exporter/tags/2.0.1/vendor/php-di/php-di/src/Definition/EnvironmentVariableDefinition.php

    r2446249 r2761526  
    9494    public function __toString()
    9595    {
    96         $str = '    variable = ' . $this->variableName . PHP_EOL
     96        $str = '    variable = ' . $this->variableName . \PHP_EOL
    9797            . '    optional = ' . ($this->isOptional ? 'yes' : 'no');
    9898
     
    100100            if ($this->defaultValue instanceof Definition) {
    101101                $nestedDefinition = (string) $this->defaultValue;
    102                 $defaultValueStr = str_replace(PHP_EOL, PHP_EOL . '    ', $nestedDefinition);
     102                $defaultValueStr = str_replace(\PHP_EOL, \PHP_EOL . '    ', $nestedDefinition);
    103103            } else {
    104104                $defaultValueStr = var_export($this->defaultValue, true);
    105105            }
    106106
    107             $str .= PHP_EOL . '    default = ' . $defaultValueStr;
     107            $str .= \PHP_EOL . '    default = ' . $defaultValueStr;
    108108        }
    109109
    110         return sprintf('Environment variable (' . PHP_EOL . '%s' . PHP_EOL . ')', $str);
     110        return sprintf('Environment variable (' . \PHP_EOL . '%s' . \PHP_EOL . ')', $str);
    111111    }
    112112}
  • simple-csv-exporter/tags/2.0.1/vendor/php-di/php-di/src/Definition/Exception/InvalidDefinition.php

    r2446249 r2761526  
    66
    77use DI\Definition\Definition;
     8use Psr\Container\ContainerExceptionInterface;
    89
    910/**
     
    1213 * @author Matthieu Napoli <matthieu@mnapoli.fr>
    1314 */
    14 class InvalidDefinition extends \Exception
     15class InvalidDefinition extends \Exception implements ContainerExceptionInterface
    1516{
    1617    public static function create(Definition $definition, string $message, \Exception $previous = null) : self
    1718    {
    1819        return new self(sprintf(
    19             '%s' . PHP_EOL . 'Full definition:' . PHP_EOL . '%s',
     20            '%s' . \PHP_EOL . 'Full definition:' . \PHP_EOL . '%s',
    2021            $message,
    2122            (string) $definition
  • simple-csv-exporter/tags/2.0.1/vendor/php-di/php-di/src/Definition/Resolver/EnvironmentVariableResolver.php

    r2446249 r2761526  
    2626    private $variableReader;
    2727
    28     public function __construct(DefinitionResolver $definitionResolver, $variableReader = 'getenv')
     28    public function __construct(DefinitionResolver $definitionResolver, $variableReader = null)
    2929    {
    3030        $this->definitionResolver = $definitionResolver;
    31         $this->variableReader = $variableReader;
     31        $this->variableReader = $variableReader ?? [$this, 'getEnvVariable'];
    3232    }
    3333
     
    6666        return true;
    6767    }
     68
     69    protected function getEnvVariable(string $variableName)
     70    {
     71        if (isset($_ENV[$variableName])) {
     72            return $_ENV[$variableName];
     73        } elseif (isset($_SERVER[$variableName])) {
     74            return $_SERVER[$variableName];
     75        }
     76
     77        return getenv($variableName);
     78    }
    6879}
  • simple-csv-exporter/tags/2.0.1/vendor/php-di/php-di/src/Definition/Source/AnnotationBasedAutowiring.php

    r2446249 r2761526  
    239239        // Try to use the type-hinting
    240240        $parameterType = $parameter->getType();
    241         if ($parameterType && !$parameterType->isBuiltin() && $parameterType instanceof ReflectionNamedType) {
     241        if ($parameterType && $parameterType instanceof ReflectionNamedType && !$parameterType->isBuiltin()) {
    242242            return $parameterType->getName();
    243243        }
  • simple-csv-exporter/tags/2.0.1/vendor/php-di/php-di/src/Definition/Source/ReflectionBasedAutowiring.php

    r2446249 r2761526  
    6969                continue;
    7070            }
     71            if (!$parameterType instanceof ReflectionNamedType) {
     72                // Union types are not supported
     73                continue;
     74            }
    7175            if ($parameterType->isBuiltin()) {
    7276                // Primitive types are not supported
    73                 continue;
    74             }
    75             if (!$parameterType instanceof ReflectionNamedType) {
    76                 // Union types are not supported
    7777                continue;
    7878            }
  • simple-csv-exporter/tags/2.0.1/vendor/php-di/php-di/src/Invoker/FactoryParameterResolver.php

    r2446249 r2761526  
    4949                continue;
    5050            }
     51            if (!$parameterType instanceof ReflectionNamedType) {
     52                // Union types are not supported
     53                continue;
     54            }
    5155            if ($parameterType->isBuiltin()) {
    5256                // Primitive types are not supported
    53                 continue;
    54             }
    55             if (!$parameterType instanceof ReflectionNamedType) {
    56                 // Union types are not supported
    5757                continue;
    5858            }
  • simple-csv-exporter/tags/2.0.1/vendor/php-di/php-di/src/Proxy/ProxyFactory.php

    r2446249 r2761526  
    9191            $config->setProxiesTargetDir($this->proxyDirectory);
    9292            $config->setGeneratorStrategy(new FileWriterGeneratorStrategy(new FileLocator($this->proxyDirectory)));
     93            // @phpstan-ignore-next-line
    9394            spl_autoload_register($config->getProxyAutoloader());
    9495        } else {
  • simple-csv-exporter/tags/2.0.1/vendor/psr/container/src/ContainerExceptionInterface.php

    r2446249 r2761526  
    11<?php
    2 /**
    3  * @license http://www.opensource.org/licenses/mit-license.php MIT (see the LICENSE file)
    4  */
    52
    63namespace Psr\Container;
  • simple-csv-exporter/tags/2.0.1/vendor/psr/container/src/ContainerInterface.php

    r2446249 r2761526  
    11<?php
    2 /**
    3  * @license http://www.opensource.org/licenses/mit-license.php MIT (see the LICENSE file)
    4  */
     2
     3declare(strict_types=1);
    54
    65namespace Psr\Container;
     
    2120     * @return mixed Entry.
    2221     */
    23     public function get($id);
     22    public function get(string $id);
    2423
    2524    /**
     
    3433     * @return bool
    3534     */
    36     public function has($id);
     35    public function has(string $id);
    3736}
  • simple-csv-exporter/tags/2.0.1/vendor/psr/container/src/NotFoundExceptionInterface.php

    r2446249 r2761526  
    11<?php
    2 /**
    3  * @license http://www.opensource.org/licenses/mit-license.php MIT (see the LICENSE file)
    4  */
    52
    63namespace Psr\Container;
  • simple-csv-exporter/trunk/readme.txt

    r2446249 r2761526  
    33Donate link:       https://www.paypal.me/torounit 
    44Tags:              CSV,export 
    5 Requires at least: 5.5 
    6 Tested up to:      5.6 
    7 Requires PHP:      7.2 
    8 Stable tag:        2.0.0
     5Requires at least: 5.8 
     6Tested up to:      6.0 
     7Requires PHP:      7.4 
     8Stable tag:        2.0.1
    99License:           GPLv2 or later 
    1010License URI:       https://www.gnu.org/licenses/gpl-2.0.html 
     
    1717
    1818When you select a post type, the posts will be exported.
     19
     20Github Repo: [https://github.com/hamworks/simple-csv-exporter](https://github.com/hamworks/simple-csv-exporter)
    1921
    2022
     
    6163== Changelog ==
    6264
     65= 2.0.1 =
     66* Tested on WP 6.0
     67* Drop support WP 5.7 and PHP 7.3
     68
    6369= 2.0.0 =
    6470* Use PHP-DI.
  • simple-csv-exporter/trunk/simple-csv-exporter.php

    r2446249 r2761526  
    1010 * Text Domain:     wp-csv-exporter
    1111 * Domain Path:     /languages
    12  * Version: 2.0.0
     12 * Requires PHP:    7.4
     13 * Version: 2.0.1
    1314 */
    1415
  • simple-csv-exporter/trunk/vendor/autoload.php

    r2446249 r2761526  
    33// autoload.php @generated by Composer
    44
     5if (PHP_VERSION_ID < 50600) {
     6    echo 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL;
     7    exit(1);
     8}
     9
    510require_once __DIR__ . '/composer/autoload_real.php';
    611
    7 return ComposerAutoloaderInit576229bd9376ebde99435e9d7f3def84::getLoader();
     12return ComposerAutoloaderInit2e765ad8ae0dfed5be0e9b093247e6db::getLoader();
  • simple-csv-exporter/trunk/vendor/composer/ClassLoader.php

    r2437085 r2761526  
    4343class ClassLoader
    4444{
     45    /** @var ?string */
     46    private $vendorDir;
     47
    4548    // PSR-4
     49    /**
     50     * @var array[]
     51     * @psalm-var array<string, array<string, int>>
     52     */
    4653    private $prefixLengthsPsr4 = array();
     54    /**
     55     * @var array[]
     56     * @psalm-var array<string, array<int, string>>
     57     */
    4758    private $prefixDirsPsr4 = array();
     59    /**
     60     * @var array[]
     61     * @psalm-var array<string, string>
     62     */
    4863    private $fallbackDirsPsr4 = array();
    4964
    5065    // PSR-0
     66    /**
     67     * @var array[]
     68     * @psalm-var array<string, array<string, string[]>>
     69     */
    5170    private $prefixesPsr0 = array();
     71    /**
     72     * @var array[]
     73     * @psalm-var array<string, string>
     74     */
    5275    private $fallbackDirsPsr0 = array();
    5376
     77    /** @var bool */
    5478    private $useIncludePath = false;
     79
     80    /**
     81     * @var string[]
     82     * @psalm-var array<string, string>
     83     */
    5584    private $classMap = array();
     85
     86    /** @var bool */
    5687    private $classMapAuthoritative = false;
     88
     89    /**
     90     * @var bool[]
     91     * @psalm-var array<string, bool>
     92     */
    5793    private $missingClasses = array();
     94
     95    /** @var ?string */
    5896    private $apcuPrefix;
    5997
     98    /**
     99     * @var self[]
     100     */
     101    private static $registeredLoaders = array();
     102
     103    /**
     104     * @param ?string $vendorDir
     105     */
     106    public function __construct($vendorDir = null)
     107    {
     108        $this->vendorDir = $vendorDir;
     109    }
     110
     111    /**
     112     * @return string[]
     113     */
    60114    public function getPrefixes()
    61115    {
     
    67121    }
    68122
     123    /**
     124     * @return array[]
     125     * @psalm-return array<string, array<int, string>>
     126     */
    69127    public function getPrefixesPsr4()
    70128    {
     
    72130    }
    73131
     132    /**
     133     * @return array[]
     134     * @psalm-return array<string, string>
     135     */
    74136    public function getFallbackDirs()
    75137    {
     
    77139    }
    78140
     141    /**
     142     * @return array[]
     143     * @psalm-return array<string, string>
     144     */
    79145    public function getFallbackDirsPsr4()
    80146    {
     
    82148    }
    83149
     150    /**
     151     * @return string[] Array of classname => path
     152     * @psalm-return array<string, string>
     153     */
    84154    public function getClassMap()
    85155    {
     
    88158
    89159    /**
    90      * @param array $classMap Class to filename map
     160     * @param string[] $classMap Class to filename map
     161     * @psalm-param array<string, string> $classMap
     162     *
     163     * @return void
    91164     */
    92165    public function addClassMap(array $classMap)
     
    103176     * appending or prepending to the ones previously set for this prefix.
    104177     *
    105      * @param string       $prefix  The prefix
    106      * @param array|string $paths   The PSR-0 root directories
    107      * @param bool         $prepend Whether to prepend the directories
     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
     181     *
     182     * @return void
    108183     */
    109184    public function add($prefix, $paths, $prepend = false)
     
    148223     * appending or prepending to the ones previously set for this namespace.
    149224     *
    150      * @param string       $prefix  The prefix/namespace, with trailing '\\'
    151      * @param array|string $paths   The PSR-4 base directories
    152      * @param bool         $prepend Whether to prepend the directories
     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
    153228     *
    154229     * @throws \InvalidArgumentException
     230     *
     231     * @return void
    155232     */
    156233    public function addPsr4($prefix, $paths, $prepend = false)
     
    196273     * replacing any others previously set for this prefix.
    197274     *
    198      * @param string       $prefix The prefix
    199      * @param array|string $paths  The PSR-0 base directories
     275     * @param string          $prefix The prefix
     276     * @param string[]|string $paths  The PSR-0 base directories
     277     *
     278     * @return void
    200279     */
    201280    public function set($prefix, $paths)
     
    212291     * replacing any others previously set for this namespace.
    213292     *
    214      * @param string       $prefix The prefix/namespace, with trailing '\\'
    215      * @param array|string $paths  The PSR-4 base directories
     293     * @param string          $prefix The prefix/namespace, with trailing '\\'
     294     * @param string[]|string $paths  The PSR-4 base directories
    216295     *
    217296     * @throws \InvalidArgumentException
     297     *
     298     * @return void
    218299     */
    219300    public function setPsr4($prefix, $paths)
     
    235316     *
    236317     * @param bool $useIncludePath
     318     *
     319     * @return void
    237320     */
    238321    public function setUseIncludePath($useIncludePath)
     
    257340     *
    258341     * @param bool $classMapAuthoritative
     342     *
     343     * @return void
    259344     */
    260345    public function setClassMapAuthoritative($classMapAuthoritative)
     
    277362     *
    278363     * @param string|null $apcuPrefix
     364     *
     365     * @return void
    279366     */
    280367    public function setApcuPrefix($apcuPrefix)
     
    297384     *
    298385     * @param bool $prepend Whether to prepend the autoloader or not
     386     *
     387     * @return void
    299388     */
    300389    public function register($prepend = false)
    301390    {
    302391        spl_autoload_register(array($this, 'loadClass'), true, $prepend);
     392
     393        if (null === $this->vendorDir) {
     394            return;
     395        }
     396
     397        if ($prepend) {
     398            self::$registeredLoaders = array($this->vendorDir => $this) + self::$registeredLoaders;
     399        } else {
     400            unset(self::$registeredLoaders[$this->vendorDir]);
     401            self::$registeredLoaders[$this->vendorDir] = $this;
     402        }
    303403    }
    304404
    305405    /**
    306406     * Unregisters this instance as an autoloader.
     407     *
     408     * @return void
    307409     */
    308410    public function unregister()
    309411    {
    310412        spl_autoload_unregister(array($this, 'loadClass'));
     413
     414        if (null !== $this->vendorDir) {
     415            unset(self::$registeredLoaders[$this->vendorDir]);
     416        }
    311417    }
    312418
     
    315421     *
    316422     * @param  string    $class The name of the class
    317      * @return bool|null True if loaded, null otherwise
     423     * @return true|null True if loaded, null otherwise
    318424     */
    319425    public function loadClass($class)
     
    324430            return true;
    325431        }
     432
     433        return null;
    326434    }
    327435
     
    368476    }
    369477
     478    /**
     479     * Returns the currently registered loaders indexed by their corresponding vendor directories.
     480     *
     481     * @return self[]
     482     */
     483    public static function getRegisteredLoaders()
     484    {
     485        return self::$registeredLoaders;
     486    }
     487
     488    /**
     489     * @param  string       $class
     490     * @param  string       $ext
     491     * @return string|false
     492     */
    370493    private function findFileWithExtension($class, $ext)
    371494    {
     
    439562 *
    440563 * Prevents access to $this/self from included files.
     564 *
     565 * @param  string $file
     566 * @return void
     567 * @private
    441568 */
    442569function includeFile($file)
  • simple-csv-exporter/trunk/vendor/composer/InstalledVersions.php

    r2446249 r2761526  
    11<?php
    22
    3 
    4 
    5 
    6 
    7 
    8 
    9 
    10 
    11 
     3/*
     4 * This file is part of Composer.
     5 *
     6 * (c) Nils Adermann <naderman@naderman.de>
     7 *     Jordi Boggiano <j.boggiano@seld.be>
     8 *
     9 * For the full copyright and license information, please view the LICENSE
     10 * file that was distributed with this source code.
     11 */
    1212
    1313namespace Composer;
    1414
     15use Composer\Autoload\ClassLoader;
    1516use Composer\Semver\VersionParser;
    1617
    17 
    18 
    19 
    20 
    21 
     18/**
     19 * This class is copied in every Composer installed project and available to all
     20 *
     21 * See also https://getcomposer.org/doc/07-runtime.md#installed-versions
     22 *
     23 * To require its presence, you can require `composer-runtime-api ^2.0`
     24 *
     25 * @final
     26 */
    2227class InstalledVersions
    2328{
    24 private static $installed = array (
    25   'root' =>
    26   array (
    27     'pretty_version' => '2.0.0',
    28     'version' => '2.0.0.0',
    29     'aliases' =>
    30     array (
    31     ),
    32     'reference' => '6ee2453933381678ccb5d36652341799baa55521',
    33     'name' => 'hamworks/simple-csv-exporter',
    34   ),
    35   'versions' =>
    36   array (
    37     'hamworks/simple-csv-exporter' =>
    38     array (
    39       'pretty_version' => '2.0.0',
    40       'version' => '2.0.0.0',
    41       'aliases' =>
    42       array (
    43       ),
    44       'reference' => '6ee2453933381678ccb5d36652341799baa55521',
    45     ),
    46     'opis/closure' =>
    47     array (
    48       'pretty_version' => '3.6.1',
    49       'version' => '3.6.1.0',
    50       'aliases' =>
    51       array (
    52       ),
    53       'reference' => '943b5d70cc5ae7483f6aff6ff43d7e34592ca0f5',
    54     ),
    55     'php-di/invoker' =>
    56     array (
    57       'pretty_version' => '2.0.0',
    58       'version' => '2.0.0.0',
    59       'aliases' =>
    60       array (
    61       ),
    62       'reference' => '540c27c86f663e20fe39a24cd72fa76cdb21d41a',
    63     ),
    64     'php-di/php-di' =>
    65     array (
    66       'pretty_version' => '6.3.0',
    67       'version' => '6.3.0.0',
    68       'aliases' =>
    69       array (
    70       ),
    71       'reference' => '955cacea6b0beaba07e8c11b8367f5b3d5abe89f',
    72     ),
    73     'php-di/phpdoc-reader' =>
    74     array (
    75       'pretty_version' => '2.2.1',
    76       'version' => '2.2.1.0',
    77       'aliases' =>
    78       array (
    79       ),
    80       'reference' => '66daff34cbd2627740ffec9469ffbac9f8c8185c',
    81     ),
    82     'psr/container' =>
    83     array (
    84       'pretty_version' => '1.0.0',
    85       'version' => '1.0.0.0',
    86       'aliases' =>
    87       array (
    88       ),
    89       'reference' => 'b7ce3b176482dbbc1245ebf52b181af44c2cf55f',
    90     ),
    91     'psr/container-implementation' =>
    92     array (
    93       'provided' =>
    94       array (
    95         0 => '^1.0',
    96       ),
    97     ),
    98   ),
    99 );
    100 
    101 
    102 
    103 
    104 
    105 
    106 
    107 public static function getInstalledPackages()
    108 {
    109 return array_keys(self::$installed['versions']);
     29    /**
     30     * @var mixed[]|null
     31     * @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
     32     */
     33    private static $installed;
     34
     35    /**
     36     * @var bool|null
     37     */
     38    private static $canGetVendors;
     39
     40    /**
     41     * @var array[]
     42     * @psalm-var array<string, 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[]}>}>
     43     */
     44    private static $installedByVendor = array();
     45
     46    /**
     47     * Returns a list of all package names which are present, either by being installed, replaced or provided
     48     *
     49     * @return string[]
     50     * @psalm-return list<string>
     51     */
     52    public static function getInstalledPackages()
     53    {
     54        $packages = array();
     55        foreach (self::getInstalled() as $installed) {
     56            $packages[] = array_keys($installed['versions']);
     57        }
     58
     59        if (1 === \count($packages)) {
     60            return $packages[0];
     61        }
     62
     63        return array_keys(array_flip(\call_user_func_array('array_merge', $packages)));
     64    }
     65
     66    /**
     67     * Returns a list of all package names with a specific type e.g. 'library'
     68     *
     69     * @param  string   $type
     70     * @return string[]
     71     * @psalm-return list<string>
     72     */
     73    public static function getInstalledPackagesByType($type)
     74    {
     75        $packagesByType = array();
     76
     77        foreach (self::getInstalled() as $installed) {
     78            foreach ($installed['versions'] as $name => $package) {
     79                if (isset($package['type']) && $package['type'] === $type) {
     80                    $packagesByType[] = $name;
     81                }
     82            }
     83        }
     84
     85        return $packagesByType;
     86    }
     87
     88    /**
     89     * Checks whether the given package is installed
     90     *
     91     * This also returns true if the package name is provided or replaced by another package
     92     *
     93     * @param  string $packageName
     94     * @param  bool   $includeDevRequirements
     95     * @return bool
     96     */
     97    public static function isInstalled($packageName, $includeDevRequirements = true)
     98    {
     99        foreach (self::getInstalled() as $installed) {
     100            if (isset($installed['versions'][$packageName])) {
     101                return $includeDevRequirements || empty($installed['versions'][$packageName]['dev_requirement']);
     102            }
     103        }
     104
     105        return false;
     106    }
     107
     108    /**
     109     * Checks whether the given package satisfies a version constraint
     110     *
     111     * e.g. If you want to know whether version 2.3+ of package foo/bar is installed, you would call:
     112     *
     113     *   Composer\InstalledVersions::satisfies(new VersionParser, 'foo/bar', '^2.3')
     114     *
     115     * @param  VersionParser $parser      Install composer/semver to have access to this class and functionality
     116     * @param  string        $packageName
     117     * @param  string|null   $constraint  A version constraint to check for, if you pass one you have to make sure composer/semver is required by your package
     118     * @return bool
     119     */
     120    public static function satisfies(VersionParser $parser, $packageName, $constraint)
     121    {
     122        $constraint = $parser->parseConstraints($constraint);
     123        $provided = $parser->parseConstraints(self::getVersionRanges($packageName));
     124
     125        return $provided->matches($constraint);
     126    }
     127
     128    /**
     129     * Returns a version constraint representing all the range(s) which are installed for a given package
     130     *
     131     * It is easier to use this via isInstalled() with the $constraint argument if you need to check
     132     * whether a given version of a package is installed, and not just whether it exists
     133     *
     134     * @param  string $packageName
     135     * @return string Version constraint usable with composer/semver
     136     */
     137    public static function getVersionRanges($packageName)
     138    {
     139        foreach (self::getInstalled() as $installed) {
     140            if (!isset($installed['versions'][$packageName])) {
     141                continue;
     142            }
     143
     144            $ranges = array();
     145            if (isset($installed['versions'][$packageName]['pretty_version'])) {
     146                $ranges[] = $installed['versions'][$packageName]['pretty_version'];
     147            }
     148            if (array_key_exists('aliases', $installed['versions'][$packageName])) {
     149                $ranges = array_merge($ranges, $installed['versions'][$packageName]['aliases']);
     150            }
     151            if (array_key_exists('replaced', $installed['versions'][$packageName])) {
     152                $ranges = array_merge($ranges, $installed['versions'][$packageName]['replaced']);
     153            }
     154            if (array_key_exists('provided', $installed['versions'][$packageName])) {
     155                $ranges = array_merge($ranges, $installed['versions'][$packageName]['provided']);
     156            }
     157
     158            return implode(' || ', $ranges);
     159        }
     160
     161        throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
     162    }
     163
     164    /**
     165     * @param  string      $packageName
     166     * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as version, use satisfies or getVersionRanges if you need to know if a given version is present
     167     */
     168    public static function getVersion($packageName)
     169    {
     170        foreach (self::getInstalled() as $installed) {
     171            if (!isset($installed['versions'][$packageName])) {
     172                continue;
     173            }
     174
     175            if (!isset($installed['versions'][$packageName]['version'])) {
     176                return null;
     177            }
     178
     179            return $installed['versions'][$packageName]['version'];
     180        }
     181
     182        throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
     183    }
     184
     185    /**
     186     * @param  string      $packageName
     187     * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as version, use satisfies or getVersionRanges if you need to know if a given version is present
     188     */
     189    public static function getPrettyVersion($packageName)
     190    {
     191        foreach (self::getInstalled() as $installed) {
     192            if (!isset($installed['versions'][$packageName])) {
     193                continue;
     194            }
     195
     196            if (!isset($installed['versions'][$packageName]['pretty_version'])) {
     197                return null;
     198            }
     199
     200            return $installed['versions'][$packageName]['pretty_version'];
     201        }
     202
     203        throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
     204    }
     205
     206    /**
     207     * @param  string      $packageName
     208     * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as reference
     209     */
     210    public static function getReference($packageName)
     211    {
     212        foreach (self::getInstalled() as $installed) {
     213            if (!isset($installed['versions'][$packageName])) {
     214                continue;
     215            }
     216
     217            if (!isset($installed['versions'][$packageName]['reference'])) {
     218                return null;
     219            }
     220
     221            return $installed['versions'][$packageName]['reference'];
     222        }
     223
     224        throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
     225    }
     226
     227    /**
     228     * @param  string      $packageName
     229     * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as install path. Packages of type metapackages also have a null install path.
     230     */
     231    public static function getInstallPath($packageName)
     232    {
     233        foreach (self::getInstalled() as $installed) {
     234            if (!isset($installed['versions'][$packageName])) {
     235                continue;
     236            }
     237
     238            return isset($installed['versions'][$packageName]['install_path']) ? $installed['versions'][$packageName]['install_path'] : null;
     239        }
     240
     241        throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
     242    }
     243
     244    /**
     245     * @return array
     246     * @psalm-return array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}
     247     */
     248    public static function getRootPackage()
     249    {
     250        $installed = self::getInstalled();
     251
     252        return $installed[0]['root'];
     253    }
     254
     255    /**
     256     * Returns the raw installed.php data for custom implementations
     257     *
     258     * @deprecated Use getAllRawData() instead which returns all datasets for all autoloaders present in the process. getRawData only returns the first dataset loaded, which may not be what you expect.
     259     * @return array[]
     260     * @psalm-return 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[]}>}
     261     */
     262    public static function getRawData()
     263    {
     264        @trigger_error('getRawData only returns the first dataset loaded, which may not be what you expect. Use getAllRawData() instead which returns all datasets for all autoloaders present in the process.', E_USER_DEPRECATED);
     265
     266        if (null === self::$installed) {
     267            // only require the installed.php file if this file is loaded from its dumped location,
     268            // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937
     269            if (substr(__DIR__, -8, 1) !== 'C') {
     270                self::$installed = include __DIR__ . '/installed.php';
     271            } else {
     272                self::$installed = array();
     273            }
     274        }
     275
     276        return self::$installed;
     277    }
     278
     279    /**
     280     * Returns the raw data of all installed.php which are currently loaded for custom implementations
     281     *
     282     * @return array[]
     283     * @psalm-return list<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[]}>}>
     284     */
     285    public static function getAllRawData()
     286    {
     287        return self::getInstalled();
     288    }
     289
     290    /**
     291     * Lets you reload the static array from another file
     292     *
     293     * This is only useful for complex integrations in which a project needs to use
     294     * this class but then also needs to execute another project's autoloader in process,
     295     * and wants to ensure both projects have access to their version of installed.php.
     296     *
     297     * A typical case would be PHPUnit, where it would need to make sure it reads all
     298     * the data it needs from this class, then call reload() with
     299     * `require $CWD/vendor/composer/installed.php` (or similar) as input to make sure
     300     * the project in which it runs can then also use this class safely, without
     301     * interference between PHPUnit's dependencies and the project's dependencies.
     302     *
     303     * @param  array[] $data A vendor/composer/installed.php data set
     304     * @return void
     305     *
     306     * @psalm-param 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[]}>} $data
     307     */
     308    public static function reload($data)
     309    {
     310        self::$installed = $data;
     311        self::$installedByVendor = array();
     312    }
     313
     314    /**
     315     * @return array[]
     316     * @psalm-return list<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[]}>}>
     317     */
     318    private static function getInstalled()
     319    {
     320        if (null === self::$canGetVendors) {
     321            self::$canGetVendors = method_exists('Composer\Autoload\ClassLoader', 'getRegisteredLoaders');
     322        }
     323
     324        $installed = array();
     325
     326        if (self::$canGetVendors) {
     327            foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) {
     328                if (isset(self::$installedByVendor[$vendorDir])) {
     329                    $installed[] = self::$installedByVendor[$vendorDir];
     330                } 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];
     334                    }
     335                }
     336            }
     337        }
     338
     339        if (null === self::$installed) {
     340            // only require the installed.php file if this file is loaded from its dumped location,
     341            // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937
     342            if (substr(__DIR__, -8, 1) !== 'C') {
     343                self::$installed = require __DIR__ . '/installed.php';
     344            } else {
     345                self::$installed = array();
     346            }
     347        }
     348        $installed[] = self::$installed;
     349
     350        return $installed;
     351    }
    110352}
    111 
    112 
    113 
    114 
    115 
    116 
    117 
    118 
    119 
    120 public static function isInstalled($packageName)
    121 {
    122 return isset(self::$installed['versions'][$packageName]);
    123 }
    124 
    125 
    126 
    127 
    128 
    129 
    130 
    131 
    132 
    133 
    134 
    135 
    136 
    137 
    138 public static function satisfies(VersionParser $parser, $packageName, $constraint)
    139 {
    140 $constraint = $parser->parseConstraints($constraint);
    141 $provided = $parser->parseConstraints(self::getVersionRanges($packageName));
    142 
    143 return $provided->matches($constraint);
    144 }
    145 
    146 
    147 
    148 
    149 
    150 
    151 
    152 
    153 
    154 
    155 public static function getVersionRanges($packageName)
    156 {
    157 if (!isset(self::$installed['versions'][$packageName])) {
    158 throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
    159 }
    160 
    161 $ranges = array();
    162 if (isset(self::$installed['versions'][$packageName]['pretty_version'])) {
    163 $ranges[] = self::$installed['versions'][$packageName]['pretty_version'];
    164 }
    165 if (array_key_exists('aliases', self::$installed['versions'][$packageName])) {
    166 $ranges = array_merge($ranges, self::$installed['versions'][$packageName]['aliases']);
    167 }
    168 if (array_key_exists('replaced', self::$installed['versions'][$packageName])) {
    169 $ranges = array_merge($ranges, self::$installed['versions'][$packageName]['replaced']);
    170 }
    171 if (array_key_exists('provided', self::$installed['versions'][$packageName])) {
    172 $ranges = array_merge($ranges, self::$installed['versions'][$packageName]['provided']);
    173 }
    174 
    175 return implode(' || ', $ranges);
    176 }
    177 
    178 
    179 
    180 
    181 
    182 public static function getVersion($packageName)
    183 {
    184 if (!isset(self::$installed['versions'][$packageName])) {
    185 throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
    186 }
    187 
    188 if (!isset(self::$installed['versions'][$packageName]['version'])) {
    189 return null;
    190 }
    191 
    192 return self::$installed['versions'][$packageName]['version'];
    193 }
    194 
    195 
    196 
    197 
    198 
    199 public static function getPrettyVersion($packageName)
    200 {
    201 if (!isset(self::$installed['versions'][$packageName])) {
    202 throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
    203 }
    204 
    205 if (!isset(self::$installed['versions'][$packageName]['pretty_version'])) {
    206 return null;
    207 }
    208 
    209 return self::$installed['versions'][$packageName]['pretty_version'];
    210 }
    211 
    212 
    213 
    214 
    215 
    216 public static function getReference($packageName)
    217 {
    218 if (!isset(self::$installed['versions'][$packageName])) {
    219 throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
    220 }
    221 
    222 if (!isset(self::$installed['versions'][$packageName]['reference'])) {
    223 return null;
    224 }
    225 
    226 return self::$installed['versions'][$packageName]['reference'];
    227 }
    228 
    229 
    230 
    231 
    232 
    233 public static function getRootPackage()
    234 {
    235 return self::$installed['root'];
    236 }
    237 
    238 
    239 
    240 
    241 
    242 
    243 
    244 public static function getRawData()
    245 {
    246 return self::$installed;
    247 }
    248 
    249 
    250 
    251 
    252 
    253 
    254 
    255 
    256 
    257 
    258 
    259 
    260 
    261 
    262 
    263 
    264 
    265 
    266 
    267 public static function reload($data)
    268 {
    269 self::$installed = $data;
    270 }
    271 }
  • simple-csv-exporter/trunk/vendor/composer/autoload_classmap.php

    r2446249 r2761526  
    33// autoload_classmap.php @generated by Composer
    44
    5 $vendorDir = dirname(dirname(__FILE__));
     5$vendorDir = dirname(__DIR__);
    66$baseDir = dirname($vendorDir);
    77
  • simple-csv-exporter/trunk/vendor/composer/autoload_files.php

    r2446249 r2761526  
    33// autoload_files.php @generated by Composer
    44
    5 $vendorDir = dirname(dirname(__FILE__));
     5$vendorDir = dirname(__DIR__);
    66$baseDir = dirname($vendorDir);
    77
  • simple-csv-exporter/trunk/vendor/composer/autoload_namespaces.php

    r2437085 r2761526  
    33// autoload_namespaces.php @generated by Composer
    44
    5 $vendorDir = dirname(dirname(__FILE__));
     5$vendorDir = dirname(__DIR__);
    66$baseDir = dirname($vendorDir);
    77
  • simple-csv-exporter/trunk/vendor/composer/autoload_psr4.php

    r2446249 r2761526  
    33// autoload_psr4.php @generated by Composer
    44
    5 $vendorDir = dirname(dirname(__FILE__));
     5$vendorDir = dirname(__DIR__);
    66$baseDir = dirname($vendorDir);
    77
  • simple-csv-exporter/trunk/vendor/composer/autoload_real.php

    r2446249 r2761526  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit576229bd9376ebde99435e9d7f3def84
     5class ComposerAutoloaderInit2e765ad8ae0dfed5be0e9b093247e6db
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInit576229bd9376ebde99435e9d7f3def84', 'loadClassLoader'), true, true);
    28         self::$loader = $loader = new \Composer\Autoload\ClassLoader();
    29         spl_autoload_unregister(array('ComposerAutoloaderInit576229bd9376ebde99435e9d7f3def84', 'loadClassLoader'));
     27        spl_autoload_register(array('ComposerAutoloaderInit2e765ad8ae0dfed5be0e9b093247e6db', 'loadClassLoader'), true, true);
     28        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
     29        spl_autoload_unregister(array('ComposerAutoloaderInit2e765ad8ae0dfed5be0e9b093247e6db', 'loadClassLoader'));
    3030
    31         $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
    32         if ($useStaticLoader) {
    33             require __DIR__ . '/autoload_static.php';
    34 
    35             call_user_func(\Composer\Autoload\ComposerStaticInit576229bd9376ebde99435e9d7f3def84::getInitializer($loader));
    36         } else {
    37             $map = require __DIR__ . '/autoload_namespaces.php';
    38             foreach ($map as $namespace => $path) {
    39                 $loader->set($namespace, $path);
    40             }
    41 
    42             $map = require __DIR__ . '/autoload_psr4.php';
    43             foreach ($map as $namespace => $path) {
    44                 $loader->setPsr4($namespace, $path);
    45             }
    46 
    47             $classMap = require __DIR__ . '/autoload_classmap.php';
    48             if ($classMap) {
    49                 $loader->addClassMap($classMap);
    50             }
    51         }
     31        require __DIR__ . '/autoload_static.php';
     32        call_user_func(\Composer\Autoload\ComposerStaticInit2e765ad8ae0dfed5be0e9b093247e6db::getInitializer($loader));
    5233
    5334        $loader->register(true);
    5435
    55         if ($useStaticLoader) {
    56             $includeFiles = Composer\Autoload\ComposerStaticInit576229bd9376ebde99435e9d7f3def84::$files;
    57         } else {
    58             $includeFiles = require __DIR__ . '/autoload_files.php';
    59         }
     36        $includeFiles = \Composer\Autoload\ComposerStaticInit2e765ad8ae0dfed5be0e9b093247e6db::$files;
    6037        foreach ($includeFiles as $fileIdentifier => $file) {
    61             composerRequire576229bd9376ebde99435e9d7f3def84($fileIdentifier, $file);
     38            composerRequire2e765ad8ae0dfed5be0e9b093247e6db($fileIdentifier, $file);
    6239        }
    6340
     
    6643}
    6744
    68 function composerRequire576229bd9376ebde99435e9d7f3def84($fileIdentifier, $file)
     45/**
     46 * @param string $fileIdentifier
     47 * @param string $file
     48 * @return void
     49 */
     50function composerRequire2e765ad8ae0dfed5be0e9b093247e6db($fileIdentifier, $file)
    6951{
    7052    if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
     53        $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
     54
    7155        require $file;
    72 
    73         $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
    7456    }
    7557}
  • simple-csv-exporter/trunk/vendor/composer/autoload_static.php

    r2446249 r2761526  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit576229bd9376ebde99435e9d7f3def84
     7class ComposerStaticInit2e765ad8ae0dfed5be0e9b093247e6db
    88{
    99    public static $files = array (
     
    176176    {
    177177        return \Closure::bind(function () use ($loader) {
    178             $loader->prefixLengthsPsr4 = ComposerStaticInit576229bd9376ebde99435e9d7f3def84::$prefixLengthsPsr4;
    179             $loader->prefixDirsPsr4 = ComposerStaticInit576229bd9376ebde99435e9d7f3def84::$prefixDirsPsr4;
    180             $loader->classMap = ComposerStaticInit576229bd9376ebde99435e9d7f3def84::$classMap;
     178            $loader->prefixLengthsPsr4 = ComposerStaticInit2e765ad8ae0dfed5be0e9b093247e6db::$prefixLengthsPsr4;
     179            $loader->prefixDirsPsr4 = ComposerStaticInit2e765ad8ae0dfed5be0e9b093247e6db::$prefixDirsPsr4;
     180            $loader->classMap = ComposerStaticInit2e765ad8ae0dfed5be0e9b093247e6db::$classMap;
    181181
    182182        }, null, ClassLoader::class);
  • simple-csv-exporter/trunk/vendor/composer/installed.json

    r2446249 r2761526  
    33        {
    44            "name": "opis/closure",
    5             "version": "3.6.1",
    6             "version_normalized": "3.6.1.0",
     5            "version": "3.6.3",
     6            "version_normalized": "3.6.3.0",
    77            "source": {
    88                "type": "git",
    99                "url": "https://github.com/opis/closure.git",
    10                 "reference": "943b5d70cc5ae7483f6aff6ff43d7e34592ca0f5"
    11             },
    12             "dist": {
    13                 "type": "zip",
    14                 "url": "https://api.github.com/repos/opis/closure/zipball/943b5d70cc5ae7483f6aff6ff43d7e34592ca0f5",
    15                 "reference": "943b5d70cc5ae7483f6aff6ff43d7e34592ca0f5",
     10                "reference": "3d81e4309d2a927abbe66df935f4bb60082805ad"
     11            },
     12            "dist": {
     13                "type": "zip",
     14                "url": "https://api.github.com/repos/opis/closure/zipball/3d81e4309d2a927abbe66df935f4bb60082805ad",
     15                "reference": "3d81e4309d2a927abbe66df935f4bb60082805ad",
    1616                "shasum": ""
    1717            },
     
    2323                "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.0"
    2424            },
    25             "time": "2020-11-07T02:01:34+00:00",
     25            "time": "2022-01-27T09:35:39+00:00",
    2626            "type": "library",
    2727            "extra": {
     
    3232            "installation-source": "dist",
    3333            "autoload": {
    34                 "psr-4": {
    35                     "Opis\\Closure\\": "src/"
    36                 },
    3734                "files": [
    3835                    "functions.php"
    39                 ]
     36                ],
     37                "psr-4": {
     38                    "Opis\\Closure\\": "src/"
     39                }
    4040            },
    4141            "notification-url": "https://packagist.org/downloads/",
     
    6565            "support": {
    6666                "issues": "https://github.com/opis/closure/issues",
    67                 "source": "https://github.com/opis/closure/tree/3.6.1"
     67                "source": "https://github.com/opis/closure/tree/3.6.3"
    6868            },
    6969            "install-path": "../opis/closure"
     
    121121        {
    122122            "name": "php-di/php-di",
    123             "version": "6.3.0",
    124             "version_normalized": "6.3.0.0",
     123            "version": "6.3.5",
     124            "version_normalized": "6.3.5.0",
    125125            "source": {
    126126                "type": "git",
    127127                "url": "https://github.com/PHP-DI/PHP-DI.git",
    128                 "reference": "955cacea6b0beaba07e8c11b8367f5b3d5abe89f"
    129             },
    130             "dist": {
    131                 "type": "zip",
    132                 "url": "https://api.github.com/repos/PHP-DI/PHP-DI/zipball/955cacea6b0beaba07e8c11b8367f5b3d5abe89f",
    133                 "reference": "955cacea6b0beaba07e8c11b8367f5b3d5abe89f",
     128                "reference": "b8126d066ce144765300ee0ab040c1ed6c9ef588"
     129            },
     130            "dist": {
     131                "type": "zip",
     132                "url": "https://api.github.com/repos/PHP-DI/PHP-DI/zipball/b8126d066ce144765300ee0ab040c1ed6c9ef588",
     133                "reference": "b8126d066ce144765300ee0ab040c1ed6c9ef588",
    134134                "shasum": ""
    135135            },
     
    148148                "friendsofphp/php-cs-fixer": "^2.4",
    149149                "mnapoli/phpunit-easymock": "^1.2",
    150                 "ocramius/proxy-manager": "~2.0.2",
     150                "ocramius/proxy-manager": "^2.0.2",
    151151                "phpstan/phpstan": "^0.12",
    152152                "phpunit/phpunit": "^8.5|^9.0"
     
    156156                "ocramius/proxy-manager": "Install it if you want to use lazy injection (version ~2.0)"
    157157            },
    158             "time": "2020-10-12T14:39:15+00:00",
    159             "type": "library",
    160             "installation-source": "dist",
    161             "autoload": {
    162                 "psr-4": {
    163                     "DI\\": "src/"
    164                 },
     158            "time": "2021-09-02T09:49:58+00:00",
     159            "type": "library",
     160            "installation-source": "dist",
     161            "autoload": {
    165162                "files": [
    166163                    "src/functions.php"
    167                 ]
     164                ],
     165                "psr-4": {
     166                    "DI\\": "src/"
     167                }
    168168            },
    169169            "notification-url": "https://packagist.org/downloads/",
     
    184184            "support": {
    185185                "issues": "https://github.com/PHP-DI/PHP-DI/issues",
    186                 "source": "https://github.com/PHP-DI/PHP-DI/tree/6.3.0"
     186                "source": "https://github.com/PHP-DI/PHP-DI/tree/6.3.5"
    187187            },
    188188            "funding": [
     
    245245        {
    246246            "name": "psr/container",
    247             "version": "1.0.0",
    248             "version_normalized": "1.0.0.0",
     247            "version": "1.1.1",
     248            "version_normalized": "1.1.1.0",
    249249            "source": {
    250250                "type": "git",
    251251                "url": "https://github.com/php-fig/container.git",
    252                 "reference": "b7ce3b176482dbbc1245ebf52b181af44c2cf55f"
    253             },
    254             "dist": {
    255                 "type": "zip",
    256                 "url": "https://api.github.com/repos/php-fig/container/zipball/b7ce3b176482dbbc1245ebf52b181af44c2cf55f",
    257                 "reference": "b7ce3b176482dbbc1245ebf52b181af44c2cf55f",
    258                 "shasum": ""
    259             },
    260             "require": {
    261                 "php": ">=5.3.0"
    262             },
    263             "time": "2017-02-14T16:28:37+00:00",
    264             "type": "library",
    265             "extra": {
    266                 "branch-alias": {
    267                     "dev-master": "1.0.x-dev"
    268                 }
    269             },
     252                "reference": "8622567409010282b7aeebe4bb841fe98b58dcaf"
     253            },
     254            "dist": {
     255                "type": "zip",
     256                "url": "https://api.github.com/repos/php-fig/container/zipball/8622567409010282b7aeebe4bb841fe98b58dcaf",
     257                "reference": "8622567409010282b7aeebe4bb841fe98b58dcaf",
     258                "shasum": ""
     259            },
     260            "require": {
     261                "php": ">=7.2.0"
     262            },
     263            "time": "2021-03-05T17:36:06+00:00",
     264            "type": "library",
    270265            "installation-source": "dist",
    271266            "autoload": {
     
    281276                {
    282277                    "name": "PHP-FIG",
    283                     "homepage": "http://www.php-fig.org/"
     278                    "homepage": "https://www.php-fig.org/"
    284279                }
    285280            ],
     
    295290            "support": {
    296291                "issues": "https://github.com/php-fig/container/issues",
    297                 "source": "https://github.com/php-fig/container/tree/master"
     292                "source": "https://github.com/php-fig/container/tree/1.1.1"
    298293            },
    299294            "install-path": "../psr/container"
  • simple-csv-exporter/trunk/vendor/composer/installed.php

    r2446249 r2761526  
    1 <?php return array (
    2   'root' =>
    3   array (
    4     'pretty_version' => '2.0.0',
    5     'version' => '2.0.0.0',
    6     'aliases' =>
    7     array (
     1<?php return array(
     2    'root' => array(
     3        'name' => 'hamworks/simple-csv-exporter',
     4        'pretty_version' => '2.0.1',
     5        'version' => '2.0.1.0',
     6        'reference' => '1d0d4fca93369395531eb749924260d960ae3113',
     7        'type' => 'library',
     8        'install_path' => __DIR__ . '/../../',
     9        'aliases' => array(),
     10        'dev' => false,
    811    ),
    9     'reference' => '6ee2453933381678ccb5d36652341799baa55521',
    10     'name' => 'hamworks/simple-csv-exporter',
    11   ),
    12   'versions' =>
    13   array (
    14     'hamworks/simple-csv-exporter' =>
    15     array (
    16       'pretty_version' => '2.0.0',
    17       'version' => '2.0.0.0',
    18       'aliases' =>
    19       array (
    20       ),
    21       'reference' => '6ee2453933381678ccb5d36652341799baa55521',
     12    'versions' => array(
     13        'hamworks/simple-csv-exporter' => array(
     14            'pretty_version' => '2.0.1',
     15            'version' => '2.0.1.0',
     16            'reference' => '1d0d4fca93369395531eb749924260d960ae3113',
     17            'type' => 'library',
     18            'install_path' => __DIR__ . '/../../',
     19            'aliases' => array(),
     20            'dev_requirement' => false,
     21        ),
     22        'opis/closure' => array(
     23            'pretty_version' => '3.6.3',
     24            'version' => '3.6.3.0',
     25            'reference' => '3d81e4309d2a927abbe66df935f4bb60082805ad',
     26            'type' => 'library',
     27            'install_path' => __DIR__ . '/../opis/closure',
     28            'aliases' => array(),
     29            'dev_requirement' => false,
     30        ),
     31        'php-di/invoker' => array(
     32            'pretty_version' => '2.0.0',
     33            'version' => '2.0.0.0',
     34            'reference' => '540c27c86f663e20fe39a24cd72fa76cdb21d41a',
     35            'type' => 'library',
     36            'install_path' => __DIR__ . '/../php-di/invoker',
     37            'aliases' => array(),
     38            'dev_requirement' => false,
     39        ),
     40        'php-di/php-di' => array(
     41            'pretty_version' => '6.3.5',
     42            'version' => '6.3.5.0',
     43            'reference' => 'b8126d066ce144765300ee0ab040c1ed6c9ef588',
     44            'type' => 'library',
     45            'install_path' => __DIR__ . '/../php-di/php-di',
     46            'aliases' => array(),
     47            'dev_requirement' => false,
     48        ),
     49        'php-di/phpdoc-reader' => array(
     50            'pretty_version' => '2.2.1',
     51            'version' => '2.2.1.0',
     52            'reference' => '66daff34cbd2627740ffec9469ffbac9f8c8185c',
     53            'type' => 'library',
     54            'install_path' => __DIR__ . '/../php-di/phpdoc-reader',
     55            'aliases' => array(),
     56            'dev_requirement' => false,
     57        ),
     58        'psr/container' => array(
     59            'pretty_version' => '1.1.1',
     60            'version' => '1.1.1.0',
     61            'reference' => '8622567409010282b7aeebe4bb841fe98b58dcaf',
     62            'type' => 'library',
     63            'install_path' => __DIR__ . '/../psr/container',
     64            'aliases' => array(),
     65            'dev_requirement' => false,
     66        ),
     67        'psr/container-implementation' => array(
     68            'dev_requirement' => false,
     69            'provided' => array(
     70                0 => '^1.0',
     71            ),
     72        ),
    2273    ),
    23     'opis/closure' =>
    24     array (
    25       'pretty_version' => '3.6.1',
    26       'version' => '3.6.1.0',
    27       'aliases' =>
    28       array (
    29       ),
    30       'reference' => '943b5d70cc5ae7483f6aff6ff43d7e34592ca0f5',
    31     ),
    32     'php-di/invoker' =>
    33     array (
    34       'pretty_version' => '2.0.0',
    35       'version' => '2.0.0.0',
    36       'aliases' =>
    37       array (
    38       ),
    39       'reference' => '540c27c86f663e20fe39a24cd72fa76cdb21d41a',
    40     ),
    41     'php-di/php-di' =>
    42     array (
    43       'pretty_version' => '6.3.0',
    44       'version' => '6.3.0.0',
    45       'aliases' =>
    46       array (
    47       ),
    48       'reference' => '955cacea6b0beaba07e8c11b8367f5b3d5abe89f',
    49     ),
    50     'php-di/phpdoc-reader' =>
    51     array (
    52       'pretty_version' => '2.2.1',
    53       'version' => '2.2.1.0',
    54       'aliases' =>
    55       array (
    56       ),
    57       'reference' => '66daff34cbd2627740ffec9469ffbac9f8c8185c',
    58     ),
    59     'psr/container' =>
    60     array (
    61       'pretty_version' => '1.0.0',
    62       'version' => '1.0.0.0',
    63       'aliases' =>
    64       array (
    65       ),
    66       'reference' => 'b7ce3b176482dbbc1245ebf52b181af44c2cf55f',
    67     ),
    68     'psr/container-implementation' =>
    69     array (
    70       'provided' =>
    71       array (
    72         0 => '^1.0',
    73       ),
    74     ),
    75   ),
    7674);
  • simple-csv-exporter/trunk/vendor/composer/platform_check.php

    r2437085 r2761526  
    55$issues = array();
    66
    7 if (!(PHP_VERSION_ID >= 70200)) {
    8     $issues[] = 'Your Composer dependencies require a PHP version ">= 7.2.0". You are running ' . PHP_VERSION . '.';
     7if (!(PHP_VERSION_ID >= 70400)) {
     8    $issues[] = 'Your Composer dependencies require a PHP version ">= 7.4.0". You are running ' . PHP_VERSION . '.';
    99}
    1010
  • simple-csv-exporter/trunk/vendor/opis/closure/CHANGELOG.md

    r2446249 r2761526  
    11CHANGELOG
    22---------
     3
     4### v3.6.2, 2021.04.09
     5
     6- Fixed string interpolation
    37
    48### v3.6.1, 2020.11.07
  • simple-csv-exporter/trunk/vendor/opis/closure/autoload.php

    r2446249 r2761526  
    11<?php
    22/* ===========================================================================
    3  * Copyright (c) 2018-2019 Zindex Software
     3 * Copyright (c) 2018-2021 Zindex Software
    44 *
    55 * Licensed under the MIT License
    66 * =========================================================================== */
    77
    8 require_once 'functions.php';
     8require_once __DIR__ . '/functions.php';
    99
    1010spl_autoload_register(function($class){
  • simple-csv-exporter/trunk/vendor/opis/closure/functions.php

    r2446249 r2761526  
    11<?php
    22/* ===========================================================================
    3  * Copyright (c) 2018-2019 Zindex Software
     3 * Copyright (c) 2018-2021 Zindex Software
    44 *
    55 * Licensed under the MIT License
  • simple-csv-exporter/trunk/vendor/opis/closure/src/Analyzer.php

    r2446249 r2761526  
    11<?php
    22/* ===========================================================================
    3  * Copyright (c) 2018-2019 Zindex Software
     3 * Copyright (c) 2018-2021 Zindex Software
    44 *
    55 * Licensed under the MIT License
  • simple-csv-exporter/trunk/vendor/opis/closure/src/ClosureContext.php

    r2446249 r2761526  
    11<?php
    22/* ===========================================================================
    3  * Copyright (c) 2018-2019 Zindex Software
     3 * Copyright (c) 2018-2021 Zindex Software
    44 *
    55 * Licensed under the MIT License
  • simple-csv-exporter/trunk/vendor/opis/closure/src/ClosureScope.php

    r2446249 r2761526  
    11<?php
    22/* ===========================================================================
    3  * Copyright (c) 2018-2019 Zindex Software
     3 * Copyright (c) 2018-2021 Zindex Software
    44 *
    55 * Licensed under the MIT License
  • simple-csv-exporter/trunk/vendor/opis/closure/src/ClosureStream.php

    r2446249 r2761526  
    11<?php
    22/* ===========================================================================
    3  * Copyright (c) 2018-2019 Zindex Software
     3 * Copyright (c) 2018-2021 Zindex Software
    44 *
    55 * Licensed under the MIT License
  • simple-csv-exporter/trunk/vendor/opis/closure/src/ISecurityProvider.php

    r2446249 r2761526  
    11<?php
    22/* ===========================================================================
    3  * Copyright (c) 2018-2019 Zindex Software
     3 * Copyright (c) 2018-2021 Zindex Software
    44 *
    55 * Licensed under the MIT License
  • simple-csv-exporter/trunk/vendor/opis/closure/src/ReflectionClosure.php

    r2446249 r2761526  
    11<?php
    22/* ===========================================================================
    3  * Copyright (c) 2018-2019 Zindex Software
     3 * Copyright (c) 2018-2021 Zindex Software
    44 *
    55 * Licensed under the MIT License
     
    272272                        case T_DOLLAR_OPEN_CURLY_BRACES:
    273273                        case '{':
    274                             $code .= '{';
     274                            $code .= is_array($token) ? $token[1] : $token;
    275275                            $open++;
    276276                            break;
  • simple-csv-exporter/trunk/vendor/opis/closure/src/SecurityException.php

    r2446249 r2761526  
    11<?php
    22/* ===========================================================================
    3  * Copyright (c) 2018-2019 Zindex Software
     3 * Copyright (c) 2018-2021 Zindex Software
    44 *
    55 * Licensed under the MIT License
  • simple-csv-exporter/trunk/vendor/opis/closure/src/SecurityProvider.php

    r2446249 r2761526  
    11<?php
    22/* ===========================================================================
    3  * Copyright (c) 2018-2019 Zindex Software
     3 * Copyright (c) 2018-2021 Zindex Software
    44 *
    55 * Licensed under the MIT License
  • simple-csv-exporter/trunk/vendor/opis/closure/src/SelfReference.php

    r2446249 r2761526  
    11<?php
    22/* ===========================================================================
    3  * Copyright (c) 2018-2019 Zindex Software
     3 * Copyright (c) 2018-2021 Zindex Software
    44 *
    55 * Licensed under the MIT License
  • simple-csv-exporter/trunk/vendor/opis/closure/src/SerializableClosure.php

    r2446249 r2761526  
    11<?php
    22/* ===========================================================================
    3  * Copyright (c) 2018-2019 Zindex Software
     3 * Copyright (c) 2018-2021 Zindex Software
    44 *
    55 * Licensed under the MIT License
  • simple-csv-exporter/trunk/vendor/php-di/php-di/src/CompiledContainer.php

    r2446249 r2761526  
    2525abstract class CompiledContainer extends Container
    2626{
     27    /**
     28     * This const is overridden in child classes (compiled containers).
     29     * @var array
     30     */
     31    protected const METHOD_MAPPING = [];
     32
    2733    /**
    2834     * @var InvokerInterface
  • simple-csv-exporter/trunk/vendor/php-di/php-di/src/Compiler/Compiler.php

    r2446249 r2761526  
    245245                $defaultValue = $this->compileValue($definition->getDefaultValue());
    246246                $code = <<<PHP
    247         \$value = getenv($variableName);
     247        \$value = \$_ENV[$variableName] ?? \$_SERVER[$variableName] ?? getenv($variableName);
    248248        if (false !== \$value) return \$value;
    249249        if (!$isOptional) {
     
    359359    private function createCompilationDirectory(string $directory)
    360360    {
    361         if (!is_dir($directory) && !@mkdir($directory, 0777, true)) {
     361        if (!is_dir($directory) && !@mkdir($directory, 0777, true) && !is_dir($directory)) {
    362362            throw new InvalidArgumentException(sprintf('Compilation directory does not exist and cannot be created: %s.', $directory));
    363363        }
  • simple-csv-exporter/trunk/vendor/php-di/php-di/src/Container.php

    r2446249 r2761526  
    118118     * Returns an entry of the container by its name.
    119119     *
    120      * @param string $name Entry name or a class name.
     120     * @template T
     121     * @param string|class-string<T> $name Entry name or a class name.
    121122     *
    122123     * @throws DependencyException Error while resolving the entry.
    123124     * @throws NotFoundException No entry found for the given name.
    124      * @return mixed
     125     * @return mixed|T
    125126     */
    126127    public function get($name)
     
    166167     * This method makes the container behave like a factory.
    167168     *
    168      * @param string $name       Entry name or a class name.
    169      * @param array  $parameters Optional parameters to use to build the entry. Use this to force specific parameters
    170      *                           to specific values. Parameters not defined in this array will be resolved using
    171      *                           the container.
     169     * @template T
     170     * @param string|class-string<T> $name       Entry name or a class name.
     171     * @param array                  $parameters Optional parameters to use to build the entry. Use this to force
     172     *                                           specific parameters to specific values. Parameters not defined in this
     173     *                                           array will be resolved using the container.
    172174     *
    173175     * @throws InvalidArgumentException The name parameter must be of type string.
    174176     * @throws DependencyException Error while resolving the entry.
    175177     * @throws NotFoundException No entry found for the given name.
    176      * @return mixed
     178     * @return mixed|T
    177179     */
    178180    public function make($name, array $parameters = [])
     
    230232     * Inject all dependencies on an existing instance.
    231233     *
    232      * @param object $instance Object to perform injection upon
     234     * @template T
     235     * @param object|T $instance Object to perform injection upon
    233236     * @throws InvalidArgumentException
    234237     * @throws DependencyException Error while injecting dependencies
    235      * @return object $instance Returns the same instance
     238     * @return object|T $instance Returns the same instance
    236239     */
    237240    public function injectOn($instance)
  • simple-csv-exporter/trunk/vendor/php-di/php-di/src/Definition/ArrayDefinition.php

    r2446249 r2761526  
    5151    public function __toString()
    5252    {
    53         $str = '[' . PHP_EOL;
     53        $str = '[' . \PHP_EOL;
    5454
    5555        foreach ($this->values as $key => $value) {
     
    6161
    6262            if ($value instanceof Definition) {
    63                 $str .= str_replace(PHP_EOL, PHP_EOL . '    ', (string) $value);
     63                $str .= str_replace(\PHP_EOL, \PHP_EOL . '    ', (string) $value);
    6464            } else {
    6565                $str .= var_export($value, true);
    6666            }
    6767
    68             $str .= ',' . PHP_EOL;
     68            $str .= ',' . \PHP_EOL;
    6969        }
    7070
  • simple-csv-exporter/trunk/vendor/php-di/php-di/src/Definition/Dumper/ObjectDefinitionDumper.php

    r2446249 r2761526  
    3636
    3737        // Lazy
    38         $str .= PHP_EOL . '    lazy = ' . var_export($definition->isLazy(), true);
     38        $str .= \PHP_EOL . '    lazy = ' . var_export($definition->isLazy(), true);
    3939
    4040        if ($classExist) {
     
    4949        }
    5050
    51         return sprintf('Object (' . PHP_EOL . '%s' . PHP_EOL . ')', $str);
     51        return sprintf('Object (' . \PHP_EOL . '%s' . \PHP_EOL . ')', $str);
    5252    }
    5353
     
    6161            $parameters = $this->dumpMethodParameters($className, $constructorInjection);
    6262
    63             $str .= sprintf(PHP_EOL . '    __construct(' . PHP_EOL . '        %s' . PHP_EOL . '    )', $parameters);
     63            $str .= sprintf(\PHP_EOL . '    __construct(' . \PHP_EOL . '        %s' . \PHP_EOL . '    )', $parameters);
    6464        }
    6565
     
    7575            $valueStr = $value instanceof Definition ? (string) $value : var_export($value, true);
    7676
    77             $str .= sprintf(PHP_EOL . '    $%s = %s', $propertyInjection->getPropertyName(), $valueStr);
     77            $str .= sprintf(\PHP_EOL . '    $%s = %s', $propertyInjection->getPropertyName(), $valueStr);
    7878        }
    7979
     
    8888            $parameters = $this->dumpMethodParameters($className, $methodInjection);
    8989
    90             $str .= sprintf(PHP_EOL . '    %s(' . PHP_EOL . '        %s' . PHP_EOL . '    )', $methodInjection->getMethodName(), $parameters);
     90            $str .= sprintf(\PHP_EOL . '    %s(' . \PHP_EOL . '        %s' . \PHP_EOL . '    )', $methodInjection->getMethodName(), $parameters);
    9191        }
    9292
     
    131131        }
    132132
    133         return implode(PHP_EOL . '        ', $args);
     133        return implode(\PHP_EOL . '        ', $args);
    134134    }
    135135}
  • simple-csv-exporter/trunk/vendor/php-di/php-di/src/Definition/EnvironmentVariableDefinition.php

    r2446249 r2761526  
    9494    public function __toString()
    9595    {
    96         $str = '    variable = ' . $this->variableName . PHP_EOL
     96        $str = '    variable = ' . $this->variableName . \PHP_EOL
    9797            . '    optional = ' . ($this->isOptional ? 'yes' : 'no');
    9898
     
    100100            if ($this->defaultValue instanceof Definition) {
    101101                $nestedDefinition = (string) $this->defaultValue;
    102                 $defaultValueStr = str_replace(PHP_EOL, PHP_EOL . '    ', $nestedDefinition);
     102                $defaultValueStr = str_replace(\PHP_EOL, \PHP_EOL . '    ', $nestedDefinition);
    103103            } else {
    104104                $defaultValueStr = var_export($this->defaultValue, true);
    105105            }
    106106
    107             $str .= PHP_EOL . '    default = ' . $defaultValueStr;
     107            $str .= \PHP_EOL . '    default = ' . $defaultValueStr;
    108108        }
    109109
    110         return sprintf('Environment variable (' . PHP_EOL . '%s' . PHP_EOL . ')', $str);
     110        return sprintf('Environment variable (' . \PHP_EOL . '%s' . \PHP_EOL . ')', $str);
    111111    }
    112112}
  • simple-csv-exporter/trunk/vendor/php-di/php-di/src/Definition/Exception/InvalidDefinition.php

    r2446249 r2761526  
    66
    77use DI\Definition\Definition;
     8use Psr\Container\ContainerExceptionInterface;
    89
    910/**
     
    1213 * @author Matthieu Napoli <matthieu@mnapoli.fr>
    1314 */
    14 class InvalidDefinition extends \Exception
     15class InvalidDefinition extends \Exception implements ContainerExceptionInterface
    1516{
    1617    public static function create(Definition $definition, string $message, \Exception $previous = null) : self
    1718    {
    1819        return new self(sprintf(
    19             '%s' . PHP_EOL . 'Full definition:' . PHP_EOL . '%s',
     20            '%s' . \PHP_EOL . 'Full definition:' . \PHP_EOL . '%s',
    2021            $message,
    2122            (string) $definition
  • simple-csv-exporter/trunk/vendor/php-di/php-di/src/Definition/Resolver/EnvironmentVariableResolver.php

    r2446249 r2761526  
    2626    private $variableReader;
    2727
    28     public function __construct(DefinitionResolver $definitionResolver, $variableReader = 'getenv')
     28    public function __construct(DefinitionResolver $definitionResolver, $variableReader = null)
    2929    {
    3030        $this->definitionResolver = $definitionResolver;
    31         $this->variableReader = $variableReader;
     31        $this->variableReader = $variableReader ?? [$this, 'getEnvVariable'];
    3232    }
    3333
     
    6666        return true;
    6767    }
     68
     69    protected function getEnvVariable(string $variableName)
     70    {
     71        if (isset($_ENV[$variableName])) {
     72            return $_ENV[$variableName];
     73        } elseif (isset($_SERVER[$variableName])) {
     74            return $_SERVER[$variableName];
     75        }
     76
     77        return getenv($variableName);
     78    }
    6879}
  • simple-csv-exporter/trunk/vendor/php-di/php-di/src/Definition/Source/AnnotationBasedAutowiring.php

    r2446249 r2761526  
    239239        // Try to use the type-hinting
    240240        $parameterType = $parameter->getType();
    241         if ($parameterType && !$parameterType->isBuiltin() && $parameterType instanceof ReflectionNamedType) {
     241        if ($parameterType && $parameterType instanceof ReflectionNamedType && !$parameterType->isBuiltin()) {
    242242            return $parameterType->getName();
    243243        }
  • simple-csv-exporter/trunk/vendor/php-di/php-di/src/Definition/Source/ReflectionBasedAutowiring.php

    r2446249 r2761526  
    6969                continue;
    7070            }
     71            if (!$parameterType instanceof ReflectionNamedType) {
     72                // Union types are not supported
     73                continue;
     74            }
    7175            if ($parameterType->isBuiltin()) {
    7276                // Primitive types are not supported
    73                 continue;
    74             }
    75             if (!$parameterType instanceof ReflectionNamedType) {
    76                 // Union types are not supported
    7777                continue;
    7878            }
  • simple-csv-exporter/trunk/vendor/php-di/php-di/src/Invoker/FactoryParameterResolver.php

    r2446249 r2761526  
    4949                continue;
    5050            }
     51            if (!$parameterType instanceof ReflectionNamedType) {
     52                // Union types are not supported
     53                continue;
     54            }
    5155            if ($parameterType->isBuiltin()) {
    5256                // Primitive types are not supported
    53                 continue;
    54             }
    55             if (!$parameterType instanceof ReflectionNamedType) {
    56                 // Union types are not supported
    5757                continue;
    5858            }
  • simple-csv-exporter/trunk/vendor/php-di/php-di/src/Proxy/ProxyFactory.php

    r2446249 r2761526  
    9191            $config->setProxiesTargetDir($this->proxyDirectory);
    9292            $config->setGeneratorStrategy(new FileWriterGeneratorStrategy(new FileLocator($this->proxyDirectory)));
     93            // @phpstan-ignore-next-line
    9394            spl_autoload_register($config->getProxyAutoloader());
    9495        } else {
  • simple-csv-exporter/trunk/vendor/psr/container/src/ContainerExceptionInterface.php

    r2446249 r2761526  
    11<?php
    2 /**
    3  * @license http://www.opensource.org/licenses/mit-license.php MIT (see the LICENSE file)
    4  */
    52
    63namespace Psr\Container;
  • simple-csv-exporter/trunk/vendor/psr/container/src/ContainerInterface.php

    r2446249 r2761526  
    11<?php
    2 /**
    3  * @license http://www.opensource.org/licenses/mit-license.php MIT (see the LICENSE file)
    4  */
     2
     3declare(strict_types=1);
    54
    65namespace Psr\Container;
     
    2120     * @return mixed Entry.
    2221     */
    23     public function get($id);
     22    public function get(string $id);
    2423
    2524    /**
     
    3433     * @return bool
    3534     */
    36     public function has($id);
     35    public function has(string $id);
    3736}
  • simple-csv-exporter/trunk/vendor/psr/container/src/NotFoundExceptionInterface.php

    r2446249 r2761526  
    11<?php
    2 /**
    3  * @license http://www.opensource.org/licenses/mit-license.php MIT (see the LICENSE file)
    4  */
    52
    63namespace Psr\Container;
Note: See TracChangeset for help on using the changeset viewer.