Changeset 3197847
- Timestamp:
- 11/27/2024 06:09:22 AM (16 months ago)
- Location:
- simple-csv-exporter
- Files:
-
- 46 added
- 6 deleted
- 76 edited
- 1 copied
-
tags/2.1.5 (copied) (copied from simple-csv-exporter/trunk)
-
tags/2.1.5/.husky (deleted)
-
tags/2.1.5/readme.txt (modified) (4 diffs)
-
tags/2.1.5/simple-csv-exporter.php (modified) (1 diff)
-
tags/2.1.5/src/Admin_UI.php (modified) (2 diffs)
-
tags/2.1.5/src/CSV_Writer.php (modified) (3 diffs)
-
tags/2.1.5/src/Container_Factory.php (modified) (2 diffs)
-
tags/2.1.5/src/Data_Builder.php (modified) (2 diffs)
-
tags/2.1.5/src/Data_Builder_For_WP_Posts.php (modified) (11 diffs)
-
tags/2.1.5/src/Exporter.php (modified) (2 diffs)
-
tags/2.1.5/vendor/autoload.php (modified) (1 diff)
-
tags/2.1.5/vendor/composer/ClassLoader.php (modified) (25 diffs)
-
tags/2.1.5/vendor/composer/InstalledVersions.php (modified) (4 diffs)
-
tags/2.1.5/vendor/composer/autoload_classmap.php (modified) (1 diff)
-
tags/2.1.5/vendor/composer/autoload_files.php (modified) (1 diff)
-
tags/2.1.5/vendor/composer/autoload_psr4.php (modified) (1 diff)
-
tags/2.1.5/vendor/composer/autoload_real.php (modified) (3 diffs)
-
tags/2.1.5/vendor/composer/autoload_static.php (modified) (5 diffs)
-
tags/2.1.5/vendor/composer/installed.json (modified) (8 diffs)
-
tags/2.1.5/vendor/composer/installed.php (modified) (5 diffs)
-
tags/2.1.5/vendor/composer/platform_check.php (modified) (1 diff)
-
tags/2.1.5/vendor/laravel (added)
-
tags/2.1.5/vendor/laravel/serializable-closure (added)
-
tags/2.1.5/vendor/laravel/serializable-closure/LICENSE.md (added)
-
tags/2.1.5/vendor/laravel/serializable-closure/src (added)
-
tags/2.1.5/vendor/laravel/serializable-closure/src/Contracts (added)
-
tags/2.1.5/vendor/laravel/serializable-closure/src/Contracts/Serializable.php (added)
-
tags/2.1.5/vendor/laravel/serializable-closure/src/Contracts/Signer.php (added)
-
tags/2.1.5/vendor/laravel/serializable-closure/src/Exceptions (added)
-
tags/2.1.5/vendor/laravel/serializable-closure/src/Exceptions/InvalidSignatureException.php (added)
-
tags/2.1.5/vendor/laravel/serializable-closure/src/Exceptions/MissingSecretKeyException.php (added)
-
tags/2.1.5/vendor/laravel/serializable-closure/src/Exceptions/PhpVersionNotSupportedException.php (added)
-
tags/2.1.5/vendor/laravel/serializable-closure/src/SerializableClosure.php (added)
-
tags/2.1.5/vendor/laravel/serializable-closure/src/Serializers (added)
-
tags/2.1.5/vendor/laravel/serializable-closure/src/Serializers/Native.php (added)
-
tags/2.1.5/vendor/laravel/serializable-closure/src/Serializers/Signed.php (added)
-
tags/2.1.5/vendor/laravel/serializable-closure/src/Signers (added)
-
tags/2.1.5/vendor/laravel/serializable-closure/src/Signers/Hmac.php (added)
-
tags/2.1.5/vendor/laravel/serializable-closure/src/Support (added)
-
tags/2.1.5/vendor/laravel/serializable-closure/src/Support/ClosureScope.php (added)
-
tags/2.1.5/vendor/laravel/serializable-closure/src/Support/ClosureStream.php (added)
-
tags/2.1.5/vendor/laravel/serializable-closure/src/Support/ReflectionClosure.php (added)
-
tags/2.1.5/vendor/laravel/serializable-closure/src/Support/SelfReference.php (added)
-
tags/2.1.5/vendor/laravel/serializable-closure/src/UnsignedSerializableClosure.php (added)
-
tags/2.1.5/vendor/opis (deleted)
-
tags/2.1.5/vendor/php-di/invoker/doc (deleted)
-
tags/2.1.5/vendor/php-di/invoker/src/CallableResolver.php (modified) (5 diffs)
-
tags/2.1.5/vendor/php-di/invoker/src/Exception/InvocationException.php (modified) (2 diffs)
-
tags/2.1.5/vendor/php-di/invoker/src/Exception/NotCallableException.php (modified) (2 diffs)
-
tags/2.1.5/vendor/php-di/invoker/src/Exception/NotEnoughParametersException.php (modified) (2 diffs)
-
tags/2.1.5/vendor/php-di/invoker/src/Invoker.php (modified) (8 diffs)
-
tags/2.1.5/vendor/php-di/invoker/src/InvokerInterface.php (modified) (3 diffs)
-
tags/2.1.5/vendor/php-di/invoker/src/ParameterResolver/AssociativeArrayResolver.php (modified) (3 diffs)
-
tags/2.1.5/vendor/php-di/invoker/src/ParameterResolver/Container/ParameterNameContainerResolver.php (modified) (3 diffs)
-
tags/2.1.5/vendor/php-di/invoker/src/ParameterResolver/Container/TypeHintContainerResolver.php (modified) (4 diffs)
-
tags/2.1.5/vendor/php-di/invoker/src/ParameterResolver/DefaultValueResolver.php (modified) (4 diffs)
-
tags/2.1.5/vendor/php-di/invoker/src/ParameterResolver/NumericArrayResolver.php (modified) (3 diffs)
-
tags/2.1.5/vendor/php-di/invoker/src/ParameterResolver/ParameterResolver.php (modified) (3 diffs)
-
tags/2.1.5/vendor/php-di/invoker/src/ParameterResolver/ResolverChain.php (modified) (5 diffs)
-
tags/2.1.5/vendor/php-di/invoker/src/ParameterResolver/TypeHintResolver.php (modified) (4 diffs)
-
tags/2.1.5/vendor/php-di/invoker/src/Reflection/CallableReflection.php (modified) (2 diffs)
-
tags/2.1.5/vendor/php-di/php-di/change-log.md (modified) (1 diff)
-
tags/2.1.5/vendor/php-di/php-di/src/Compiler/Compiler.php (modified) (2 diffs)
-
tags/2.1.5/vendor/php-di/php-di/src/Definition/Resolver/ArrayResolver.php (modified) (1 diff)
-
tags/2.1.5/vendor/psr/container/src/ContainerExceptionInterface.php (modified) (1 diff)
-
trunk/.husky (deleted)
-
trunk/readme.txt (modified) (4 diffs)
-
trunk/simple-csv-exporter.php (modified) (1 diff)
-
trunk/src/Admin_UI.php (modified) (2 diffs)
-
trunk/src/CSV_Writer.php (modified) (3 diffs)
-
trunk/src/Container_Factory.php (modified) (2 diffs)
-
trunk/src/Data_Builder.php (modified) (2 diffs)
-
trunk/src/Data_Builder_For_WP_Posts.php (modified) (11 diffs)
-
trunk/src/Exporter.php (modified) (2 diffs)
-
trunk/vendor/autoload.php (modified) (1 diff)
-
trunk/vendor/composer/ClassLoader.php (modified) (25 diffs)
-
trunk/vendor/composer/InstalledVersions.php (modified) (4 diffs)
-
trunk/vendor/composer/autoload_classmap.php (modified) (1 diff)
-
trunk/vendor/composer/autoload_files.php (modified) (1 diff)
-
trunk/vendor/composer/autoload_psr4.php (modified) (1 diff)
-
trunk/vendor/composer/autoload_real.php (modified) (3 diffs)
-
trunk/vendor/composer/autoload_static.php (modified) (5 diffs)
-
trunk/vendor/composer/installed.json (modified) (8 diffs)
-
trunk/vendor/composer/installed.php (modified) (5 diffs)
-
trunk/vendor/composer/platform_check.php (modified) (1 diff)
-
trunk/vendor/laravel (added)
-
trunk/vendor/laravel/serializable-closure (added)
-
trunk/vendor/laravel/serializable-closure/LICENSE.md (added)
-
trunk/vendor/laravel/serializable-closure/src (added)
-
trunk/vendor/laravel/serializable-closure/src/Contracts (added)
-
trunk/vendor/laravel/serializable-closure/src/Contracts/Serializable.php (added)
-
trunk/vendor/laravel/serializable-closure/src/Contracts/Signer.php (added)
-
trunk/vendor/laravel/serializable-closure/src/Exceptions (added)
-
trunk/vendor/laravel/serializable-closure/src/Exceptions/InvalidSignatureException.php (added)
-
trunk/vendor/laravel/serializable-closure/src/Exceptions/MissingSecretKeyException.php (added)
-
trunk/vendor/laravel/serializable-closure/src/Exceptions/PhpVersionNotSupportedException.php (added)
-
trunk/vendor/laravel/serializable-closure/src/SerializableClosure.php (added)
-
trunk/vendor/laravel/serializable-closure/src/Serializers (added)
-
trunk/vendor/laravel/serializable-closure/src/Serializers/Native.php (added)
-
trunk/vendor/laravel/serializable-closure/src/Serializers/Signed.php (added)
-
trunk/vendor/laravel/serializable-closure/src/Signers (added)
-
trunk/vendor/laravel/serializable-closure/src/Signers/Hmac.php (added)
-
trunk/vendor/laravel/serializable-closure/src/Support (added)
-
trunk/vendor/laravel/serializable-closure/src/Support/ClosureScope.php (added)
-
trunk/vendor/laravel/serializable-closure/src/Support/ClosureStream.php (added)
-
trunk/vendor/laravel/serializable-closure/src/Support/ReflectionClosure.php (added)
-
trunk/vendor/laravel/serializable-closure/src/Support/SelfReference.php (added)
-
trunk/vendor/laravel/serializable-closure/src/UnsignedSerializableClosure.php (added)
-
trunk/vendor/opis (deleted)
-
trunk/vendor/php-di/invoker/doc (deleted)
-
trunk/vendor/php-di/invoker/src/CallableResolver.php (modified) (5 diffs)
-
trunk/vendor/php-di/invoker/src/Exception/InvocationException.php (modified) (2 diffs)
-
trunk/vendor/php-di/invoker/src/Exception/NotCallableException.php (modified) (2 diffs)
-
trunk/vendor/php-di/invoker/src/Exception/NotEnoughParametersException.php (modified) (2 diffs)
-
trunk/vendor/php-di/invoker/src/Invoker.php (modified) (8 diffs)
-
trunk/vendor/php-di/invoker/src/InvokerInterface.php (modified) (3 diffs)
-
trunk/vendor/php-di/invoker/src/ParameterResolver/AssociativeArrayResolver.php (modified) (3 diffs)
-
trunk/vendor/php-di/invoker/src/ParameterResolver/Container/ParameterNameContainerResolver.php (modified) (3 diffs)
-
trunk/vendor/php-di/invoker/src/ParameterResolver/Container/TypeHintContainerResolver.php (modified) (4 diffs)
-
trunk/vendor/php-di/invoker/src/ParameterResolver/DefaultValueResolver.php (modified) (4 diffs)
-
trunk/vendor/php-di/invoker/src/ParameterResolver/NumericArrayResolver.php (modified) (3 diffs)
-
trunk/vendor/php-di/invoker/src/ParameterResolver/ParameterResolver.php (modified) (3 diffs)
-
trunk/vendor/php-di/invoker/src/ParameterResolver/ResolverChain.php (modified) (5 diffs)
-
trunk/vendor/php-di/invoker/src/ParameterResolver/TypeHintResolver.php (modified) (4 diffs)
-
trunk/vendor/php-di/invoker/src/Reflection/CallableReflection.php (modified) (2 diffs)
-
trunk/vendor/php-di/php-di/change-log.md (modified) (1 diff)
-
trunk/vendor/php-di/php-di/src/Compiler/Compiler.php (modified) (2 diffs)
-
trunk/vendor/php-di/php-di/src/Definition/Resolver/ArrayResolver.php (modified) (1 diff)
-
trunk/vendor/psr/container/src/ContainerExceptionInterface.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
simple-csv-exporter/tags/2.1.5/readme.txt
r2761526 r3197847 6 6 Tested up to: 6.0 7 7 Requires PHP: 7.4 8 Stable tag: 2. 0.18 Stable tag: 2.1.5 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 37 37 Customize posts for export. 38 38 39 <pre>add_action( 'simple_csv_exporter_ created_data_builder_for_wp_posts_pre_get_posts',39 <pre>add_action( 'simple_csv_exporter_data_builder_for_wp_posts_pre_get_posts', 40 40 function ( WP_Query $query ) { 41 41 $query->set( 'order', 'ASC' ); … … 45 45 Data filter for metadata. 46 46 47 <pre>use HAMWORKS\WP\Simple_CSV_Exporter\Data_Builder; 48 add_filter( 'simple_csv_exporter_created_data_builder_for_wp_posts_get_post_meta_fields', 47 <pre>add_filter( 'simple_csv_exporter_data_builder_for_wp_posts_get_post_meta_fields', 49 48 function ( array $fields ) { 50 49 foreach ( … … 60 59 } 61 60 );</pre> 61 Data filter for post. 62 63 <pre>add_filter( 64 'simple_csv_exporter_data_builder_for_wp_posts_row_data', 65 function ( $row_data, $post ) { 66 $row_data['permalink'] = get_permalink( $post ); 67 unset( $row_data['comment_status'] ); 68 return $row_data; 69 }, 70 10, 71 2 72 );</pre> 62 73 63 74 == Changelog == 75 76 = 2.1.0 = 77 * Rename hooks. 78 * Add `simple_csv_exporter_data_builder_for_wp_posts_row_data` filter. 64 79 65 80 = 2.0.1 = -
simple-csv-exporter/tags/2.1.5/simple-csv-exporter.php
r2761526 r3197847 11 11 * Domain Path: /languages 12 12 * Requires PHP: 7.4 13 * Version: 2. 0.113 * Version: 2.1.5 14 14 */ 15 15 -
simple-csv-exporter/tags/2.1.5/src/Admin_UI.php
r2446249 r3197847 13 13 * @var string 14 14 */ 15 private $slug;15 private string $slug; 16 16 17 17 /** 18 18 * @var Nonce 19 19 */ 20 private $nonce;20 private Nonce $nonce; 21 21 22 22 /** 23 23 * @var string 24 24 */ 25 private $post_type_var_name;25 private string $post_type_var_name; 26 26 27 27 /** … … 97 97 <?php 98 98 } 99 100 99 } -
simple-csv-exporter/tags/2.1.5/src/CSV_Writer.php
r2437085 r3197847 13 13 * @var string 14 14 */ 15 private $file_name;15 private string $file_name; 16 16 17 17 /** 18 18 * @var iterable 19 19 */ 20 private $rows;20 private iterable $rows; 21 21 22 22 /** … … 45 45 */ 46 46 public function write( iterable $data ) { 47 // phpcs:ignore WordPress.WP.AlternativeFunctions.file_system_read_fopen47 // phpcs:ignore 48 48 $file_pointer = fopen( $this->file_name, 'w' ); 49 49 … … 56 56 fputcsv( $file_pointer, $row ); 57 57 } 58 // phpcs:ignore WordPress.WP.AlternativeFunctions.file_system_read_fclose58 // phpcs:ignore 59 59 fclose( $file_pointer ); 60 60 } 61 62 61 } -
simple-csv-exporter/tags/2.1.5/src/Container_Factory.php
r2446249 r3197847 28 28 'slug' => 'simple_csv_exporter', 29 29 'post_type' => function ( ContainerInterface $c ) { 30 return filter_input( INPUT_POST, $c->get( 'var.name' ), FILTER_SANITIZE_S TRING) ?? '';30 return filter_input( INPUT_POST, $c->get( 'var.name' ), FILTER_SANITIZE_SPECIAL_CHARS ) ?? ''; 31 31 }, 32 32 Nonce::class => create()->constructor( get( 'slug' ) ), … … 45 45 )->parameter( 'post_type', get( 'post_type' ) ), 46 46 Admin_UI::class => autowire()->constructor( get( 'slug' ), get( 'var.name' ) ), 47 Exporter::class => autowire()->constructor( get( 'slug' )),47 Exporter::class => autowire()->constructor(), 48 48 ) 49 49 ); -
simple-csv-exporter/tags/2.1.5/src/Data_Builder.php
r2446249 r3197847 19 19 * @var string[] 20 20 */ 21 protected $drop_columns = array();21 protected array $drop_columns = array(); 22 22 23 23 … … 57 57 * @return Traversable 58 58 */ 59 abstract protected function rows() ;59 abstract protected function rows(): Traversable; 60 60 61 61 /** -
simple-csv-exporter/tags/2.1.5/src/Data_Builder_For_WP_Posts.php
r2446249 r3197847 18 18 * @var string 19 19 */ 20 private $post_type;20 private string $post_type; 21 21 22 22 /** … … 25 25 * @var string[] 26 26 */ 27 protected $drop_columns = array(27 protected array $drop_columns = array( 28 28 'post_date_gmt', 29 29 'ping_status', … … 46 46 * @var string[] 47 47 */ 48 private $meta_keys = array();48 private array $meta_keys = array(); 49 49 50 50 /** … … 53 53 * @var WP_Taxonomy[] 54 54 */ 55 private $taxonomies;55 private array $taxonomies; 56 56 57 57 /** … … 60 60 * @var WP_Query 61 61 */ 62 private $query;62 private WP_Query $query; 63 63 64 64 /** … … 76 76 public function get_name(): string { 77 77 $post_type = get_post_type_object( $this->post_type ); 78 78 79 return $post_type->label ?? ''; 79 80 } … … 143 144 * @param array $fields meta key and value. 144 145 * @param WP_Post $post post object. 145 */ 146 return apply_filters( 'simple_csv_exporter_created_data_builder_for_wp_posts_get_post_meta_fields', $fields, $post ); 146 * 147 * @deprecated 2.1.0 148 */ 149 $fields = apply_filters( 'simple_csv_exporter_created_data_builder_for_wp_posts_get_post_meta_fields', $fields, $post ); 150 151 /** 152 * @param array $fields meta key and value. 153 * @param WP_Post $post post object. 154 * @since 2.1.0 155 */ 156 return apply_filters( 'simple_csv_exporter_data_builder_for_wp_posts_get_post_meta_fields', $fields, $post ); 147 157 } 148 158 … … 218 228 * 219 229 * @param WP_Query $query 230 * 231 * @deprecated 2.1.0 220 232 */ 221 233 do_action( 'simple_csv_exporter_created_data_builder_for_wp_posts_pre_get_posts', $query ); 222 234 235 /** 236 * Fires after the query variable object is created, but before the actual query is run. 237 * 238 * @param WP_Query $query 239 * 240 * @since 2.1.0 241 */ 242 do_action( 'simple_csv_exporter_data_builder_for_wp_posts_pre_get_posts', $query ); 223 243 $query->get_posts(); 224 244 $this->query = $query; … … 239 259 while ( $this->query->have_posts() ) { 240 260 $this->query->the_post(); 241 $post = get_post();242 $ post_data = array_merge(261 $post = get_post(); 262 $row_data = array_merge( 243 263 $post->to_array(), 244 264 array( … … 251 271 ); 252 272 273 /** 274 * Filter for row data. 275 * 276 * @param array $row_data row data. 277 * @param WP_Post $post post object. 278 * 279 * @since 2.1.0 280 */ 281 $row_data = apply_filters( 'simple_csv_exporter_data_builder_for_wp_posts_row_data', $row_data, $post ); 282 253 283 // Note: 'foo' => null なものを、まとめて削除. 254 284 yield array_filter( 255 $ post_data,285 $row_data, 256 286 function ( $fields ) { 257 287 return is_string( $fields ) || is_numeric( $fields ); … … 260 290 } 261 291 } 262 263 264 292 } -
simple-csv-exporter/tags/2.1.5/src/Exporter.php
r2446249 r3197847 10 10 class Exporter { 11 11 /** 12 * @var string13 */14 private $slug;15 16 /**17 12 * @var Nonce 18 13 */ 19 private $nonce;14 private Nonce $nonce; 20 15 21 16 /** 22 17 * @var Data_Builder 23 18 */ 24 private $data_builder;19 private Data_Builder $data_builder; 25 20 26 21 /** 27 22 * Exporter 28 23 * 29 * @param string $slug Slug for admin page.30 24 * @param Nonce $nonce 31 25 * @param Data_Builder $data_builder 32 26 */ 33 public function __construct( string $slug, Nonce $nonce, Data_Builder $data_builder ) { 34 $this->slug = $slug; 27 public function __construct( Nonce $nonce, Data_Builder $data_builder ) { 35 28 $this->nonce = $nonce; 36 29 $this->data_builder = $data_builder; … … 72 65 header( 'Content-Transfer-Encoding: binary' ); 73 66 } 74 75 76 67 } -
simple-csv-exporter/tags/2.1.5/vendor/autoload.php
r2761526 r3197847 4 4 5 5 if (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); 6 if (!headers_sent()) { 7 header('HTTP/1.1 500 Internal Server Error'); 8 } 9 $err = '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; 10 if (!ini_get('display_errors')) { 11 if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') { 12 fwrite(STDERR, $err); 13 } elseif (!headers_sent()) { 14 echo $err; 15 } 16 } 17 trigger_error( 18 $err, 19 E_USER_ERROR 20 ); 8 21 } 9 22 10 23 require_once __DIR__ . '/composer/autoload_real.php'; 11 24 12 return ComposerAutoloaderInit 2e765ad8ae0dfed5be0e9b093247e6db::getLoader();25 return ComposerAutoloaderInitee05b39afac0c66e4ee8567eb02378b8::getLoader(); -
simple-csv-exporter/tags/2.1.5/vendor/composer/ClassLoader.php
r2761526 r3197847 43 43 class ClassLoader 44 44 { 45 /** @var ?string */ 45 /** @var \Closure(string):void */ 46 private static $includeFile; 47 48 /** @var string|null */ 46 49 private $vendorDir; 47 50 48 51 // PSR-4 49 52 /** 50 * @var array[] 51 * @psalm-var array<string, array<string, int>> 53 * @var array<string, array<string, int>> 52 54 */ 53 55 private $prefixLengthsPsr4 = array(); 54 56 /** 55 * @var array[] 56 * @psalm-var array<string, array<int, string>> 57 * @var array<string, list<string>> 57 58 */ 58 59 private $prefixDirsPsr4 = array(); 59 60 /** 60 * @var array[] 61 * @psalm-var array<string, string> 61 * @var list<string> 62 62 */ 63 63 private $fallbackDirsPsr4 = array(); … … 65 65 // PSR-0 66 66 /** 67 * @var array[] 68 * @psalm-var array<string, array<string, string[]>> 67 * List of PSR-0 prefixes 68 * 69 * Structured as array('F (first letter)' => array('Foo\Bar (full prefix)' => array('path', 'path2'))) 70 * 71 * @var array<string, array<string, list<string>>> 69 72 */ 70 73 private $prefixesPsr0 = array(); 71 74 /** 72 * @var array[] 73 * @psalm-var array<string, string> 75 * @var list<string> 74 76 */ 75 77 private $fallbackDirsPsr0 = array(); … … 79 81 80 82 /** 81 * @var string[] 82 * @psalm-var array<string, string> 83 * @var array<string, string> 83 84 */ 84 85 private $classMap = array(); … … 88 89 89 90 /** 90 * @var bool[] 91 * @psalm-var array<string, bool> 91 * @var array<string, bool> 92 92 */ 93 93 private $missingClasses = array(); 94 94 95 /** @var ?string*/95 /** @var string|null */ 96 96 private $apcuPrefix; 97 97 98 98 /** 99 * @var self[]99 * @var array<string, self> 100 100 */ 101 101 private static $registeredLoaders = array(); 102 102 103 103 /** 104 * @param ?string$vendorDir104 * @param string|null $vendorDir 105 105 */ 106 106 public function __construct($vendorDir = null) 107 107 { 108 108 $this->vendorDir = $vendorDir; 109 } 110 111 /** 112 * @return string[] 109 self::initializeIncludeClosure(); 110 } 111 112 /** 113 * @return array<string, list<string>> 113 114 */ 114 115 public function getPrefixes() … … 122 123 123 124 /** 124 * @return array[] 125 * @psalm-return array<string, array<int, string>> 125 * @return array<string, list<string>> 126 126 */ 127 127 public function getPrefixesPsr4() … … 131 131 132 132 /** 133 * @return array[] 134 * @psalm-return array<string, string> 133 * @return list<string> 135 134 */ 136 135 public function getFallbackDirs() … … 140 139 141 140 /** 142 * @return array[] 143 * @psalm-return array<string, string> 141 * @return list<string> 144 142 */ 145 143 public function getFallbackDirsPsr4() … … 149 147 150 148 /** 151 * @return string[] Array of classname => path 152 * @psalm-return array<string, string> 149 * @return array<string, string> Array of classname => path 153 150 */ 154 151 public function getClassMap() … … 158 155 159 156 /** 160 * @param string[] $classMap Class to filename map 161 * @psalm-param array<string, string> $classMap 157 * @param array<string, string> $classMap Class to filename map 162 158 * 163 159 * @return void … … 176 172 * appending or prepending to the ones previously set for this prefix. 177 173 * 178 * @param string $prefix The prefix179 * @param string[]|string $paths The PSR-0 root directories180 * @param bool $prepend Whether to prepend the directories174 * @param string $prefix The prefix 175 * @param list<string>|string $paths The PSR-0 root directories 176 * @param bool $prepend Whether to prepend the directories 181 177 * 182 178 * @return void … … 184 180 public function add($prefix, $paths, $prepend = false) 185 181 { 182 $paths = (array) $paths; 186 183 if (!$prefix) { 187 184 if ($prepend) { 188 185 $this->fallbackDirsPsr0 = array_merge( 189 (array)$paths,186 $paths, 190 187 $this->fallbackDirsPsr0 191 188 ); … … 193 190 $this->fallbackDirsPsr0 = array_merge( 194 191 $this->fallbackDirsPsr0, 195 (array)$paths192 $paths 196 193 ); 197 194 } … … 202 199 $first = $prefix[0]; 203 200 if (!isset($this->prefixesPsr0[$first][$prefix])) { 204 $this->prefixesPsr0[$first][$prefix] = (array)$paths;201 $this->prefixesPsr0[$first][$prefix] = $paths; 205 202 206 203 return; … … 208 205 if ($prepend) { 209 206 $this->prefixesPsr0[$first][$prefix] = array_merge( 210 (array)$paths,207 $paths, 211 208 $this->prefixesPsr0[$first][$prefix] 212 209 ); … … 214 211 $this->prefixesPsr0[$first][$prefix] = array_merge( 215 212 $this->prefixesPsr0[$first][$prefix], 216 (array)$paths213 $paths 217 214 ); 218 215 } … … 223 220 * appending or prepending to the ones previously set for this namespace. 224 221 * 225 * @param string $prefix The prefix/namespace, with trailing '\\'226 * @param string[]|string $paths The PSR-4 base directories227 * @param bool $prepend Whether to prepend the directories222 * @param string $prefix The prefix/namespace, with trailing '\\' 223 * @param list<string>|string $paths The PSR-4 base directories 224 * @param bool $prepend Whether to prepend the directories 228 225 * 229 226 * @throws \InvalidArgumentException … … 233 230 public function addPsr4($prefix, $paths, $prepend = false) 234 231 { 232 $paths = (array) $paths; 235 233 if (!$prefix) { 236 234 // Register directories for the root namespace. 237 235 if ($prepend) { 238 236 $this->fallbackDirsPsr4 = array_merge( 239 (array)$paths,237 $paths, 240 238 $this->fallbackDirsPsr4 241 239 ); … … 243 241 $this->fallbackDirsPsr4 = array_merge( 244 242 $this->fallbackDirsPsr4, 245 (array)$paths243 $paths 246 244 ); 247 245 } … … 253 251 } 254 252 $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; 255 $this->prefixDirsPsr4[$prefix] = (array)$paths;253 $this->prefixDirsPsr4[$prefix] = $paths; 256 254 } elseif ($prepend) { 257 255 // Prepend directories for an already registered namespace. 258 256 $this->prefixDirsPsr4[$prefix] = array_merge( 259 (array)$paths,257 $paths, 260 258 $this->prefixDirsPsr4[$prefix] 261 259 ); … … 264 262 $this->prefixDirsPsr4[$prefix] = array_merge( 265 263 $this->prefixDirsPsr4[$prefix], 266 (array)$paths264 $paths 267 265 ); 268 266 } … … 273 271 * replacing any others previously set for this prefix. 274 272 * 275 * @param string $prefix The prefix276 * @param string[]|string $paths The PSR-0 base directories273 * @param string $prefix The prefix 274 * @param list<string>|string $paths The PSR-0 base directories 277 275 * 278 276 * @return void … … 291 289 * replacing any others previously set for this namespace. 292 290 * 293 * @param string $prefix The prefix/namespace, with trailing '\\'294 * @param string[]|string $paths The PSR-4 base directories291 * @param string $prefix The prefix/namespace, with trailing '\\' 292 * @param list<string>|string $paths The PSR-4 base directories 295 293 * 296 294 * @throws \InvalidArgumentException … … 426 424 { 427 425 if ($file = $this->findFile($class)) { 428 includeFile($file); 426 $includeFile = self::$includeFile; 427 $includeFile($file); 429 428 430 429 return true; … … 477 476 478 477 /** 479 * Returns the currently registered loaders indexed by their corresponding vendor directories.480 * 481 * @return self[]478 * Returns the currently registered loaders keyed by their corresponding vendor directories. 479 * 480 * @return array<string, self> 482 481 */ 483 482 public static function getRegisteredLoaders() … … 556 555 return false; 557 556 } 557 558 /** 559 * @return void 560 */ 561 private static function initializeIncludeClosure() 562 { 563 if (self::$includeFile !== null) { 564 return; 565 } 566 567 /** 568 * Scope isolated include. 569 * 570 * Prevents access to $this/self from included files. 571 * 572 * @param string $file 573 * @return void 574 */ 575 self::$includeFile = \Closure::bind(static function($file) { 576 include $file; 577 }, null, null); 578 } 558 579 } 559 560 /**561 * Scope isolated include.562 *563 * Prevents access to $this/self from included files.564 *565 * @param string $file566 * @return void567 * @private568 */569 function includeFile($file)570 {571 include $file;572 } -
simple-csv-exporter/tags/2.1.5/vendor/composer/InstalledVersions.php
r2761526 r3197847 99 99 foreach (self::getInstalled() as $installed) { 100 100 if (isset($installed['versions'][$packageName])) { 101 return $includeDevRequirements || empty($installed['versions'][$packageName]['dev_requirement']);101 return $includeDevRequirements || !isset($installed['versions'][$packageName]['dev_requirement']) || $installed['versions'][$packageName]['dev_requirement'] === false; 102 102 } 103 103 } … … 120 120 public static function satisfies(VersionParser $parser, $packageName, $constraint) 121 121 { 122 $constraint = $parser->parseConstraints( $constraint);122 $constraint = $parser->parseConstraints((string) $constraint); 123 123 $provided = $parser->parseConstraints(self::getVersionRanges($packageName)); 124 124 … … 329 329 $installed[] = self::$installedByVendor[$vendorDir]; 330 330 } elseif (is_file($vendorDir.'/composer/installed.php')) { 331 $installed[] = self::$installedByVendor[$vendorDir] = require $vendorDir.'/composer/installed.php'; 331 /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */ 332 $required = require $vendorDir.'/composer/installed.php'; 333 $installed[] = self::$installedByVendor[$vendorDir] = $required; 332 334 if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) { 333 335 self::$installed = $installed[count($installed) - 1]; … … 341 343 // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937 342 344 if (substr(__DIR__, -8, 1) !== 'C') { 343 self::$installed = require __DIR__ . '/installed.php'; 345 /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */ 346 $required = require __DIR__ . '/installed.php'; 347 self::$installed = $required; 344 348 } else { 345 349 self::$installed = array(); 346 350 } 347 351 } 348 $installed[] = self::$installed; 352 353 if (self::$installed !== array()) { 354 $installed[] = self::$installed; 355 } 349 356 350 357 return $installed; -
simple-csv-exporter/tags/2.1.5/vendor/composer/autoload_classmap.php
r2761526 r3197847 92 92 'Invoker\\ParameterResolver\\TypeHintResolver' => $vendorDir . '/php-di/invoker/src/ParameterResolver/TypeHintResolver.php', 93 93 'Invoker\\Reflection\\CallableReflection' => $vendorDir . '/php-di/invoker/src/Reflection/CallableReflection.php', 94 'Opis\\Closure\\Analyzer' => $vendorDir . '/opis/closure/src/Analyzer.php', 95 'Opis\\Closure\\ClosureContext' => $vendorDir . '/opis/closure/src/ClosureContext.php', 96 'Opis\\Closure\\ClosureScope' => $vendorDir . '/opis/closure/src/ClosureScope.php', 97 'Opis\\Closure\\ClosureStream' => $vendorDir . '/opis/closure/src/ClosureStream.php', 98 'Opis\\Closure\\ISecurityProvider' => $vendorDir . '/opis/closure/src/ISecurityProvider.php', 99 'Opis\\Closure\\ReflectionClosure' => $vendorDir . '/opis/closure/src/ReflectionClosure.php', 100 'Opis\\Closure\\SecurityException' => $vendorDir . '/opis/closure/src/SecurityException.php', 101 'Opis\\Closure\\SecurityProvider' => $vendorDir . '/opis/closure/src/SecurityProvider.php', 102 'Opis\\Closure\\SelfReference' => $vendorDir . '/opis/closure/src/SelfReference.php', 103 'Opis\\Closure\\SerializableClosure' => $vendorDir . '/opis/closure/src/SerializableClosure.php', 94 'Laravel\\SerializableClosure\\Contracts\\Serializable' => $vendorDir . '/laravel/serializable-closure/src/Contracts/Serializable.php', 95 'Laravel\\SerializableClosure\\Contracts\\Signer' => $vendorDir . '/laravel/serializable-closure/src/Contracts/Signer.php', 96 'Laravel\\SerializableClosure\\Exceptions\\InvalidSignatureException' => $vendorDir . '/laravel/serializable-closure/src/Exceptions/InvalidSignatureException.php', 97 'Laravel\\SerializableClosure\\Exceptions\\MissingSecretKeyException' => $vendorDir . '/laravel/serializable-closure/src/Exceptions/MissingSecretKeyException.php', 98 'Laravel\\SerializableClosure\\Exceptions\\PhpVersionNotSupportedException' => $vendorDir . '/laravel/serializable-closure/src/Exceptions/PhpVersionNotSupportedException.php', 99 'Laravel\\SerializableClosure\\SerializableClosure' => $vendorDir . '/laravel/serializable-closure/src/SerializableClosure.php', 100 'Laravel\\SerializableClosure\\Serializers\\Native' => $vendorDir . '/laravel/serializable-closure/src/Serializers/Native.php', 101 'Laravel\\SerializableClosure\\Serializers\\Signed' => $vendorDir . '/laravel/serializable-closure/src/Serializers/Signed.php', 102 'Laravel\\SerializableClosure\\Signers\\Hmac' => $vendorDir . '/laravel/serializable-closure/src/Signers/Hmac.php', 103 'Laravel\\SerializableClosure\\Support\\ClosureScope' => $vendorDir . '/laravel/serializable-closure/src/Support/ClosureScope.php', 104 'Laravel\\SerializableClosure\\Support\\ClosureStream' => $vendorDir . '/laravel/serializable-closure/src/Support/ClosureStream.php', 105 'Laravel\\SerializableClosure\\Support\\ReflectionClosure' => $vendorDir . '/laravel/serializable-closure/src/Support/ReflectionClosure.php', 106 'Laravel\\SerializableClosure\\Support\\SelfReference' => $vendorDir . '/laravel/serializable-closure/src/Support/SelfReference.php', 107 'Laravel\\SerializableClosure\\UnsignedSerializableClosure' => $vendorDir . '/laravel/serializable-closure/src/UnsignedSerializableClosure.php', 104 108 'PhpDocReader\\AnnotationException' => $vendorDir . '/php-di/phpdoc-reader/src/PhpDocReader/AnnotationException.php', 105 109 'PhpDocReader\\PhpDocReader' => $vendorDir . '/php-di/phpdoc-reader/src/PhpDocReader/PhpDocReader.php', -
simple-csv-exporter/tags/2.1.5/vendor/composer/autoload_files.php
r2761526 r3197847 7 7 8 8 return array( 9 '538ca81a9a966a6716601ecf48f4eaef' => $vendorDir . '/opis/closure/functions.php',10 9 'b33e3d135e5d9e47d845c576147bda89' => $vendorDir . '/php-di/php-di/src/functions.php', 11 10 ); -
simple-csv-exporter/tags/2.1.5/vendor/composer/autoload_psr4.php
r2761526 r3197847 9 9 'Psr\\Container\\' => array($vendorDir . '/psr/container/src'), 10 10 'PhpDocReader\\' => array($vendorDir . '/php-di/phpdoc-reader/src/PhpDocReader'), 11 ' Opis\\Closure\\' => array($vendorDir . '/opis/closure/src'),11 'Laravel\\SerializableClosure\\' => array($vendorDir . '/laravel/serializable-closure/src'), 12 12 'Invoker\\' => array($vendorDir . '/php-di/invoker/src'), 13 13 'HAMWORKS\\WP\\Simple_CSV_Exporter\\Tests\\' => array($baseDir . '/tests'), -
simple-csv-exporter/tags/2.1.5/vendor/composer/autoload_real.php
r2761526 r3197847 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 2e765ad8ae0dfed5be0e9b093247e6db5 class ComposerAutoloaderInitee05b39afac0c66e4ee8567eb02378b8 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit 2e765ad8ae0dfed5be0e9b093247e6db', 'loadClassLoader'), true, true);27 spl_autoload_register(array('ComposerAutoloaderInitee05b39afac0c66e4ee8567eb02378b8', 'loadClassLoader'), true, true); 28 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 29 spl_autoload_unregister(array('ComposerAutoloaderInit 2e765ad8ae0dfed5be0e9b093247e6db', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderInitee05b39afac0c66e4ee8567eb02378b8', 'loadClassLoader')); 30 30 31 31 require __DIR__ . '/autoload_static.php'; 32 call_user_func(\Composer\Autoload\ComposerStaticInit 2e765ad8ae0dfed5be0e9b093247e6db::getInitializer($loader));32 call_user_func(\Composer\Autoload\ComposerStaticInitee05b39afac0c66e4ee8567eb02378b8::getInitializer($loader)); 33 33 34 34 $loader->register(true); 35 35 36 $includeFiles = \Composer\Autoload\ComposerStaticInit2e765ad8ae0dfed5be0e9b093247e6db::$files; 37 foreach ($includeFiles as $fileIdentifier => $file) { 38 composerRequire2e765ad8ae0dfed5be0e9b093247e6db($fileIdentifier, $file); 36 $filesToLoad = \Composer\Autoload\ComposerStaticInitee05b39afac0c66e4ee8567eb02378b8::$files; 37 $requireFile = \Closure::bind(static function ($fileIdentifier, $file) { 38 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { 39 $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true; 40 41 require $file; 42 } 43 }, null, null); 44 foreach ($filesToLoad as $fileIdentifier => $file) { 45 $requireFile($fileIdentifier, $file); 39 46 } 40 47 … … 42 49 } 43 50 } 44 45 /**46 * @param string $fileIdentifier47 * @param string $file48 * @return void49 */50 function composerRequire2e765ad8ae0dfed5be0e9b093247e6db($fileIdentifier, $file)51 {52 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {53 $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;54 55 require $file;56 }57 } -
simple-csv-exporter/tags/2.1.5/vendor/composer/autoload_static.php
r2761526 r3197847 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 2e765ad8ae0dfed5be0e9b093247e6db7 class ComposerStaticInitee05b39afac0c66e4ee8567eb02378b8 8 8 { 9 9 public static $files = array ( 10 '538ca81a9a966a6716601ecf48f4eaef' => __DIR__ . '/..' . '/opis/closure/functions.php',11 10 'b33e3d135e5d9e47d845c576147bda89' => __DIR__ . '/..' . '/php-di/php-di/src/functions.php', 12 11 ); … … 18 17 'PhpDocReader\\' => 13, 19 18 ), 20 ' O' =>19 'L' => 21 20 array ( 22 ' Opis\\Closure\\' => 13,21 'Laravel\\SerializableClosure\\' => 28, 23 22 ), 24 23 'I' => … … 46 45 0 => __DIR__ . '/..' . '/php-di/phpdoc-reader/src/PhpDocReader', 47 46 ), 48 ' Opis\\Closure\\' =>47 'Laravel\\SerializableClosure\\' => 49 48 array ( 50 0 => __DIR__ . '/..' . '/ opis/closure/src',49 0 => __DIR__ . '/..' . '/laravel/serializable-closure/src', 51 50 ), 52 51 'Invoker\\' => … … 154 153 'Invoker\\ParameterResolver\\TypeHintResolver' => __DIR__ . '/..' . '/php-di/invoker/src/ParameterResolver/TypeHintResolver.php', 155 154 'Invoker\\Reflection\\CallableReflection' => __DIR__ . '/..' . '/php-di/invoker/src/Reflection/CallableReflection.php', 156 'Opis\\Closure\\Analyzer' => __DIR__ . '/..' . '/opis/closure/src/Analyzer.php', 157 'Opis\\Closure\\ClosureContext' => __DIR__ . '/..' . '/opis/closure/src/ClosureContext.php', 158 'Opis\\Closure\\ClosureScope' => __DIR__ . '/..' . '/opis/closure/src/ClosureScope.php', 159 'Opis\\Closure\\ClosureStream' => __DIR__ . '/..' . '/opis/closure/src/ClosureStream.php', 160 'Opis\\Closure\\ISecurityProvider' => __DIR__ . '/..' . '/opis/closure/src/ISecurityProvider.php', 161 'Opis\\Closure\\ReflectionClosure' => __DIR__ . '/..' . '/opis/closure/src/ReflectionClosure.php', 162 'Opis\\Closure\\SecurityException' => __DIR__ . '/..' . '/opis/closure/src/SecurityException.php', 163 'Opis\\Closure\\SecurityProvider' => __DIR__ . '/..' . '/opis/closure/src/SecurityProvider.php', 164 'Opis\\Closure\\SelfReference' => __DIR__ . '/..' . '/opis/closure/src/SelfReference.php', 165 'Opis\\Closure\\SerializableClosure' => __DIR__ . '/..' . '/opis/closure/src/SerializableClosure.php', 155 'Laravel\\SerializableClosure\\Contracts\\Serializable' => __DIR__ . '/..' . '/laravel/serializable-closure/src/Contracts/Serializable.php', 156 'Laravel\\SerializableClosure\\Contracts\\Signer' => __DIR__ . '/..' . '/laravel/serializable-closure/src/Contracts/Signer.php', 157 'Laravel\\SerializableClosure\\Exceptions\\InvalidSignatureException' => __DIR__ . '/..' . '/laravel/serializable-closure/src/Exceptions/InvalidSignatureException.php', 158 'Laravel\\SerializableClosure\\Exceptions\\MissingSecretKeyException' => __DIR__ . '/..' . '/laravel/serializable-closure/src/Exceptions/MissingSecretKeyException.php', 159 'Laravel\\SerializableClosure\\Exceptions\\PhpVersionNotSupportedException' => __DIR__ . '/..' . '/laravel/serializable-closure/src/Exceptions/PhpVersionNotSupportedException.php', 160 'Laravel\\SerializableClosure\\SerializableClosure' => __DIR__ . '/..' . '/laravel/serializable-closure/src/SerializableClosure.php', 161 'Laravel\\SerializableClosure\\Serializers\\Native' => __DIR__ . '/..' . '/laravel/serializable-closure/src/Serializers/Native.php', 162 'Laravel\\SerializableClosure\\Serializers\\Signed' => __DIR__ . '/..' . '/laravel/serializable-closure/src/Serializers/Signed.php', 163 'Laravel\\SerializableClosure\\Signers\\Hmac' => __DIR__ . '/..' . '/laravel/serializable-closure/src/Signers/Hmac.php', 164 'Laravel\\SerializableClosure\\Support\\ClosureScope' => __DIR__ . '/..' . '/laravel/serializable-closure/src/Support/ClosureScope.php', 165 'Laravel\\SerializableClosure\\Support\\ClosureStream' => __DIR__ . '/..' . '/laravel/serializable-closure/src/Support/ClosureStream.php', 166 'Laravel\\SerializableClosure\\Support\\ReflectionClosure' => __DIR__ . '/..' . '/laravel/serializable-closure/src/Support/ReflectionClosure.php', 167 'Laravel\\SerializableClosure\\Support\\SelfReference' => __DIR__ . '/..' . '/laravel/serializable-closure/src/Support/SelfReference.php', 168 'Laravel\\SerializableClosure\\UnsignedSerializableClosure' => __DIR__ . '/..' . '/laravel/serializable-closure/src/UnsignedSerializableClosure.php', 166 169 'PhpDocReader\\AnnotationException' => __DIR__ . '/..' . '/php-di/phpdoc-reader/src/PhpDocReader/AnnotationException.php', 167 170 'PhpDocReader\\PhpDocReader' => __DIR__ . '/..' . '/php-di/phpdoc-reader/src/PhpDocReader/PhpDocReader.php', … … 176 179 { 177 180 return \Closure::bind(function () use ($loader) { 178 $loader->prefixLengthsPsr4 = ComposerStaticInit 2e765ad8ae0dfed5be0e9b093247e6db::$prefixLengthsPsr4;179 $loader->prefixDirsPsr4 = ComposerStaticInit 2e765ad8ae0dfed5be0e9b093247e6db::$prefixDirsPsr4;180 $loader->classMap = ComposerStaticInit 2e765ad8ae0dfed5be0e9b093247e6db::$classMap;181 $loader->prefixLengthsPsr4 = ComposerStaticInitee05b39afac0c66e4ee8567eb02378b8::$prefixLengthsPsr4; 182 $loader->prefixDirsPsr4 = ComposerStaticInitee05b39afac0c66e4ee8567eb02378b8::$prefixDirsPsr4; 183 $loader->classMap = ComposerStaticInitee05b39afac0c66e4ee8567eb02378b8::$classMap; 181 184 182 185 }, null, ClassLoader::class); -
simple-csv-exporter/tags/2.1.5/vendor/composer/installed.json
r2761526 r3197847 2 2 "packages": [ 3 3 { 4 "name": " opis/closure",5 "version": " 3.6.3",6 "version_normalized": " 3.6.3.0",7 "source": { 8 "type": "git", 9 "url": "https://github.com/ opis/closure.git",10 "reference": " 3d81e4309d2a927abbe66df935f4bb60082805ad"11 }, 12 "dist": { 13 "type": "zip", 14 "url": "https://api.github.com/repos/ opis/closure/zipball/3d81e4309d2a927abbe66df935f4bb60082805ad",15 "reference": " 3d81e4309d2a927abbe66df935f4bb60082805ad",16 "shasum": "" 17 }, 18 "require": { 19 "php": "^ 5.4 || ^7.0 ||^8.0"4 "name": "laravel/serializable-closure", 5 "version": "v1.3.7", 6 "version_normalized": "1.3.7.0", 7 "source": { 8 "type": "git", 9 "url": "https://github.com/laravel/serializable-closure.git", 10 "reference": "4f48ade902b94323ca3be7646db16209ec76be3d" 11 }, 12 "dist": { 13 "type": "zip", 14 "url": "https://api.github.com/repos/laravel/serializable-closure/zipball/4f48ade902b94323ca3be7646db16209ec76be3d", 15 "reference": "4f48ade902b94323ca3be7646db16209ec76be3d", 16 "shasum": "" 17 }, 18 "require": { 19 "php": "^7.3|^8.0" 20 20 }, 21 21 "require-dev": { 22 "jeremeamia/superclosure": "^2.0", 23 "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.0" 24 }, 25 "time": "2022-01-27T09:35:39+00:00", 22 "illuminate/support": "^8.0|^9.0|^10.0|^11.0", 23 "nesbot/carbon": "^2.61|^3.0", 24 "pestphp/pest": "^1.21.3", 25 "phpstan/phpstan": "^1.8.2", 26 "symfony/var-dumper": "^5.4.11|^6.2.0|^7.0.0" 27 }, 28 "time": "2024-11-14T18:34:49+00:00", 26 29 "type": "library", 27 30 "extra": { 28 31 "branch-alias": { 29 "dev-master": "3.6.x-dev" 30 } 31 }, 32 "installation-source": "dist", 33 "autoload": { 34 "files": [ 35 "functions.php" 36 ], 37 "psr-4": { 38 "Opis\\Closure\\": "src/" 32 "dev-master": "1.x-dev" 33 } 34 }, 35 "installation-source": "dist", 36 "autoload": { 37 "psr-4": { 38 "Laravel\\SerializableClosure\\": "src/" 39 39 } 40 40 }, … … 45 45 "authors": [ 46 46 { 47 "name": " Marius Sarca",48 "email": " marius.sarca@gmail.com"47 "name": "Taylor Otwell", 48 "email": "taylor@laravel.com" 49 49 }, 50 50 { 51 "name": "Sorin Sarca", 52 "email": "sarca_sorin@hotmail.com" 53 } 54 ], 55 "description": "A library that can be used to serialize closures (anonymous functions) and arbitrary objects.", 56 "homepage": "https://opis.io/closure", 57 "keywords": [ 58 "anonymous functions", 51 "name": "Nuno Maduro", 52 "email": "nuno@laravel.com" 53 } 54 ], 55 "description": "Laravel Serializable Closure provides an easy and secure way to serialize closures in PHP.", 56 "keywords": [ 59 57 "closure", 60 "function", 61 "serializable", 62 "serialization", 63 "serialize" 64 ], 65 "support": { 66 "issues": "https://github.com/opis/closure/issues", 67 "source": "https://github.com/opis/closure/tree/3.6.3" 68 }, 69 "install-path": "../opis/closure" 58 "laravel", 59 "serializable" 60 ], 61 "support": { 62 "issues": "https://github.com/laravel/serializable-closure/issues", 63 "source": "https://github.com/laravel/serializable-closure" 64 }, 65 "install-path": "../laravel/serializable-closure" 70 66 }, 71 67 { 72 68 "name": "php-di/invoker", 73 "version": "2. 0.0",74 "version_normalized": "2. 0.0.0",69 "version": "2.3.4", 70 "version_normalized": "2.3.4.0", 75 71 "source": { 76 72 "type": "git", 77 73 "url": "https://github.com/PHP-DI/Invoker.git", 78 "reference": "540c27c86f663e20fe39a24cd72fa76cdb21d41a" 79 }, 80 "dist": { 81 "type": "zip", 82 "url": "https://api.github.com/repos/PHP-DI/Invoker/zipball/540c27c86f663e20fe39a24cd72fa76cdb21d41a", 83 "reference": "540c27c86f663e20fe39a24cd72fa76cdb21d41a", 84 "shasum": "" 85 }, 86 "require": { 87 "psr/container": "~1.0" 74 "reference": "33234b32dafa8eb69202f950a1fc92055ed76a86" 75 }, 76 "dist": { 77 "type": "zip", 78 "url": "https://api.github.com/repos/PHP-DI/Invoker/zipball/33234b32dafa8eb69202f950a1fc92055ed76a86", 79 "reference": "33234b32dafa8eb69202f950a1fc92055ed76a86", 80 "shasum": "" 81 }, 82 "require": { 83 "php": ">=7.3", 84 "psr/container": "^1.0|^2.0" 88 85 }, 89 86 "require-dev": { 90 87 "athletic/athletic": "~0.1.8", 91 "phpunit/phpunit": "~4.5" 92 }, 93 "time": "2017-03-20T19:28:22+00:00", 88 "mnapoli/hard-mode": "~0.3.0", 89 "phpunit/phpunit": "^9.0" 90 }, 91 "time": "2023-09-08T09:24:21+00:00", 94 92 "type": "library", 95 93 "installation-source": "dist", … … 115 113 "support": { 116 114 "issues": "https://github.com/PHP-DI/Invoker/issues", 117 "source": "https://github.com/PHP-DI/Invoker/tree/master" 118 }, 115 "source": "https://github.com/PHP-DI/Invoker/tree/2.3.4" 116 }, 117 "funding": [ 118 { 119 "url": "https://github.com/mnapoli", 120 "type": "github" 121 } 122 ], 119 123 "install-path": "../php-di/invoker" 120 124 }, 121 125 { 122 126 "name": "php-di/php-di", 123 "version": "6. 3.5",124 "version_normalized": "6. 3.5.0",127 "version": "6.4.0", 128 "version_normalized": "6.4.0.0", 125 129 "source": { 126 130 "type": "git", 127 131 "url": "https://github.com/PHP-DI/PHP-DI.git", 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",134 "shasum": "" 135 }, 136 "require": { 137 " opis/closure": "^3.5.5",138 "php": ">=7. 2.0",132 "reference": "ae0f1b3b03d8b29dff81747063cbfd6276246cc4" 133 }, 134 "dist": { 135 "type": "zip", 136 "url": "https://api.github.com/repos/PHP-DI/PHP-DI/zipball/ae0f1b3b03d8b29dff81747063cbfd6276246cc4", 137 "reference": "ae0f1b3b03d8b29dff81747063cbfd6276246cc4", 138 "shasum": "" 139 }, 140 "require": { 141 "laravel/serializable-closure": "^1.0", 142 "php": ">=7.4.0", 139 143 "php-di/invoker": "^2.0", 140 144 "php-di/phpdoc-reader": "^2.0.1", … … 145 149 }, 146 150 "require-dev": { 147 "doctrine/annotations": "~1. 2",151 "doctrine/annotations": "~1.10", 148 152 "friendsofphp/php-cs-fixer": "^2.4", 149 153 "mnapoli/phpunit-easymock": "^1.2", 150 "ocramius/proxy-manager": "^2. 0.2",154 "ocramius/proxy-manager": "^2.11.2", 151 155 "phpstan/phpstan": "^0.12", 152 "phpunit/phpunit": "^ 8.5|^9.0"156 "phpunit/phpunit": "^9.5" 153 157 }, 154 158 "suggest": { … … 156 160 "ocramius/proxy-manager": "Install it if you want to use lazy injection (version ~2.0)" 157 161 }, 158 "time": "202 1-09-02T09:49:58+00:00",162 "time": "2022-04-09T16:46:38+00:00", 159 163 "type": "library", 160 164 "installation-source": "dist", … … 184 188 "support": { 185 189 "issues": "https://github.com/PHP-DI/PHP-DI/issues", 186 "source": "https://github.com/PHP-DI/PHP-DI/tree/6. 3.5"190 "source": "https://github.com/PHP-DI/PHP-DI/tree/6.4.0" 187 191 }, 188 192 "funding": [ … … 245 249 { 246 250 "name": "psr/container", 247 "version": "1.1. 1",248 "version_normalized": "1.1. 1.0",251 "version": "1.1.2", 252 "version_normalized": "1.1.2.0", 249 253 "source": { 250 254 "type": "git", 251 255 "url": "https://github.com/php-fig/container.git", 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",256 "reference": "513e0666f7216c7459170d56df27dfcefe1689ea" 257 }, 258 "dist": { 259 "type": "zip", 260 "url": "https://api.github.com/repos/php-fig/container/zipball/513e0666f7216c7459170d56df27dfcefe1689ea", 261 "reference": "513e0666f7216c7459170d56df27dfcefe1689ea", 262 "shasum": "" 263 }, 264 "require": { 265 "php": ">=7.4.0" 266 }, 267 "time": "2021-11-05T16:50:12+00:00", 264 268 "type": "library", 265 269 "installation-source": "dist", … … 290 294 "support": { 291 295 "issues": "https://github.com/php-fig/container/issues", 292 "source": "https://github.com/php-fig/container/tree/1.1. 1"296 "source": "https://github.com/php-fig/container/tree/1.1.2" 293 297 }, 294 298 "install-path": "../psr/container" -
simple-csv-exporter/tags/2.1.5/vendor/composer/installed.php
r2761526 r3197847 2 2 'root' => array( 3 3 'name' => 'hamworks/simple-csv-exporter', 4 'pretty_version' => '2. 0.1',5 'version' => '2. 0.1.0',6 'reference' => ' 1d0d4fca93369395531eb749924260d960ae3113',4 'pretty_version' => '2.1.5', 5 'version' => '2.1.5.0', 6 'reference' => '6e39eafa5c2689fce1c48e2d83aeb3669acde9d0', 7 7 'type' => 'library', 8 8 'install_path' => __DIR__ . '/../../', … … 12 12 'versions' => array( 13 13 'hamworks/simple-csv-exporter' => array( 14 'pretty_version' => '2. 0.1',15 'version' => '2. 0.1.0',16 'reference' => ' 1d0d4fca93369395531eb749924260d960ae3113',14 'pretty_version' => '2.1.5', 15 'version' => '2.1.5.0', 16 'reference' => '6e39eafa5c2689fce1c48e2d83aeb3669acde9d0', 17 17 'type' => 'library', 18 18 'install_path' => __DIR__ . '/../../', … … 20 20 'dev_requirement' => false, 21 21 ), 22 ' opis/closure' => array(23 'pretty_version' => ' 3.6.3',24 'version' => ' 3.6.3.0',25 'reference' => ' 3d81e4309d2a927abbe66df935f4bb60082805ad',22 'laravel/serializable-closure' => array( 23 'pretty_version' => 'v1.3.7', 24 'version' => '1.3.7.0', 25 'reference' => '4f48ade902b94323ca3be7646db16209ec76be3d', 26 26 'type' => 'library', 27 'install_path' => __DIR__ . '/../ opis/closure',27 'install_path' => __DIR__ . '/../laravel/serializable-closure', 28 28 'aliases' => array(), 29 29 'dev_requirement' => false, 30 30 ), 31 31 'php-di/invoker' => array( 32 'pretty_version' => '2. 0.0',33 'version' => '2. 0.0.0',34 'reference' => ' 540c27c86f663e20fe39a24cd72fa76cdb21d41a',32 'pretty_version' => '2.3.4', 33 'version' => '2.3.4.0', 34 'reference' => '33234b32dafa8eb69202f950a1fc92055ed76a86', 35 35 'type' => 'library', 36 36 'install_path' => __DIR__ . '/../php-di/invoker', … … 39 39 ), 40 40 'php-di/php-di' => array( 41 'pretty_version' => '6. 3.5',42 'version' => '6. 3.5.0',43 'reference' => ' b8126d066ce144765300ee0ab040c1ed6c9ef588',41 'pretty_version' => '6.4.0', 42 'version' => '6.4.0.0', 43 'reference' => 'ae0f1b3b03d8b29dff81747063cbfd6276246cc4', 44 44 'type' => 'library', 45 45 'install_path' => __DIR__ . '/../php-di/php-di', … … 57 57 ), 58 58 'psr/container' => array( 59 'pretty_version' => '1.1. 1',60 'version' => '1.1. 1.0',61 'reference' => ' 8622567409010282b7aeebe4bb841fe98b58dcaf',59 'pretty_version' => '1.1.2', 60 'version' => '1.1.2.0', 61 'reference' => '513e0666f7216c7459170d56df27dfcefe1689ea', 62 62 'type' => 'library', 63 63 'install_path' => __DIR__ . '/../psr/container', -
simple-csv-exporter/tags/2.1.5/vendor/composer/platform_check.php
r2761526 r3197847 5 5 $issues = array(); 6 6 7 if (!(PHP_VERSION_ID >= 70400)) {8 $issues[] = 'Your Composer dependencies require a PHP version ">= 7.4.0". You are running ' . PHP_VERSION . '.';7 if (!(PHP_VERSION_ID >= 80100)) { 8 $issues[] = 'Your Composer dependencies require a PHP version ">= 8.1.0". You are running ' . PHP_VERSION . '.'; 9 9 } 10 10 -
simple-csv-exporter/tags/2.1.5/vendor/php-di/invoker/src/CallableResolver.php
r2446249 r3197847 1 <?php 1 <?php declare(strict_types=1); 2 2 3 3 namespace Invoker; 4 4 5 use Closure; 5 6 use Invoker\Exception\NotCallableException; 6 7 use Psr\Container\ContainerInterface; 7 8 use Psr\Container\NotFoundExceptionInterface; 9 use ReflectionException; 10 use ReflectionMethod; 8 11 9 12 /** 10 13 * Resolves a callable from a container. 11 *12 * @author Matthieu Napoli <matthieu@mnapoli.fr>13 14 */ 14 15 class CallableResolver 15 16 { 16 /** 17 * @var ContainerInterface 18 */ 17 /** @var ContainerInterface */ 19 18 private $container; 20 19 … … 28 27 * 29 28 * @param callable|string|array $callable 30 *31 29 * @return callable Real PHP callable. 32 * 33 * @throws NotCallableException 30 * @throws NotCallableException|ReflectionException 34 31 */ 35 public function resolve($callable) 32 public function resolve($callable): callable 36 33 { 37 34 if (is_string($callable) && strpos($callable, '::') !== false) { … … 50 47 /** 51 48 * @param callable|string|array $callable 52 * @return callable 53 * @throws NotCallableException 49 * @return callable|mixed 50 * @throws NotCallableException|ReflectionException 54 51 */ 55 52 private function resolveFromContainer($callable) 56 53 { 57 54 // Shortcut for a very common use case 58 if ($callable instanceof \Closure) {55 if ($callable instanceof Closure) { 59 56 return $callable; 60 57 } 61 58 62 $isStaticCallToNonStaticMethod = false;63 64 59 // If it's already a callable there is nothing to do 65 60 if (is_callable($callable)) { 66 $isStaticCallToNonStaticMethod = $this->isStaticCallToNonStaticMethod($callable);67 if (! $ isStaticCallToNonStaticMethod) {61 // TODO with PHP 8 that should not be necessary to check this anymore 62 if (! $this->isStaticCallToNonStaticMethod($callable)) { 68 63 return $callable; 69 64 } … … 93 88 throw $e; 94 89 } 95 if ($isStaticCallToNonStaticMethod) {96 throw new NotCallableException(sprintf(97 'Cannot call %s::%s() because %s() is not a static method and "%s" is not a container entry',98 $callable[0],99 $callable[1],100 $callable[1],101 $callable[0]102 ));103 }104 90 throw new NotCallableException(sprintf( 105 'Cannot call %s on %s because it is not a class nor a valid container entry',91 'Cannot call %s() on %s because it is not a class nor a valid container entry', 106 92 $callable[1], 107 93 $callable[0] … … 118 104 * 119 105 * @param mixed $callable 120 * @ return bool106 * @throws ReflectionException 121 107 */ 122 private function isStaticCallToNonStaticMethod($callable) 108 private function isStaticCallToNonStaticMethod($callable): bool 123 109 { 124 110 if (is_array($callable) && is_string($callable[0])) { 125 list($class, $method) = $callable; 126 $reflection = new \ReflectionMethod($class, $method); 111 [$class, $method] = $callable; 112 113 if (! method_exists($class, $method)) { 114 return false; 115 } 116 117 $reflection = new ReflectionMethod($class, $method); 127 118 128 119 return ! $reflection->isStatic(); -
simple-csv-exporter/tags/2.1.5/vendor/php-di/invoker/src/Exception/InvocationException.php
r2446249 r3197847 1 <?php 1 <?php declare(strict_types=1); 2 2 3 3 namespace Invoker\Exception; … … 5 5 /** 6 6 * Impossible to invoke the callable. 7 *8 * @author Matthieu Napoli <matthieu@mnapoli.fr>9 7 */ 10 8 class InvocationException extends \Exception -
simple-csv-exporter/tags/2.1.5/vendor/php-di/invoker/src/Exception/NotCallableException.php
r2446249 r3197847 1 <?php 1 <?php declare(strict_types=1); 2 2 3 3 namespace Invoker\Exception; … … 5 5 /** 6 6 * The given callable is not actually callable. 7 *8 * @author Matthieu Napoli <matthieu@mnapoli.fr>9 7 */ 10 8 class NotCallableException extends InvocationException 11 9 { 12 10 /** 13 * @param string $value 14 * @param bool $containerEntry 15 * @return self 11 * @param mixed $value 16 12 */ 17 public static function fromInvalidCallable($value, $containerEntry = false)13 public static function fromInvalidCallable($value, bool $containerEntry = false): self 18 14 { 19 15 if (is_object($value)) { 20 16 $message = sprintf('Instance of %s is not a callable', get_class($value)); 21 } elseif (is_array($value) && isset($value[0] ) && isset($value[1])) {17 } elseif (is_array($value) && isset($value[0], $value[1])) { 22 18 $class = is_object($value[0]) ? get_class($value[0]) : $value[0]; 23 $extra = method_exists($class, '__call') ? ' A __call() method exists but magic methods are not supported.' : ''; 19 20 $extra = method_exists($class, '__call') || method_exists($class, '__callStatic') 21 ? ' A __call() or __callStatic() method exists but magic methods are not supported.' 22 : ''; 23 24 24 $message = sprintf('%s::%s() is not a callable.%s', $class, $value[1], $extra); 25 } elseif ($containerEntry) { 26 $message = var_export($value, true) . ' is neither a callable nor a valid container entry'; 25 27 } else { 26 if ($containerEntry) { 27 $message = var_export($value, true) . ' is neither a callable nor a valid container entry'; 28 } else { 29 $message = var_export($value, true) . ' is not a callable'; 30 } 28 $message = var_export($value, true) . ' is not a callable'; 31 29 } 32 30 -
simple-csv-exporter/tags/2.1.5/vendor/php-di/invoker/src/Exception/NotEnoughParametersException.php
r2446249 r3197847 1 <?php 1 <?php declare(strict_types=1); 2 2 3 3 namespace Invoker\Exception; … … 5 5 /** 6 6 * Not enough parameters could be resolved to invoke the callable. 7 *8 * @author Matthieu Napoli <matthieu@mnapoli.fr>9 7 */ 10 8 class NotEnoughParametersException extends InvocationException -
simple-csv-exporter/tags/2.1.5/vendor/php-di/invoker/src/Invoker.php
r2446249 r3197847 1 <?php 1 <?php declare(strict_types=1); 2 2 3 3 namespace Invoker; … … 12 12 use Invoker\Reflection\CallableReflection; 13 13 use Psr\Container\ContainerInterface; 14 use ReflectionParameter; 14 15 15 16 /** 16 17 * Invoke a callable. 17 *18 * @author Matthieu Napoli <matthieu@mnapoli.fr>19 18 */ 20 19 class Invoker implements InvokerInterface 21 20 { 22 /** 23 * @var CallableResolver|null 24 */ 21 /** @var CallableResolver|null */ 25 22 private $callableResolver; 26 23 27 /** 28 * @var ParameterResolver 29 */ 24 /** @var ParameterResolver */ 30 25 private $parameterResolver; 31 26 32 /** 33 * @var ContainerInterface|null 34 */ 27 /** @var ContainerInterface|null */ 35 28 private $container; 36 29 37 public function __construct( ParameterResolver $parameterResolver = null,ContainerInterface $container = null)30 public function __construct(?ParameterResolver $parameterResolver = null, ?ContainerInterface $container = null) 38 31 { 39 32 $this->parameterResolver = $parameterResolver ?: $this->createParameterResolver(); … … 48 41 * {@inheritdoc} 49 42 */ 50 public function call($callable, array $parameters = array())43 public function call($callable, array $parameters = []) 51 44 { 52 45 if ($this->callableResolver) { … … 63 56 $callableReflection = CallableReflection::create($callable); 64 57 65 $args = $this->parameterResolver->getParameters($callableReflection, $parameters, array());58 $args = $this->parameterResolver->getParameters($callableReflection, $parameters, []); 66 59 67 60 // Sort by array key because call_user_func_array ignores numeric keys … … 70 63 // Check all parameters are resolved 71 64 $diff = array_diff_key($callableReflection->getParameters(), $args); 72 if (! empty($diff)) { 73 /** @var \ReflectionParameter $parameter */ 74 $parameter = reset($diff); 65 $parameter = reset($diff); 66 if ($parameter && \assert($parameter instanceof ReflectionParameter) && ! $parameter->isVariadic()) { 75 67 throw new NotEnoughParametersException(sprintf( 76 68 'Unable to invoke the callable because no value was given for parameter %d ($%s)', … … 85 77 /** 86 78 * Create the default parameter resolver. 87 *88 * @return ParameterResolver89 79 */ 90 private function createParameterResolver() 80 private function createParameterResolver(): ParameterResolver 91 81 { 92 return new ResolverChain( array(82 return new ResolverChain([ 93 83 new NumericArrayResolver, 94 84 new AssociativeArrayResolver, 95 85 new DefaultValueResolver, 96 ));86 ]); 97 87 } 98 88 … … 100 90 * @return ParameterResolver By default it's a ResolverChain 101 91 */ 102 public function getParameterResolver() 92 public function getParameterResolver(): ParameterResolver 103 93 { 104 94 return $this->parameterResolver; 105 95 } 106 96 107 /** 108 * @return ContainerInterface|null 109 */ 110 public function getContainer() 97 public function getContainer(): ?ContainerInterface 111 98 { 112 99 return $this->container; … … 116 103 * @return CallableResolver|null Returns null if no container was given in the constructor. 117 104 */ 118 public function getCallableResolver() 105 public function getCallableResolver(): ?CallableResolver 119 106 { 120 107 return $this->callableResolver; -
simple-csv-exporter/tags/2.1.5/vendor/php-di/invoker/src/InvokerInterface.php
r2446249 r3197847 1 <?php 1 <?php declare(strict_types=1); 2 2 3 3 namespace Invoker; … … 9 9 /** 10 10 * Invoke a callable. 11 *12 * @author Matthieu Napoli <matthieu@mnapoli.fr>13 11 */ 14 12 interface InvokerInterface … … 17 15 * Call the given function using the given parameters. 18 16 * 19 * @param callable $callable Function to call. 20 * @param array $parameters Parameters to use. 21 * 17 * @param callable|array|string $callable Function to call. 18 * @param array $parameters Parameters to use. 22 19 * @return mixed Result of the function. 23 *24 20 * @throws InvocationException Base exception class for all the sub-exceptions below. 25 21 * @throws NotCallableException 26 22 * @throws NotEnoughParametersException 27 23 */ 28 public function call($callable, array $parameters = array());24 public function call($callable, array $parameters = []); 29 25 } -
simple-csv-exporter/tags/2.1.5/vendor/php-di/invoker/src/ParameterResolver/AssociativeArrayResolver.php
r2446249 r3197847 1 <?php 1 <?php declare(strict_types=1); 2 2 3 3 namespace Invoker\ParameterResolver; … … 12 12 * 13 13 * Parameters that are not indexed by a string are ignored. 14 *15 * @author Matthieu Napoli <matthieu@mnapoli.fr>16 14 */ 17 15 class AssociativeArrayResolver implements ParameterResolver … … 21 19 array $providedParameters, 22 20 array $resolvedParameters 23 ) {21 ): array { 24 22 $parameters = $reflection->getParameters(); 25 23 -
simple-csv-exporter/tags/2.1.5/vendor/php-di/invoker/src/ParameterResolver/Container/ParameterNameContainerResolver.php
r2446249 r3197847 1 <?php 1 <?php declare(strict_types=1); 2 2 3 3 namespace Invoker\ParameterResolver\Container; … … 9 9 /** 10 10 * Inject entries from a DI container using the parameter names. 11 *12 * @author Matthieu Napoli <matthieu@mnapoli.fr>13 11 */ 14 12 class ParameterNameContainerResolver implements ParameterResolver 15 13 { 16 /** 17 * @var ContainerInterface 18 */ 14 /** @var ContainerInterface */ 19 15 private $container; 20 16 … … 31 27 array $providedParameters, 32 28 array $resolvedParameters 33 ) {29 ): array { 34 30 $parameters = $reflection->getParameters(); 35 31 -
simple-csv-exporter/tags/2.1.5/vendor/php-di/invoker/src/ParameterResolver/Container/TypeHintContainerResolver.php
r2446249 r3197847 1 <?php 1 <?php declare(strict_types=1); 2 2 3 3 namespace Invoker\ParameterResolver\Container; … … 6 6 use Psr\Container\ContainerInterface; 7 7 use ReflectionFunctionAbstract; 8 use ReflectionNamedType; 8 9 9 10 /** 10 11 * Inject entries from a DI container using the type-hints. 11 *12 * @author Matthieu Napoli <matthieu@mnapoli.fr>13 12 */ 14 13 class TypeHintContainerResolver implements ParameterResolver 15 14 { 16 /** 17 * @var ContainerInterface 18 */ 15 /** @var ContainerInterface */ 19 16 private $container; 20 17 … … 31 28 array $providedParameters, 32 29 array $resolvedParameters 33 ) {30 ): array { 34 31 $parameters = $reflection->getParameters(); 35 32 … … 40 37 41 38 foreach ($parameters as $index => $parameter) { 42 $parameterClass = $parameter->getClass(); 39 $parameterType = $parameter->getType(); 40 if (! $parameterType) { 41 // No type 42 continue; 43 } 44 if (! $parameterType instanceof ReflectionNamedType) { 45 // Union types are not supported 46 continue; 47 } 48 if ($parameterType->isBuiltin()) { 49 // Primitive types are not supported 50 continue; 51 } 43 52 44 if ($parameterClass && $this->container->has($parameterClass->name)) { 45 $resolvedParameters[$index] = $this->container->get($parameterClass->name); 53 $parameterClass = $parameterType->getName(); 54 if ($parameterClass === 'self') { 55 $parameterClass = $parameter->getDeclaringClass()->getName(); 56 } 57 58 if ($this->container->has($parameterClass)) { 59 $resolvedParameters[$index] = $this->container->get($parameterClass); 46 60 } 47 61 } -
simple-csv-exporter/tags/2.1.5/vendor/php-di/invoker/src/ParameterResolver/DefaultValueResolver.php
r2446249 r3197847 1 <?php 1 <?php declare(strict_types=1); 2 2 3 3 namespace Invoker\ParameterResolver; … … 8 8 /** 9 9 * Finds the default value for a parameter, *if it exists*. 10 *11 * @author Matthieu Napoli <matthieu@mnapoli.fr>12 10 */ 13 11 class DefaultValueResolver implements ParameterResolver … … 17 15 array $providedParameters, 18 16 array $resolvedParameters 19 ) {17 ): array { 20 18 $parameters = $reflection->getParameters(); 21 19 … … 26 24 27 25 foreach ($parameters as $index => $parameter) { 28 /** @var \ReflectionParameter $parameter */29 if ($parameter->is Optional()) {26 \assert($parameter instanceof \ReflectionParameter); 27 if ($parameter->isDefaultValueAvailable()) { 30 28 try { 31 29 $resolvedParameters[$index] = $parameter->getDefaultValue(); 32 30 } catch (ReflectionException $e) { 33 31 // Can't get default values from PHP internal classes and functions 32 } 33 } else { 34 $parameterType = $parameter->getType(); 35 if ($parameterType && $parameterType->allowsNull()) { 36 $resolvedParameters[$index] = null; 34 37 } 35 38 } -
simple-csv-exporter/tags/2.1.5/vendor/php-di/invoker/src/ParameterResolver/NumericArrayResolver.php
r2446249 r3197847 1 <?php 1 <?php declare(strict_types=1); 2 2 3 3 namespace Invoker\ParameterResolver; … … 14 14 * Parameters that are not indexed by a number (i.e. parameter position) 15 15 * will be ignored. 16 *17 * @author Matthieu Napoli <matthieu@mnapoli.fr>18 16 */ 19 17 class NumericArrayResolver implements ParameterResolver … … 23 21 array $providedParameters, 24 22 array $resolvedParameters 25 ) {23 ): array { 26 24 // Skip parameters already resolved 27 25 if (! empty($resolvedParameters)) { -
simple-csv-exporter/tags/2.1.5/vendor/php-di/invoker/src/ParameterResolver/ParameterResolver.php
r2446249 r3197847 1 <?php 1 <?php declare(strict_types=1); 2 2 3 3 namespace Invoker\ParameterResolver; … … 7 7 /** 8 8 * Resolves the parameters to use to call the callable. 9 *10 * @author Matthieu Napoli <matthieu@mnapoli.fr>11 9 */ 12 10 interface ParameterResolver … … 23 21 * @param array $providedParameters Parameters provided by the caller. 24 22 * @param array $resolvedParameters Parameters resolved (indexed by parameter position). 25 *26 23 * @return array 27 24 */ -
simple-csv-exporter/tags/2.1.5/vendor/php-di/invoker/src/ParameterResolver/ResolverChain.php
r2446249 r3197847 1 <?php 1 <?php declare(strict_types=1); 2 2 3 3 namespace Invoker\ParameterResolver; … … 9 9 * 10 10 * Chain of responsibility pattern. 11 *12 * @author Matthieu Napoli <matthieu@mnapoli.fr>13 11 */ 14 12 class ResolverChain implements ParameterResolver 15 13 { 16 /** 17 * @var ParameterResolver[] 18 */ 19 private $resolvers = array(); 14 /** @var ParameterResolver[] */ 15 private $resolvers; 20 16 21 public function __construct(array $resolvers = array())17 public function __construct(array $resolvers = []) 22 18 { 23 19 $this->resolvers = $resolvers; … … 28 24 array $providedParameters, 29 25 array $resolvedParameters 30 ) {26 ): array { 31 27 $reflectionParameters = $reflection->getParameters(); 32 28 … … 50 46 /** 51 47 * Push a parameter resolver after the ones already registered. 52 *53 * @param ParameterResolver $resolver54 48 */ 55 public function appendResolver(ParameterResolver $resolver) 49 public function appendResolver(ParameterResolver $resolver): void 56 50 { 57 51 $this->resolvers[] = $resolver; … … 60 54 /** 61 55 * Insert a parameter resolver before the ones already registered. 62 *63 * @param ParameterResolver $resolver64 56 */ 65 public function prependResolver(ParameterResolver $resolver) 57 public function prependResolver(ParameterResolver $resolver): void 66 58 { 67 59 array_unshift($this->resolvers, $resolver); -
simple-csv-exporter/tags/2.1.5/vendor/php-di/invoker/src/ParameterResolver/TypeHintResolver.php
r2446249 r3197847 1 <?php 1 <?php declare(strict_types=1); 2 2 3 3 namespace Invoker\ParameterResolver; 4 4 5 use Invoker\ParameterResolver\ParameterResolver;6 5 use ReflectionFunctionAbstract; 6 use ReflectionNamedType; 7 7 8 8 /** … … 10 10 * 11 11 * Tries to match type-hints with the parameters provided. 12 *13 * @author Felix Becker <f.becker@outlook.com>14 12 */ 15 13 class TypeHintResolver implements ParameterResolver … … 19 17 array $providedParameters, 20 18 array $resolvedParameters 21 ) {19 ): array { 22 20 $parameters = $reflection->getParameters(); 23 21 … … 28 26 29 27 foreach ($parameters as $index => $parameter) { 30 $parameterClass = $parameter->getClass(); 28 $parameterType = $parameter->getType(); 29 if (! $parameterType) { 30 // No type 31 continue; 32 } 33 if (! $parameterType instanceof ReflectionNamedType) { 34 // Union types are not supported 35 continue; 36 } 37 if ($parameterType->isBuiltin()) { 38 // Primitive types are not supported 39 continue; 40 } 31 41 32 if ($parameterClass && array_key_exists($parameterClass->name, $providedParameters)) { 33 $resolvedParameters[$index] = $providedParameters[$parameterClass->name]; 42 $parameterClass = $parameterType->getName(); 43 if ($parameterClass === 'self') { 44 $parameterClass = $parameter->getDeclaringClass()->getName(); 45 } 46 47 if (array_key_exists($parameterClass, $providedParameters)) { 48 $resolvedParameters[$index] = $providedParameters[$parameterClass]; 34 49 } 35 50 } -
simple-csv-exporter/tags/2.1.5/vendor/php-di/invoker/src/Reflection/CallableReflection.php
r2446249 r3197847 1 <?php 1 <?php declare(strict_types=1); 2 2 3 3 namespace Invoker\Reflection; 4 4 5 use Closure; 5 6 use Invoker\Exception\NotCallableException; 7 use ReflectionException; 8 use ReflectionFunction; 9 use ReflectionFunctionAbstract; 10 use ReflectionMethod; 6 11 7 12 /** 8 * Create a reflection object from a callable .13 * Create a reflection object from a callable or a callable-like. 9 14 * 10 * @ author Matthieu Napoli <matthieu@mnapoli.fr>15 * @internal 11 16 */ 12 17 class CallableReflection 13 18 { 14 19 /** 15 * @param callable $callable 16 * 17 * @return \ReflectionFunctionAbstract 18 * 19 * @throws NotCallableException 20 * 21 * TODO Use the `callable` type-hint once support for PHP 5.4 and up. 20 * @param callable|array|string $callable Can be a callable or a callable-like. 21 * @throws NotCallableException|ReflectionException 22 22 */ 23 public static function create($callable) 23 public static function create($callable): ReflectionFunctionAbstract 24 24 { 25 25 // Closure 26 if ($callable instanceof \Closure) {27 return new \ReflectionFunction($callable);26 if ($callable instanceof Closure) { 27 return new ReflectionFunction($callable); 28 28 } 29 29 30 30 // Array callable 31 31 if (is_array($callable)) { 32 list($class, $method)= $callable;32 [$class, $method] = $callable; 33 33 34 34 if (! method_exists($class, $method)) { … … 36 36 } 37 37 38 return new \ReflectionMethod($class, $method);38 return new ReflectionMethod($class, $method); 39 39 } 40 40 41 41 // Callable object (i.e. implementing __invoke()) 42 42 if (is_object($callable) && method_exists($callable, '__invoke')) { 43 return new \ReflectionMethod($callable, '__invoke'); 44 } 45 46 // Callable class (i.e. implementing __invoke()) 47 if (is_string($callable) && class_exists($callable) && method_exists($callable, '__invoke')) { 48 return new \ReflectionMethod($callable, '__invoke'); 43 return new ReflectionMethod($callable, '__invoke'); 49 44 } 50 45 51 46 // Standard function 52 47 if (is_string($callable) && function_exists($callable)) { 53 return new \ReflectionFunction($callable);48 return new ReflectionFunction($callable); 54 49 } 55 50 -
simple-csv-exporter/tags/2.1.5/vendor/php-di/php-di/change-log.md
r2446249 r3197847 1 1 # Change log 2 3 ## 6.1.0 4 5 - [#791](https://github.com/PHP-DI/PHP-DI/issues/791) Support PHP 8.1, remove support for PHP 7.2 2 6 3 7 ## 6.0.2 -
simple-csv-exporter/tags/2.1.5/vendor/php-di/php-di/src/Compiler/Compiler.php
r2761526 r3197847 22 22 use function file_put_contents; 23 23 use InvalidArgumentException; 24 use Opis\Closure\SerializableClosure;24 use Laravel\SerializableClosure\Support\ReflectionClosure; 25 25 use function rename; 26 26 use function sprintf; … … 402 402 private function compileClosure(\Closure $closure) : string 403 403 { 404 $wrapper = new SerializableClosure($closure); 405 $reflector = $wrapper->getReflector(); 404 $reflector = new ReflectionClosure($closure); 406 405 407 406 if ($reflector->getUseVariables()) { -
simple-csv-exporter/tags/2.1.5/vendor/php-di/php-di/src/Definition/Resolver/ArrayResolver.php
r2446249 r3197847 43 43 44 44 // Resolve nested definitions 45 array_walk_recursive($values, function (& $value, $key) use ($definition) {45 array_walk_recursive($values, function (& $value, $key) use ($definition) { 46 46 if ($value instanceof Definition) { 47 47 $value = $this->resolveDefinition($value, $definition, $key); -
simple-csv-exporter/tags/2.1.5/vendor/psr/container/src/ContainerExceptionInterface.php
r2761526 r3197847 3 3 namespace Psr\Container; 4 4 5 use Throwable; 6 5 7 /** 6 8 * Base interface representing a generic exception in a container. 7 9 */ 8 interface ContainerExceptionInterface 10 interface ContainerExceptionInterface extends Throwable 9 11 { 10 12 } -
simple-csv-exporter/trunk/readme.txt
r2761526 r3197847 6 6 Tested up to: 6.0 7 7 Requires PHP: 7.4 8 Stable tag: 2. 0.18 Stable tag: 2.1.5 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 37 37 Customize posts for export. 38 38 39 <pre>add_action( 'simple_csv_exporter_ created_data_builder_for_wp_posts_pre_get_posts',39 <pre>add_action( 'simple_csv_exporter_data_builder_for_wp_posts_pre_get_posts', 40 40 function ( WP_Query $query ) { 41 41 $query->set( 'order', 'ASC' ); … … 45 45 Data filter for metadata. 46 46 47 <pre>use HAMWORKS\WP\Simple_CSV_Exporter\Data_Builder; 48 add_filter( 'simple_csv_exporter_created_data_builder_for_wp_posts_get_post_meta_fields', 47 <pre>add_filter( 'simple_csv_exporter_data_builder_for_wp_posts_get_post_meta_fields', 49 48 function ( array $fields ) { 50 49 foreach ( … … 60 59 } 61 60 );</pre> 61 Data filter for post. 62 63 <pre>add_filter( 64 'simple_csv_exporter_data_builder_for_wp_posts_row_data', 65 function ( $row_data, $post ) { 66 $row_data['permalink'] = get_permalink( $post ); 67 unset( $row_data['comment_status'] ); 68 return $row_data; 69 }, 70 10, 71 2 72 );</pre> 62 73 63 74 == Changelog == 75 76 = 2.1.0 = 77 * Rename hooks. 78 * Add `simple_csv_exporter_data_builder_for_wp_posts_row_data` filter. 64 79 65 80 = 2.0.1 = -
simple-csv-exporter/trunk/simple-csv-exporter.php
r2761526 r3197847 11 11 * Domain Path: /languages 12 12 * Requires PHP: 7.4 13 * Version: 2. 0.113 * Version: 2.1.5 14 14 */ 15 15 -
simple-csv-exporter/trunk/src/Admin_UI.php
r2446249 r3197847 13 13 * @var string 14 14 */ 15 private $slug;15 private string $slug; 16 16 17 17 /** 18 18 * @var Nonce 19 19 */ 20 private $nonce;20 private Nonce $nonce; 21 21 22 22 /** 23 23 * @var string 24 24 */ 25 private $post_type_var_name;25 private string $post_type_var_name; 26 26 27 27 /** … … 97 97 <?php 98 98 } 99 100 99 } -
simple-csv-exporter/trunk/src/CSV_Writer.php
r2437085 r3197847 13 13 * @var string 14 14 */ 15 private $file_name;15 private string $file_name; 16 16 17 17 /** 18 18 * @var iterable 19 19 */ 20 private $rows;20 private iterable $rows; 21 21 22 22 /** … … 45 45 */ 46 46 public function write( iterable $data ) { 47 // phpcs:ignore WordPress.WP.AlternativeFunctions.file_system_read_fopen47 // phpcs:ignore 48 48 $file_pointer = fopen( $this->file_name, 'w' ); 49 49 … … 56 56 fputcsv( $file_pointer, $row ); 57 57 } 58 // phpcs:ignore WordPress.WP.AlternativeFunctions.file_system_read_fclose58 // phpcs:ignore 59 59 fclose( $file_pointer ); 60 60 } 61 62 61 } -
simple-csv-exporter/trunk/src/Container_Factory.php
r2446249 r3197847 28 28 'slug' => 'simple_csv_exporter', 29 29 'post_type' => function ( ContainerInterface $c ) { 30 return filter_input( INPUT_POST, $c->get( 'var.name' ), FILTER_SANITIZE_S TRING) ?? '';30 return filter_input( INPUT_POST, $c->get( 'var.name' ), FILTER_SANITIZE_SPECIAL_CHARS ) ?? ''; 31 31 }, 32 32 Nonce::class => create()->constructor( get( 'slug' ) ), … … 45 45 )->parameter( 'post_type', get( 'post_type' ) ), 46 46 Admin_UI::class => autowire()->constructor( get( 'slug' ), get( 'var.name' ) ), 47 Exporter::class => autowire()->constructor( get( 'slug' )),47 Exporter::class => autowire()->constructor(), 48 48 ) 49 49 ); -
simple-csv-exporter/trunk/src/Data_Builder.php
r2446249 r3197847 19 19 * @var string[] 20 20 */ 21 protected $drop_columns = array();21 protected array $drop_columns = array(); 22 22 23 23 … … 57 57 * @return Traversable 58 58 */ 59 abstract protected function rows() ;59 abstract protected function rows(): Traversable; 60 60 61 61 /** -
simple-csv-exporter/trunk/src/Data_Builder_For_WP_Posts.php
r2446249 r3197847 18 18 * @var string 19 19 */ 20 private $post_type;20 private string $post_type; 21 21 22 22 /** … … 25 25 * @var string[] 26 26 */ 27 protected $drop_columns = array(27 protected array $drop_columns = array( 28 28 'post_date_gmt', 29 29 'ping_status', … … 46 46 * @var string[] 47 47 */ 48 private $meta_keys = array();48 private array $meta_keys = array(); 49 49 50 50 /** … … 53 53 * @var WP_Taxonomy[] 54 54 */ 55 private $taxonomies;55 private array $taxonomies; 56 56 57 57 /** … … 60 60 * @var WP_Query 61 61 */ 62 private $query;62 private WP_Query $query; 63 63 64 64 /** … … 76 76 public function get_name(): string { 77 77 $post_type = get_post_type_object( $this->post_type ); 78 78 79 return $post_type->label ?? ''; 79 80 } … … 143 144 * @param array $fields meta key and value. 144 145 * @param WP_Post $post post object. 145 */ 146 return apply_filters( 'simple_csv_exporter_created_data_builder_for_wp_posts_get_post_meta_fields', $fields, $post ); 146 * 147 * @deprecated 2.1.0 148 */ 149 $fields = apply_filters( 'simple_csv_exporter_created_data_builder_for_wp_posts_get_post_meta_fields', $fields, $post ); 150 151 /** 152 * @param array $fields meta key and value. 153 * @param WP_Post $post post object. 154 * @since 2.1.0 155 */ 156 return apply_filters( 'simple_csv_exporter_data_builder_for_wp_posts_get_post_meta_fields', $fields, $post ); 147 157 } 148 158 … … 218 228 * 219 229 * @param WP_Query $query 230 * 231 * @deprecated 2.1.0 220 232 */ 221 233 do_action( 'simple_csv_exporter_created_data_builder_for_wp_posts_pre_get_posts', $query ); 222 234 235 /** 236 * Fires after the query variable object is created, but before the actual query is run. 237 * 238 * @param WP_Query $query 239 * 240 * @since 2.1.0 241 */ 242 do_action( 'simple_csv_exporter_data_builder_for_wp_posts_pre_get_posts', $query ); 223 243 $query->get_posts(); 224 244 $this->query = $query; … … 239 259 while ( $this->query->have_posts() ) { 240 260 $this->query->the_post(); 241 $post = get_post();242 $ post_data = array_merge(261 $post = get_post(); 262 $row_data = array_merge( 243 263 $post->to_array(), 244 264 array( … … 251 271 ); 252 272 273 /** 274 * Filter for row data. 275 * 276 * @param array $row_data row data. 277 * @param WP_Post $post post object. 278 * 279 * @since 2.1.0 280 */ 281 $row_data = apply_filters( 'simple_csv_exporter_data_builder_for_wp_posts_row_data', $row_data, $post ); 282 253 283 // Note: 'foo' => null なものを、まとめて削除. 254 284 yield array_filter( 255 $ post_data,285 $row_data, 256 286 function ( $fields ) { 257 287 return is_string( $fields ) || is_numeric( $fields ); … … 260 290 } 261 291 } 262 263 264 292 } -
simple-csv-exporter/trunk/src/Exporter.php
r2446249 r3197847 10 10 class Exporter { 11 11 /** 12 * @var string13 */14 private $slug;15 16 /**17 12 * @var Nonce 18 13 */ 19 private $nonce;14 private Nonce $nonce; 20 15 21 16 /** 22 17 * @var Data_Builder 23 18 */ 24 private $data_builder;19 private Data_Builder $data_builder; 25 20 26 21 /** 27 22 * Exporter 28 23 * 29 * @param string $slug Slug for admin page.30 24 * @param Nonce $nonce 31 25 * @param Data_Builder $data_builder 32 26 */ 33 public function __construct( string $slug, Nonce $nonce, Data_Builder $data_builder ) { 34 $this->slug = $slug; 27 public function __construct( Nonce $nonce, Data_Builder $data_builder ) { 35 28 $this->nonce = $nonce; 36 29 $this->data_builder = $data_builder; … … 72 65 header( 'Content-Transfer-Encoding: binary' ); 73 66 } 74 75 76 67 } -
simple-csv-exporter/trunk/vendor/autoload.php
r2761526 r3197847 4 4 5 5 if (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); 6 if (!headers_sent()) { 7 header('HTTP/1.1 500 Internal Server Error'); 8 } 9 $err = '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; 10 if (!ini_get('display_errors')) { 11 if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') { 12 fwrite(STDERR, $err); 13 } elseif (!headers_sent()) { 14 echo $err; 15 } 16 } 17 trigger_error( 18 $err, 19 E_USER_ERROR 20 ); 8 21 } 9 22 10 23 require_once __DIR__ . '/composer/autoload_real.php'; 11 24 12 return ComposerAutoloaderInit 2e765ad8ae0dfed5be0e9b093247e6db::getLoader();25 return ComposerAutoloaderInitee05b39afac0c66e4ee8567eb02378b8::getLoader(); -
simple-csv-exporter/trunk/vendor/composer/ClassLoader.php
r2761526 r3197847 43 43 class ClassLoader 44 44 { 45 /** @var ?string */ 45 /** @var \Closure(string):void */ 46 private static $includeFile; 47 48 /** @var string|null */ 46 49 private $vendorDir; 47 50 48 51 // PSR-4 49 52 /** 50 * @var array[] 51 * @psalm-var array<string, array<string, int>> 53 * @var array<string, array<string, int>> 52 54 */ 53 55 private $prefixLengthsPsr4 = array(); 54 56 /** 55 * @var array[] 56 * @psalm-var array<string, array<int, string>> 57 * @var array<string, list<string>> 57 58 */ 58 59 private $prefixDirsPsr4 = array(); 59 60 /** 60 * @var array[] 61 * @psalm-var array<string, string> 61 * @var list<string> 62 62 */ 63 63 private $fallbackDirsPsr4 = array(); … … 65 65 // PSR-0 66 66 /** 67 * @var array[] 68 * @psalm-var array<string, array<string, string[]>> 67 * List of PSR-0 prefixes 68 * 69 * Structured as array('F (first letter)' => array('Foo\Bar (full prefix)' => array('path', 'path2'))) 70 * 71 * @var array<string, array<string, list<string>>> 69 72 */ 70 73 private $prefixesPsr0 = array(); 71 74 /** 72 * @var array[] 73 * @psalm-var array<string, string> 75 * @var list<string> 74 76 */ 75 77 private $fallbackDirsPsr0 = array(); … … 79 81 80 82 /** 81 * @var string[] 82 * @psalm-var array<string, string> 83 * @var array<string, string> 83 84 */ 84 85 private $classMap = array(); … … 88 89 89 90 /** 90 * @var bool[] 91 * @psalm-var array<string, bool> 91 * @var array<string, bool> 92 92 */ 93 93 private $missingClasses = array(); 94 94 95 /** @var ?string*/95 /** @var string|null */ 96 96 private $apcuPrefix; 97 97 98 98 /** 99 * @var self[]99 * @var array<string, self> 100 100 */ 101 101 private static $registeredLoaders = array(); 102 102 103 103 /** 104 * @param ?string$vendorDir104 * @param string|null $vendorDir 105 105 */ 106 106 public function __construct($vendorDir = null) 107 107 { 108 108 $this->vendorDir = $vendorDir; 109 } 110 111 /** 112 * @return string[] 109 self::initializeIncludeClosure(); 110 } 111 112 /** 113 * @return array<string, list<string>> 113 114 */ 114 115 public function getPrefixes() … … 122 123 123 124 /** 124 * @return array[] 125 * @psalm-return array<string, array<int, string>> 125 * @return array<string, list<string>> 126 126 */ 127 127 public function getPrefixesPsr4() … … 131 131 132 132 /** 133 * @return array[] 134 * @psalm-return array<string, string> 133 * @return list<string> 135 134 */ 136 135 public function getFallbackDirs() … … 140 139 141 140 /** 142 * @return array[] 143 * @psalm-return array<string, string> 141 * @return list<string> 144 142 */ 145 143 public function getFallbackDirsPsr4() … … 149 147 150 148 /** 151 * @return string[] Array of classname => path 152 * @psalm-return array<string, string> 149 * @return array<string, string> Array of classname => path 153 150 */ 154 151 public function getClassMap() … … 158 155 159 156 /** 160 * @param string[] $classMap Class to filename map 161 * @psalm-param array<string, string> $classMap 157 * @param array<string, string> $classMap Class to filename map 162 158 * 163 159 * @return void … … 176 172 * appending or prepending to the ones previously set for this prefix. 177 173 * 178 * @param string $prefix The prefix179 * @param string[]|string $paths The PSR-0 root directories180 * @param bool $prepend Whether to prepend the directories174 * @param string $prefix The prefix 175 * @param list<string>|string $paths The PSR-0 root directories 176 * @param bool $prepend Whether to prepend the directories 181 177 * 182 178 * @return void … … 184 180 public function add($prefix, $paths, $prepend = false) 185 181 { 182 $paths = (array) $paths; 186 183 if (!$prefix) { 187 184 if ($prepend) { 188 185 $this->fallbackDirsPsr0 = array_merge( 189 (array)$paths,186 $paths, 190 187 $this->fallbackDirsPsr0 191 188 ); … … 193 190 $this->fallbackDirsPsr0 = array_merge( 194 191 $this->fallbackDirsPsr0, 195 (array)$paths192 $paths 196 193 ); 197 194 } … … 202 199 $first = $prefix[0]; 203 200 if (!isset($this->prefixesPsr0[$first][$prefix])) { 204 $this->prefixesPsr0[$first][$prefix] = (array)$paths;201 $this->prefixesPsr0[$first][$prefix] = $paths; 205 202 206 203 return; … … 208 205 if ($prepend) { 209 206 $this->prefixesPsr0[$first][$prefix] = array_merge( 210 (array)$paths,207 $paths, 211 208 $this->prefixesPsr0[$first][$prefix] 212 209 ); … … 214 211 $this->prefixesPsr0[$first][$prefix] = array_merge( 215 212 $this->prefixesPsr0[$first][$prefix], 216 (array)$paths213 $paths 217 214 ); 218 215 } … … 223 220 * appending or prepending to the ones previously set for this namespace. 224 221 * 225 * @param string $prefix The prefix/namespace, with trailing '\\'226 * @param string[]|string $paths The PSR-4 base directories227 * @param bool $prepend Whether to prepend the directories222 * @param string $prefix The prefix/namespace, with trailing '\\' 223 * @param list<string>|string $paths The PSR-4 base directories 224 * @param bool $prepend Whether to prepend the directories 228 225 * 229 226 * @throws \InvalidArgumentException … … 233 230 public function addPsr4($prefix, $paths, $prepend = false) 234 231 { 232 $paths = (array) $paths; 235 233 if (!$prefix) { 236 234 // Register directories for the root namespace. 237 235 if ($prepend) { 238 236 $this->fallbackDirsPsr4 = array_merge( 239 (array)$paths,237 $paths, 240 238 $this->fallbackDirsPsr4 241 239 ); … … 243 241 $this->fallbackDirsPsr4 = array_merge( 244 242 $this->fallbackDirsPsr4, 245 (array)$paths243 $paths 246 244 ); 247 245 } … … 253 251 } 254 252 $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; 255 $this->prefixDirsPsr4[$prefix] = (array)$paths;253 $this->prefixDirsPsr4[$prefix] = $paths; 256 254 } elseif ($prepend) { 257 255 // Prepend directories for an already registered namespace. 258 256 $this->prefixDirsPsr4[$prefix] = array_merge( 259 (array)$paths,257 $paths, 260 258 $this->prefixDirsPsr4[$prefix] 261 259 ); … … 264 262 $this->prefixDirsPsr4[$prefix] = array_merge( 265 263 $this->prefixDirsPsr4[$prefix], 266 (array)$paths264 $paths 267 265 ); 268 266 } … … 273 271 * replacing any others previously set for this prefix. 274 272 * 275 * @param string $prefix The prefix276 * @param string[]|string $paths The PSR-0 base directories273 * @param string $prefix The prefix 274 * @param list<string>|string $paths The PSR-0 base directories 277 275 * 278 276 * @return void … … 291 289 * replacing any others previously set for this namespace. 292 290 * 293 * @param string $prefix The prefix/namespace, with trailing '\\'294 * @param string[]|string $paths The PSR-4 base directories291 * @param string $prefix The prefix/namespace, with trailing '\\' 292 * @param list<string>|string $paths The PSR-4 base directories 295 293 * 296 294 * @throws \InvalidArgumentException … … 426 424 { 427 425 if ($file = $this->findFile($class)) { 428 includeFile($file); 426 $includeFile = self::$includeFile; 427 $includeFile($file); 429 428 430 429 return true; … … 477 476 478 477 /** 479 * Returns the currently registered loaders indexed by their corresponding vendor directories.480 * 481 * @return self[]478 * Returns the currently registered loaders keyed by their corresponding vendor directories. 479 * 480 * @return array<string, self> 482 481 */ 483 482 public static function getRegisteredLoaders() … … 556 555 return false; 557 556 } 557 558 /** 559 * @return void 560 */ 561 private static function initializeIncludeClosure() 562 { 563 if (self::$includeFile !== null) { 564 return; 565 } 566 567 /** 568 * Scope isolated include. 569 * 570 * Prevents access to $this/self from included files. 571 * 572 * @param string $file 573 * @return void 574 */ 575 self::$includeFile = \Closure::bind(static function($file) { 576 include $file; 577 }, null, null); 578 } 558 579 } 559 560 /**561 * Scope isolated include.562 *563 * Prevents access to $this/self from included files.564 *565 * @param string $file566 * @return void567 * @private568 */569 function includeFile($file)570 {571 include $file;572 } -
simple-csv-exporter/trunk/vendor/composer/InstalledVersions.php
r2761526 r3197847 99 99 foreach (self::getInstalled() as $installed) { 100 100 if (isset($installed['versions'][$packageName])) { 101 return $includeDevRequirements || empty($installed['versions'][$packageName]['dev_requirement']);101 return $includeDevRequirements || !isset($installed['versions'][$packageName]['dev_requirement']) || $installed['versions'][$packageName]['dev_requirement'] === false; 102 102 } 103 103 } … … 120 120 public static function satisfies(VersionParser $parser, $packageName, $constraint) 121 121 { 122 $constraint = $parser->parseConstraints( $constraint);122 $constraint = $parser->parseConstraints((string) $constraint); 123 123 $provided = $parser->parseConstraints(self::getVersionRanges($packageName)); 124 124 … … 329 329 $installed[] = self::$installedByVendor[$vendorDir]; 330 330 } elseif (is_file($vendorDir.'/composer/installed.php')) { 331 $installed[] = self::$installedByVendor[$vendorDir] = require $vendorDir.'/composer/installed.php'; 331 /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */ 332 $required = require $vendorDir.'/composer/installed.php'; 333 $installed[] = self::$installedByVendor[$vendorDir] = $required; 332 334 if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) { 333 335 self::$installed = $installed[count($installed) - 1]; … … 341 343 // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937 342 344 if (substr(__DIR__, -8, 1) !== 'C') { 343 self::$installed = require __DIR__ . '/installed.php'; 345 /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */ 346 $required = require __DIR__ . '/installed.php'; 347 self::$installed = $required; 344 348 } else { 345 349 self::$installed = array(); 346 350 } 347 351 } 348 $installed[] = self::$installed; 352 353 if (self::$installed !== array()) { 354 $installed[] = self::$installed; 355 } 349 356 350 357 return $installed; -
simple-csv-exporter/trunk/vendor/composer/autoload_classmap.php
r2761526 r3197847 92 92 'Invoker\\ParameterResolver\\TypeHintResolver' => $vendorDir . '/php-di/invoker/src/ParameterResolver/TypeHintResolver.php', 93 93 'Invoker\\Reflection\\CallableReflection' => $vendorDir . '/php-di/invoker/src/Reflection/CallableReflection.php', 94 'Opis\\Closure\\Analyzer' => $vendorDir . '/opis/closure/src/Analyzer.php', 95 'Opis\\Closure\\ClosureContext' => $vendorDir . '/opis/closure/src/ClosureContext.php', 96 'Opis\\Closure\\ClosureScope' => $vendorDir . '/opis/closure/src/ClosureScope.php', 97 'Opis\\Closure\\ClosureStream' => $vendorDir . '/opis/closure/src/ClosureStream.php', 98 'Opis\\Closure\\ISecurityProvider' => $vendorDir . '/opis/closure/src/ISecurityProvider.php', 99 'Opis\\Closure\\ReflectionClosure' => $vendorDir . '/opis/closure/src/ReflectionClosure.php', 100 'Opis\\Closure\\SecurityException' => $vendorDir . '/opis/closure/src/SecurityException.php', 101 'Opis\\Closure\\SecurityProvider' => $vendorDir . '/opis/closure/src/SecurityProvider.php', 102 'Opis\\Closure\\SelfReference' => $vendorDir . '/opis/closure/src/SelfReference.php', 103 'Opis\\Closure\\SerializableClosure' => $vendorDir . '/opis/closure/src/SerializableClosure.php', 94 'Laravel\\SerializableClosure\\Contracts\\Serializable' => $vendorDir . '/laravel/serializable-closure/src/Contracts/Serializable.php', 95 'Laravel\\SerializableClosure\\Contracts\\Signer' => $vendorDir . '/laravel/serializable-closure/src/Contracts/Signer.php', 96 'Laravel\\SerializableClosure\\Exceptions\\InvalidSignatureException' => $vendorDir . '/laravel/serializable-closure/src/Exceptions/InvalidSignatureException.php', 97 'Laravel\\SerializableClosure\\Exceptions\\MissingSecretKeyException' => $vendorDir . '/laravel/serializable-closure/src/Exceptions/MissingSecretKeyException.php', 98 'Laravel\\SerializableClosure\\Exceptions\\PhpVersionNotSupportedException' => $vendorDir . '/laravel/serializable-closure/src/Exceptions/PhpVersionNotSupportedException.php', 99 'Laravel\\SerializableClosure\\SerializableClosure' => $vendorDir . '/laravel/serializable-closure/src/SerializableClosure.php', 100 'Laravel\\SerializableClosure\\Serializers\\Native' => $vendorDir . '/laravel/serializable-closure/src/Serializers/Native.php', 101 'Laravel\\SerializableClosure\\Serializers\\Signed' => $vendorDir . '/laravel/serializable-closure/src/Serializers/Signed.php', 102 'Laravel\\SerializableClosure\\Signers\\Hmac' => $vendorDir . '/laravel/serializable-closure/src/Signers/Hmac.php', 103 'Laravel\\SerializableClosure\\Support\\ClosureScope' => $vendorDir . '/laravel/serializable-closure/src/Support/ClosureScope.php', 104 'Laravel\\SerializableClosure\\Support\\ClosureStream' => $vendorDir . '/laravel/serializable-closure/src/Support/ClosureStream.php', 105 'Laravel\\SerializableClosure\\Support\\ReflectionClosure' => $vendorDir . '/laravel/serializable-closure/src/Support/ReflectionClosure.php', 106 'Laravel\\SerializableClosure\\Support\\SelfReference' => $vendorDir . '/laravel/serializable-closure/src/Support/SelfReference.php', 107 'Laravel\\SerializableClosure\\UnsignedSerializableClosure' => $vendorDir . '/laravel/serializable-closure/src/UnsignedSerializableClosure.php', 104 108 'PhpDocReader\\AnnotationException' => $vendorDir . '/php-di/phpdoc-reader/src/PhpDocReader/AnnotationException.php', 105 109 'PhpDocReader\\PhpDocReader' => $vendorDir . '/php-di/phpdoc-reader/src/PhpDocReader/PhpDocReader.php', -
simple-csv-exporter/trunk/vendor/composer/autoload_files.php
r2761526 r3197847 7 7 8 8 return array( 9 '538ca81a9a966a6716601ecf48f4eaef' => $vendorDir . '/opis/closure/functions.php',10 9 'b33e3d135e5d9e47d845c576147bda89' => $vendorDir . '/php-di/php-di/src/functions.php', 11 10 ); -
simple-csv-exporter/trunk/vendor/composer/autoload_psr4.php
r2761526 r3197847 9 9 'Psr\\Container\\' => array($vendorDir . '/psr/container/src'), 10 10 'PhpDocReader\\' => array($vendorDir . '/php-di/phpdoc-reader/src/PhpDocReader'), 11 ' Opis\\Closure\\' => array($vendorDir . '/opis/closure/src'),11 'Laravel\\SerializableClosure\\' => array($vendorDir . '/laravel/serializable-closure/src'), 12 12 'Invoker\\' => array($vendorDir . '/php-di/invoker/src'), 13 13 'HAMWORKS\\WP\\Simple_CSV_Exporter\\Tests\\' => array($baseDir . '/tests'), -
simple-csv-exporter/trunk/vendor/composer/autoload_real.php
r2761526 r3197847 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 2e765ad8ae0dfed5be0e9b093247e6db5 class ComposerAutoloaderInitee05b39afac0c66e4ee8567eb02378b8 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit 2e765ad8ae0dfed5be0e9b093247e6db', 'loadClassLoader'), true, true);27 spl_autoload_register(array('ComposerAutoloaderInitee05b39afac0c66e4ee8567eb02378b8', 'loadClassLoader'), true, true); 28 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 29 spl_autoload_unregister(array('ComposerAutoloaderInit 2e765ad8ae0dfed5be0e9b093247e6db', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderInitee05b39afac0c66e4ee8567eb02378b8', 'loadClassLoader')); 30 30 31 31 require __DIR__ . '/autoload_static.php'; 32 call_user_func(\Composer\Autoload\ComposerStaticInit 2e765ad8ae0dfed5be0e9b093247e6db::getInitializer($loader));32 call_user_func(\Composer\Autoload\ComposerStaticInitee05b39afac0c66e4ee8567eb02378b8::getInitializer($loader)); 33 33 34 34 $loader->register(true); 35 35 36 $includeFiles = \Composer\Autoload\ComposerStaticInit2e765ad8ae0dfed5be0e9b093247e6db::$files; 37 foreach ($includeFiles as $fileIdentifier => $file) { 38 composerRequire2e765ad8ae0dfed5be0e9b093247e6db($fileIdentifier, $file); 36 $filesToLoad = \Composer\Autoload\ComposerStaticInitee05b39afac0c66e4ee8567eb02378b8::$files; 37 $requireFile = \Closure::bind(static function ($fileIdentifier, $file) { 38 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { 39 $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true; 40 41 require $file; 42 } 43 }, null, null); 44 foreach ($filesToLoad as $fileIdentifier => $file) { 45 $requireFile($fileIdentifier, $file); 39 46 } 40 47 … … 42 49 } 43 50 } 44 45 /**46 * @param string $fileIdentifier47 * @param string $file48 * @return void49 */50 function composerRequire2e765ad8ae0dfed5be0e9b093247e6db($fileIdentifier, $file)51 {52 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {53 $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;54 55 require $file;56 }57 } -
simple-csv-exporter/trunk/vendor/composer/autoload_static.php
r2761526 r3197847 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 2e765ad8ae0dfed5be0e9b093247e6db7 class ComposerStaticInitee05b39afac0c66e4ee8567eb02378b8 8 8 { 9 9 public static $files = array ( 10 '538ca81a9a966a6716601ecf48f4eaef' => __DIR__ . '/..' . '/opis/closure/functions.php',11 10 'b33e3d135e5d9e47d845c576147bda89' => __DIR__ . '/..' . '/php-di/php-di/src/functions.php', 12 11 ); … … 18 17 'PhpDocReader\\' => 13, 19 18 ), 20 ' O' =>19 'L' => 21 20 array ( 22 ' Opis\\Closure\\' => 13,21 'Laravel\\SerializableClosure\\' => 28, 23 22 ), 24 23 'I' => … … 46 45 0 => __DIR__ . '/..' . '/php-di/phpdoc-reader/src/PhpDocReader', 47 46 ), 48 ' Opis\\Closure\\' =>47 'Laravel\\SerializableClosure\\' => 49 48 array ( 50 0 => __DIR__ . '/..' . '/ opis/closure/src',49 0 => __DIR__ . '/..' . '/laravel/serializable-closure/src', 51 50 ), 52 51 'Invoker\\' => … … 154 153 'Invoker\\ParameterResolver\\TypeHintResolver' => __DIR__ . '/..' . '/php-di/invoker/src/ParameterResolver/TypeHintResolver.php', 155 154 'Invoker\\Reflection\\CallableReflection' => __DIR__ . '/..' . '/php-di/invoker/src/Reflection/CallableReflection.php', 156 'Opis\\Closure\\Analyzer' => __DIR__ . '/..' . '/opis/closure/src/Analyzer.php', 157 'Opis\\Closure\\ClosureContext' => __DIR__ . '/..' . '/opis/closure/src/ClosureContext.php', 158 'Opis\\Closure\\ClosureScope' => __DIR__ . '/..' . '/opis/closure/src/ClosureScope.php', 159 'Opis\\Closure\\ClosureStream' => __DIR__ . '/..' . '/opis/closure/src/ClosureStream.php', 160 'Opis\\Closure\\ISecurityProvider' => __DIR__ . '/..' . '/opis/closure/src/ISecurityProvider.php', 161 'Opis\\Closure\\ReflectionClosure' => __DIR__ . '/..' . '/opis/closure/src/ReflectionClosure.php', 162 'Opis\\Closure\\SecurityException' => __DIR__ . '/..' . '/opis/closure/src/SecurityException.php', 163 'Opis\\Closure\\SecurityProvider' => __DIR__ . '/..' . '/opis/closure/src/SecurityProvider.php', 164 'Opis\\Closure\\SelfReference' => __DIR__ . '/..' . '/opis/closure/src/SelfReference.php', 165 'Opis\\Closure\\SerializableClosure' => __DIR__ . '/..' . '/opis/closure/src/SerializableClosure.php', 155 'Laravel\\SerializableClosure\\Contracts\\Serializable' => __DIR__ . '/..' . '/laravel/serializable-closure/src/Contracts/Serializable.php', 156 'Laravel\\SerializableClosure\\Contracts\\Signer' => __DIR__ . '/..' . '/laravel/serializable-closure/src/Contracts/Signer.php', 157 'Laravel\\SerializableClosure\\Exceptions\\InvalidSignatureException' => __DIR__ . '/..' . '/laravel/serializable-closure/src/Exceptions/InvalidSignatureException.php', 158 'Laravel\\SerializableClosure\\Exceptions\\MissingSecretKeyException' => __DIR__ . '/..' . '/laravel/serializable-closure/src/Exceptions/MissingSecretKeyException.php', 159 'Laravel\\SerializableClosure\\Exceptions\\PhpVersionNotSupportedException' => __DIR__ . '/..' . '/laravel/serializable-closure/src/Exceptions/PhpVersionNotSupportedException.php', 160 'Laravel\\SerializableClosure\\SerializableClosure' => __DIR__ . '/..' . '/laravel/serializable-closure/src/SerializableClosure.php', 161 'Laravel\\SerializableClosure\\Serializers\\Native' => __DIR__ . '/..' . '/laravel/serializable-closure/src/Serializers/Native.php', 162 'Laravel\\SerializableClosure\\Serializers\\Signed' => __DIR__ . '/..' . '/laravel/serializable-closure/src/Serializers/Signed.php', 163 'Laravel\\SerializableClosure\\Signers\\Hmac' => __DIR__ . '/..' . '/laravel/serializable-closure/src/Signers/Hmac.php', 164 'Laravel\\SerializableClosure\\Support\\ClosureScope' => __DIR__ . '/..' . '/laravel/serializable-closure/src/Support/ClosureScope.php', 165 'Laravel\\SerializableClosure\\Support\\ClosureStream' => __DIR__ . '/..' . '/laravel/serializable-closure/src/Support/ClosureStream.php', 166 'Laravel\\SerializableClosure\\Support\\ReflectionClosure' => __DIR__ . '/..' . '/laravel/serializable-closure/src/Support/ReflectionClosure.php', 167 'Laravel\\SerializableClosure\\Support\\SelfReference' => __DIR__ . '/..' . '/laravel/serializable-closure/src/Support/SelfReference.php', 168 'Laravel\\SerializableClosure\\UnsignedSerializableClosure' => __DIR__ . '/..' . '/laravel/serializable-closure/src/UnsignedSerializableClosure.php', 166 169 'PhpDocReader\\AnnotationException' => __DIR__ . '/..' . '/php-di/phpdoc-reader/src/PhpDocReader/AnnotationException.php', 167 170 'PhpDocReader\\PhpDocReader' => __DIR__ . '/..' . '/php-di/phpdoc-reader/src/PhpDocReader/PhpDocReader.php', … … 176 179 { 177 180 return \Closure::bind(function () use ($loader) { 178 $loader->prefixLengthsPsr4 = ComposerStaticInit 2e765ad8ae0dfed5be0e9b093247e6db::$prefixLengthsPsr4;179 $loader->prefixDirsPsr4 = ComposerStaticInit 2e765ad8ae0dfed5be0e9b093247e6db::$prefixDirsPsr4;180 $loader->classMap = ComposerStaticInit 2e765ad8ae0dfed5be0e9b093247e6db::$classMap;181 $loader->prefixLengthsPsr4 = ComposerStaticInitee05b39afac0c66e4ee8567eb02378b8::$prefixLengthsPsr4; 182 $loader->prefixDirsPsr4 = ComposerStaticInitee05b39afac0c66e4ee8567eb02378b8::$prefixDirsPsr4; 183 $loader->classMap = ComposerStaticInitee05b39afac0c66e4ee8567eb02378b8::$classMap; 181 184 182 185 }, null, ClassLoader::class); -
simple-csv-exporter/trunk/vendor/composer/installed.json
r2761526 r3197847 2 2 "packages": [ 3 3 { 4 "name": " opis/closure",5 "version": " 3.6.3",6 "version_normalized": " 3.6.3.0",7 "source": { 8 "type": "git", 9 "url": "https://github.com/ opis/closure.git",10 "reference": " 3d81e4309d2a927abbe66df935f4bb60082805ad"11 }, 12 "dist": { 13 "type": "zip", 14 "url": "https://api.github.com/repos/ opis/closure/zipball/3d81e4309d2a927abbe66df935f4bb60082805ad",15 "reference": " 3d81e4309d2a927abbe66df935f4bb60082805ad",16 "shasum": "" 17 }, 18 "require": { 19 "php": "^ 5.4 || ^7.0 ||^8.0"4 "name": "laravel/serializable-closure", 5 "version": "v1.3.7", 6 "version_normalized": "1.3.7.0", 7 "source": { 8 "type": "git", 9 "url": "https://github.com/laravel/serializable-closure.git", 10 "reference": "4f48ade902b94323ca3be7646db16209ec76be3d" 11 }, 12 "dist": { 13 "type": "zip", 14 "url": "https://api.github.com/repos/laravel/serializable-closure/zipball/4f48ade902b94323ca3be7646db16209ec76be3d", 15 "reference": "4f48ade902b94323ca3be7646db16209ec76be3d", 16 "shasum": "" 17 }, 18 "require": { 19 "php": "^7.3|^8.0" 20 20 }, 21 21 "require-dev": { 22 "jeremeamia/superclosure": "^2.0", 23 "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.0" 24 }, 25 "time": "2022-01-27T09:35:39+00:00", 22 "illuminate/support": "^8.0|^9.0|^10.0|^11.0", 23 "nesbot/carbon": "^2.61|^3.0", 24 "pestphp/pest": "^1.21.3", 25 "phpstan/phpstan": "^1.8.2", 26 "symfony/var-dumper": "^5.4.11|^6.2.0|^7.0.0" 27 }, 28 "time": "2024-11-14T18:34:49+00:00", 26 29 "type": "library", 27 30 "extra": { 28 31 "branch-alias": { 29 "dev-master": "3.6.x-dev" 30 } 31 }, 32 "installation-source": "dist", 33 "autoload": { 34 "files": [ 35 "functions.php" 36 ], 37 "psr-4": { 38 "Opis\\Closure\\": "src/" 32 "dev-master": "1.x-dev" 33 } 34 }, 35 "installation-source": "dist", 36 "autoload": { 37 "psr-4": { 38 "Laravel\\SerializableClosure\\": "src/" 39 39 } 40 40 }, … … 45 45 "authors": [ 46 46 { 47 "name": " Marius Sarca",48 "email": " marius.sarca@gmail.com"47 "name": "Taylor Otwell", 48 "email": "taylor@laravel.com" 49 49 }, 50 50 { 51 "name": "Sorin Sarca", 52 "email": "sarca_sorin@hotmail.com" 53 } 54 ], 55 "description": "A library that can be used to serialize closures (anonymous functions) and arbitrary objects.", 56 "homepage": "https://opis.io/closure", 57 "keywords": [ 58 "anonymous functions", 51 "name": "Nuno Maduro", 52 "email": "nuno@laravel.com" 53 } 54 ], 55 "description": "Laravel Serializable Closure provides an easy and secure way to serialize closures in PHP.", 56 "keywords": [ 59 57 "closure", 60 "function", 61 "serializable", 62 "serialization", 63 "serialize" 64 ], 65 "support": { 66 "issues": "https://github.com/opis/closure/issues", 67 "source": "https://github.com/opis/closure/tree/3.6.3" 68 }, 69 "install-path": "../opis/closure" 58 "laravel", 59 "serializable" 60 ], 61 "support": { 62 "issues": "https://github.com/laravel/serializable-closure/issues", 63 "source": "https://github.com/laravel/serializable-closure" 64 }, 65 "install-path": "../laravel/serializable-closure" 70 66 }, 71 67 { 72 68 "name": "php-di/invoker", 73 "version": "2. 0.0",74 "version_normalized": "2. 0.0.0",69 "version": "2.3.4", 70 "version_normalized": "2.3.4.0", 75 71 "source": { 76 72 "type": "git", 77 73 "url": "https://github.com/PHP-DI/Invoker.git", 78 "reference": "540c27c86f663e20fe39a24cd72fa76cdb21d41a" 79 }, 80 "dist": { 81 "type": "zip", 82 "url": "https://api.github.com/repos/PHP-DI/Invoker/zipball/540c27c86f663e20fe39a24cd72fa76cdb21d41a", 83 "reference": "540c27c86f663e20fe39a24cd72fa76cdb21d41a", 84 "shasum": "" 85 }, 86 "require": { 87 "psr/container": "~1.0" 74 "reference": "33234b32dafa8eb69202f950a1fc92055ed76a86" 75 }, 76 "dist": { 77 "type": "zip", 78 "url": "https://api.github.com/repos/PHP-DI/Invoker/zipball/33234b32dafa8eb69202f950a1fc92055ed76a86", 79 "reference": "33234b32dafa8eb69202f950a1fc92055ed76a86", 80 "shasum": "" 81 }, 82 "require": { 83 "php": ">=7.3", 84 "psr/container": "^1.0|^2.0" 88 85 }, 89 86 "require-dev": { 90 87 "athletic/athletic": "~0.1.8", 91 "phpunit/phpunit": "~4.5" 92 }, 93 "time": "2017-03-20T19:28:22+00:00", 88 "mnapoli/hard-mode": "~0.3.0", 89 "phpunit/phpunit": "^9.0" 90 }, 91 "time": "2023-09-08T09:24:21+00:00", 94 92 "type": "library", 95 93 "installation-source": "dist", … … 115 113 "support": { 116 114 "issues": "https://github.com/PHP-DI/Invoker/issues", 117 "source": "https://github.com/PHP-DI/Invoker/tree/master" 118 }, 115 "source": "https://github.com/PHP-DI/Invoker/tree/2.3.4" 116 }, 117 "funding": [ 118 { 119 "url": "https://github.com/mnapoli", 120 "type": "github" 121 } 122 ], 119 123 "install-path": "../php-di/invoker" 120 124 }, 121 125 { 122 126 "name": "php-di/php-di", 123 "version": "6. 3.5",124 "version_normalized": "6. 3.5.0",127 "version": "6.4.0", 128 "version_normalized": "6.4.0.0", 125 129 "source": { 126 130 "type": "git", 127 131 "url": "https://github.com/PHP-DI/PHP-DI.git", 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",134 "shasum": "" 135 }, 136 "require": { 137 " opis/closure": "^3.5.5",138 "php": ">=7. 2.0",132 "reference": "ae0f1b3b03d8b29dff81747063cbfd6276246cc4" 133 }, 134 "dist": { 135 "type": "zip", 136 "url": "https://api.github.com/repos/PHP-DI/PHP-DI/zipball/ae0f1b3b03d8b29dff81747063cbfd6276246cc4", 137 "reference": "ae0f1b3b03d8b29dff81747063cbfd6276246cc4", 138 "shasum": "" 139 }, 140 "require": { 141 "laravel/serializable-closure": "^1.0", 142 "php": ">=7.4.0", 139 143 "php-di/invoker": "^2.0", 140 144 "php-di/phpdoc-reader": "^2.0.1", … … 145 149 }, 146 150 "require-dev": { 147 "doctrine/annotations": "~1. 2",151 "doctrine/annotations": "~1.10", 148 152 "friendsofphp/php-cs-fixer": "^2.4", 149 153 "mnapoli/phpunit-easymock": "^1.2", 150 "ocramius/proxy-manager": "^2. 0.2",154 "ocramius/proxy-manager": "^2.11.2", 151 155 "phpstan/phpstan": "^0.12", 152 "phpunit/phpunit": "^ 8.5|^9.0"156 "phpunit/phpunit": "^9.5" 153 157 }, 154 158 "suggest": { … … 156 160 "ocramius/proxy-manager": "Install it if you want to use lazy injection (version ~2.0)" 157 161 }, 158 "time": "202 1-09-02T09:49:58+00:00",162 "time": "2022-04-09T16:46:38+00:00", 159 163 "type": "library", 160 164 "installation-source": "dist", … … 184 188 "support": { 185 189 "issues": "https://github.com/PHP-DI/PHP-DI/issues", 186 "source": "https://github.com/PHP-DI/PHP-DI/tree/6. 3.5"190 "source": "https://github.com/PHP-DI/PHP-DI/tree/6.4.0" 187 191 }, 188 192 "funding": [ … … 245 249 { 246 250 "name": "psr/container", 247 "version": "1.1. 1",248 "version_normalized": "1.1. 1.0",251 "version": "1.1.2", 252 "version_normalized": "1.1.2.0", 249 253 "source": { 250 254 "type": "git", 251 255 "url": "https://github.com/php-fig/container.git", 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",256 "reference": "513e0666f7216c7459170d56df27dfcefe1689ea" 257 }, 258 "dist": { 259 "type": "zip", 260 "url": "https://api.github.com/repos/php-fig/container/zipball/513e0666f7216c7459170d56df27dfcefe1689ea", 261 "reference": "513e0666f7216c7459170d56df27dfcefe1689ea", 262 "shasum": "" 263 }, 264 "require": { 265 "php": ">=7.4.0" 266 }, 267 "time": "2021-11-05T16:50:12+00:00", 264 268 "type": "library", 265 269 "installation-source": "dist", … … 290 294 "support": { 291 295 "issues": "https://github.com/php-fig/container/issues", 292 "source": "https://github.com/php-fig/container/tree/1.1. 1"296 "source": "https://github.com/php-fig/container/tree/1.1.2" 293 297 }, 294 298 "install-path": "../psr/container" -
simple-csv-exporter/trunk/vendor/composer/installed.php
r2761526 r3197847 2 2 'root' => array( 3 3 'name' => 'hamworks/simple-csv-exporter', 4 'pretty_version' => '2. 0.1',5 'version' => '2. 0.1.0',6 'reference' => ' 1d0d4fca93369395531eb749924260d960ae3113',4 'pretty_version' => '2.1.5', 5 'version' => '2.1.5.0', 6 'reference' => '6e39eafa5c2689fce1c48e2d83aeb3669acde9d0', 7 7 'type' => 'library', 8 8 'install_path' => __DIR__ . '/../../', … … 12 12 'versions' => array( 13 13 'hamworks/simple-csv-exporter' => array( 14 'pretty_version' => '2. 0.1',15 'version' => '2. 0.1.0',16 'reference' => ' 1d0d4fca93369395531eb749924260d960ae3113',14 'pretty_version' => '2.1.5', 15 'version' => '2.1.5.0', 16 'reference' => '6e39eafa5c2689fce1c48e2d83aeb3669acde9d0', 17 17 'type' => 'library', 18 18 'install_path' => __DIR__ . '/../../', … … 20 20 'dev_requirement' => false, 21 21 ), 22 ' opis/closure' => array(23 'pretty_version' => ' 3.6.3',24 'version' => ' 3.6.3.0',25 'reference' => ' 3d81e4309d2a927abbe66df935f4bb60082805ad',22 'laravel/serializable-closure' => array( 23 'pretty_version' => 'v1.3.7', 24 'version' => '1.3.7.0', 25 'reference' => '4f48ade902b94323ca3be7646db16209ec76be3d', 26 26 'type' => 'library', 27 'install_path' => __DIR__ . '/../ opis/closure',27 'install_path' => __DIR__ . '/../laravel/serializable-closure', 28 28 'aliases' => array(), 29 29 'dev_requirement' => false, 30 30 ), 31 31 'php-di/invoker' => array( 32 'pretty_version' => '2. 0.0',33 'version' => '2. 0.0.0',34 'reference' => ' 540c27c86f663e20fe39a24cd72fa76cdb21d41a',32 'pretty_version' => '2.3.4', 33 'version' => '2.3.4.0', 34 'reference' => '33234b32dafa8eb69202f950a1fc92055ed76a86', 35 35 'type' => 'library', 36 36 'install_path' => __DIR__ . '/../php-di/invoker', … … 39 39 ), 40 40 'php-di/php-di' => array( 41 'pretty_version' => '6. 3.5',42 'version' => '6. 3.5.0',43 'reference' => ' b8126d066ce144765300ee0ab040c1ed6c9ef588',41 'pretty_version' => '6.4.0', 42 'version' => '6.4.0.0', 43 'reference' => 'ae0f1b3b03d8b29dff81747063cbfd6276246cc4', 44 44 'type' => 'library', 45 45 'install_path' => __DIR__ . '/../php-di/php-di', … … 57 57 ), 58 58 'psr/container' => array( 59 'pretty_version' => '1.1. 1',60 'version' => '1.1. 1.0',61 'reference' => ' 8622567409010282b7aeebe4bb841fe98b58dcaf',59 'pretty_version' => '1.1.2', 60 'version' => '1.1.2.0', 61 'reference' => '513e0666f7216c7459170d56df27dfcefe1689ea', 62 62 'type' => 'library', 63 63 'install_path' => __DIR__ . '/../psr/container', -
simple-csv-exporter/trunk/vendor/composer/platform_check.php
r2761526 r3197847 5 5 $issues = array(); 6 6 7 if (!(PHP_VERSION_ID >= 70400)) {8 $issues[] = 'Your Composer dependencies require a PHP version ">= 7.4.0". You are running ' . PHP_VERSION . '.';7 if (!(PHP_VERSION_ID >= 80100)) { 8 $issues[] = 'Your Composer dependencies require a PHP version ">= 8.1.0". You are running ' . PHP_VERSION . '.'; 9 9 } 10 10 -
simple-csv-exporter/trunk/vendor/php-di/invoker/src/CallableResolver.php
r2446249 r3197847 1 <?php 1 <?php declare(strict_types=1); 2 2 3 3 namespace Invoker; 4 4 5 use Closure; 5 6 use Invoker\Exception\NotCallableException; 6 7 use Psr\Container\ContainerInterface; 7 8 use Psr\Container\NotFoundExceptionInterface; 9 use ReflectionException; 10 use ReflectionMethod; 8 11 9 12 /** 10 13 * Resolves a callable from a container. 11 *12 * @author Matthieu Napoli <matthieu@mnapoli.fr>13 14 */ 14 15 class CallableResolver 15 16 { 16 /** 17 * @var ContainerInterface 18 */ 17 /** @var ContainerInterface */ 19 18 private $container; 20 19 … … 28 27 * 29 28 * @param callable|string|array $callable 30 *31 29 * @return callable Real PHP callable. 32 * 33 * @throws NotCallableException 30 * @throws NotCallableException|ReflectionException 34 31 */ 35 public function resolve($callable) 32 public function resolve($callable): callable 36 33 { 37 34 if (is_string($callable) && strpos($callable, '::') !== false) { … … 50 47 /** 51 48 * @param callable|string|array $callable 52 * @return callable 53 * @throws NotCallableException 49 * @return callable|mixed 50 * @throws NotCallableException|ReflectionException 54 51 */ 55 52 private function resolveFromContainer($callable) 56 53 { 57 54 // Shortcut for a very common use case 58 if ($callable instanceof \Closure) {55 if ($callable instanceof Closure) { 59 56 return $callable; 60 57 } 61 58 62 $isStaticCallToNonStaticMethod = false;63 64 59 // If it's already a callable there is nothing to do 65 60 if (is_callable($callable)) { 66 $isStaticCallToNonStaticMethod = $this->isStaticCallToNonStaticMethod($callable);67 if (! $ isStaticCallToNonStaticMethod) {61 // TODO with PHP 8 that should not be necessary to check this anymore 62 if (! $this->isStaticCallToNonStaticMethod($callable)) { 68 63 return $callable; 69 64 } … … 93 88 throw $e; 94 89 } 95 if ($isStaticCallToNonStaticMethod) {96 throw new NotCallableException(sprintf(97 'Cannot call %s::%s() because %s() is not a static method and "%s" is not a container entry',98 $callable[0],99 $callable[1],100 $callable[1],101 $callable[0]102 ));103 }104 90 throw new NotCallableException(sprintf( 105 'Cannot call %s on %s because it is not a class nor a valid container entry',91 'Cannot call %s() on %s because it is not a class nor a valid container entry', 106 92 $callable[1], 107 93 $callable[0] … … 118 104 * 119 105 * @param mixed $callable 120 * @ return bool106 * @throws ReflectionException 121 107 */ 122 private function isStaticCallToNonStaticMethod($callable) 108 private function isStaticCallToNonStaticMethod($callable): bool 123 109 { 124 110 if (is_array($callable) && is_string($callable[0])) { 125 list($class, $method) = $callable; 126 $reflection = new \ReflectionMethod($class, $method); 111 [$class, $method] = $callable; 112 113 if (! method_exists($class, $method)) { 114 return false; 115 } 116 117 $reflection = new ReflectionMethod($class, $method); 127 118 128 119 return ! $reflection->isStatic(); -
simple-csv-exporter/trunk/vendor/php-di/invoker/src/Exception/InvocationException.php
r2446249 r3197847 1 <?php 1 <?php declare(strict_types=1); 2 2 3 3 namespace Invoker\Exception; … … 5 5 /** 6 6 * Impossible to invoke the callable. 7 *8 * @author Matthieu Napoli <matthieu@mnapoli.fr>9 7 */ 10 8 class InvocationException extends \Exception -
simple-csv-exporter/trunk/vendor/php-di/invoker/src/Exception/NotCallableException.php
r2446249 r3197847 1 <?php 1 <?php declare(strict_types=1); 2 2 3 3 namespace Invoker\Exception; … … 5 5 /** 6 6 * The given callable is not actually callable. 7 *8 * @author Matthieu Napoli <matthieu@mnapoli.fr>9 7 */ 10 8 class NotCallableException extends InvocationException 11 9 { 12 10 /** 13 * @param string $value 14 * @param bool $containerEntry 15 * @return self 11 * @param mixed $value 16 12 */ 17 public static function fromInvalidCallable($value, $containerEntry = false)13 public static function fromInvalidCallable($value, bool $containerEntry = false): self 18 14 { 19 15 if (is_object($value)) { 20 16 $message = sprintf('Instance of %s is not a callable', get_class($value)); 21 } elseif (is_array($value) && isset($value[0] ) && isset($value[1])) {17 } elseif (is_array($value) && isset($value[0], $value[1])) { 22 18 $class = is_object($value[0]) ? get_class($value[0]) : $value[0]; 23 $extra = method_exists($class, '__call') ? ' A __call() method exists but magic methods are not supported.' : ''; 19 20 $extra = method_exists($class, '__call') || method_exists($class, '__callStatic') 21 ? ' A __call() or __callStatic() method exists but magic methods are not supported.' 22 : ''; 23 24 24 $message = sprintf('%s::%s() is not a callable.%s', $class, $value[1], $extra); 25 } elseif ($containerEntry) { 26 $message = var_export($value, true) . ' is neither a callable nor a valid container entry'; 25 27 } else { 26 if ($containerEntry) { 27 $message = var_export($value, true) . ' is neither a callable nor a valid container entry'; 28 } else { 29 $message = var_export($value, true) . ' is not a callable'; 30 } 28 $message = var_export($value, true) . ' is not a callable'; 31 29 } 32 30 -
simple-csv-exporter/trunk/vendor/php-di/invoker/src/Exception/NotEnoughParametersException.php
r2446249 r3197847 1 <?php 1 <?php declare(strict_types=1); 2 2 3 3 namespace Invoker\Exception; … … 5 5 /** 6 6 * Not enough parameters could be resolved to invoke the callable. 7 *8 * @author Matthieu Napoli <matthieu@mnapoli.fr>9 7 */ 10 8 class NotEnoughParametersException extends InvocationException -
simple-csv-exporter/trunk/vendor/php-di/invoker/src/Invoker.php
r2446249 r3197847 1 <?php 1 <?php declare(strict_types=1); 2 2 3 3 namespace Invoker; … … 12 12 use Invoker\Reflection\CallableReflection; 13 13 use Psr\Container\ContainerInterface; 14 use ReflectionParameter; 14 15 15 16 /** 16 17 * Invoke a callable. 17 *18 * @author Matthieu Napoli <matthieu@mnapoli.fr>19 18 */ 20 19 class Invoker implements InvokerInterface 21 20 { 22 /** 23 * @var CallableResolver|null 24 */ 21 /** @var CallableResolver|null */ 25 22 private $callableResolver; 26 23 27 /** 28 * @var ParameterResolver 29 */ 24 /** @var ParameterResolver */ 30 25 private $parameterResolver; 31 26 32 /** 33 * @var ContainerInterface|null 34 */ 27 /** @var ContainerInterface|null */ 35 28 private $container; 36 29 37 public function __construct( ParameterResolver $parameterResolver = null,ContainerInterface $container = null)30 public function __construct(?ParameterResolver $parameterResolver = null, ?ContainerInterface $container = null) 38 31 { 39 32 $this->parameterResolver = $parameterResolver ?: $this->createParameterResolver(); … … 48 41 * {@inheritdoc} 49 42 */ 50 public function call($callable, array $parameters = array())43 public function call($callable, array $parameters = []) 51 44 { 52 45 if ($this->callableResolver) { … … 63 56 $callableReflection = CallableReflection::create($callable); 64 57 65 $args = $this->parameterResolver->getParameters($callableReflection, $parameters, array());58 $args = $this->parameterResolver->getParameters($callableReflection, $parameters, []); 66 59 67 60 // Sort by array key because call_user_func_array ignores numeric keys … … 70 63 // Check all parameters are resolved 71 64 $diff = array_diff_key($callableReflection->getParameters(), $args); 72 if (! empty($diff)) { 73 /** @var \ReflectionParameter $parameter */ 74 $parameter = reset($diff); 65 $parameter = reset($diff); 66 if ($parameter && \assert($parameter instanceof ReflectionParameter) && ! $parameter->isVariadic()) { 75 67 throw new NotEnoughParametersException(sprintf( 76 68 'Unable to invoke the callable because no value was given for parameter %d ($%s)', … … 85 77 /** 86 78 * Create the default parameter resolver. 87 *88 * @return ParameterResolver89 79 */ 90 private function createParameterResolver() 80 private function createParameterResolver(): ParameterResolver 91 81 { 92 return new ResolverChain( array(82 return new ResolverChain([ 93 83 new NumericArrayResolver, 94 84 new AssociativeArrayResolver, 95 85 new DefaultValueResolver, 96 ));86 ]); 97 87 } 98 88 … … 100 90 * @return ParameterResolver By default it's a ResolverChain 101 91 */ 102 public function getParameterResolver() 92 public function getParameterResolver(): ParameterResolver 103 93 { 104 94 return $this->parameterResolver; 105 95 } 106 96 107 /** 108 * @return ContainerInterface|null 109 */ 110 public function getContainer() 97 public function getContainer(): ?ContainerInterface 111 98 { 112 99 return $this->container; … … 116 103 * @return CallableResolver|null Returns null if no container was given in the constructor. 117 104 */ 118 public function getCallableResolver() 105 public function getCallableResolver(): ?CallableResolver 119 106 { 120 107 return $this->callableResolver; -
simple-csv-exporter/trunk/vendor/php-di/invoker/src/InvokerInterface.php
r2446249 r3197847 1 <?php 1 <?php declare(strict_types=1); 2 2 3 3 namespace Invoker; … … 9 9 /** 10 10 * Invoke a callable. 11 *12 * @author Matthieu Napoli <matthieu@mnapoli.fr>13 11 */ 14 12 interface InvokerInterface … … 17 15 * Call the given function using the given parameters. 18 16 * 19 * @param callable $callable Function to call. 20 * @param array $parameters Parameters to use. 21 * 17 * @param callable|array|string $callable Function to call. 18 * @param array $parameters Parameters to use. 22 19 * @return mixed Result of the function. 23 *24 20 * @throws InvocationException Base exception class for all the sub-exceptions below. 25 21 * @throws NotCallableException 26 22 * @throws NotEnoughParametersException 27 23 */ 28 public function call($callable, array $parameters = array());24 public function call($callable, array $parameters = []); 29 25 } -
simple-csv-exporter/trunk/vendor/php-di/invoker/src/ParameterResolver/AssociativeArrayResolver.php
r2446249 r3197847 1 <?php 1 <?php declare(strict_types=1); 2 2 3 3 namespace Invoker\ParameterResolver; … … 12 12 * 13 13 * Parameters that are not indexed by a string are ignored. 14 *15 * @author Matthieu Napoli <matthieu@mnapoli.fr>16 14 */ 17 15 class AssociativeArrayResolver implements ParameterResolver … … 21 19 array $providedParameters, 22 20 array $resolvedParameters 23 ) {21 ): array { 24 22 $parameters = $reflection->getParameters(); 25 23 -
simple-csv-exporter/trunk/vendor/php-di/invoker/src/ParameterResolver/Container/ParameterNameContainerResolver.php
r2446249 r3197847 1 <?php 1 <?php declare(strict_types=1); 2 2 3 3 namespace Invoker\ParameterResolver\Container; … … 9 9 /** 10 10 * Inject entries from a DI container using the parameter names. 11 *12 * @author Matthieu Napoli <matthieu@mnapoli.fr>13 11 */ 14 12 class ParameterNameContainerResolver implements ParameterResolver 15 13 { 16 /** 17 * @var ContainerInterface 18 */ 14 /** @var ContainerInterface */ 19 15 private $container; 20 16 … … 31 27 array $providedParameters, 32 28 array $resolvedParameters 33 ) {29 ): array { 34 30 $parameters = $reflection->getParameters(); 35 31 -
simple-csv-exporter/trunk/vendor/php-di/invoker/src/ParameterResolver/Container/TypeHintContainerResolver.php
r2446249 r3197847 1 <?php 1 <?php declare(strict_types=1); 2 2 3 3 namespace Invoker\ParameterResolver\Container; … … 6 6 use Psr\Container\ContainerInterface; 7 7 use ReflectionFunctionAbstract; 8 use ReflectionNamedType; 8 9 9 10 /** 10 11 * Inject entries from a DI container using the type-hints. 11 *12 * @author Matthieu Napoli <matthieu@mnapoli.fr>13 12 */ 14 13 class TypeHintContainerResolver implements ParameterResolver 15 14 { 16 /** 17 * @var ContainerInterface 18 */ 15 /** @var ContainerInterface */ 19 16 private $container; 20 17 … … 31 28 array $providedParameters, 32 29 array $resolvedParameters 33 ) {30 ): array { 34 31 $parameters = $reflection->getParameters(); 35 32 … … 40 37 41 38 foreach ($parameters as $index => $parameter) { 42 $parameterClass = $parameter->getClass(); 39 $parameterType = $parameter->getType(); 40 if (! $parameterType) { 41 // No type 42 continue; 43 } 44 if (! $parameterType instanceof ReflectionNamedType) { 45 // Union types are not supported 46 continue; 47 } 48 if ($parameterType->isBuiltin()) { 49 // Primitive types are not supported 50 continue; 51 } 43 52 44 if ($parameterClass && $this->container->has($parameterClass->name)) { 45 $resolvedParameters[$index] = $this->container->get($parameterClass->name); 53 $parameterClass = $parameterType->getName(); 54 if ($parameterClass === 'self') { 55 $parameterClass = $parameter->getDeclaringClass()->getName(); 56 } 57 58 if ($this->container->has($parameterClass)) { 59 $resolvedParameters[$index] = $this->container->get($parameterClass); 46 60 } 47 61 } -
simple-csv-exporter/trunk/vendor/php-di/invoker/src/ParameterResolver/DefaultValueResolver.php
r2446249 r3197847 1 <?php 1 <?php declare(strict_types=1); 2 2 3 3 namespace Invoker\ParameterResolver; … … 8 8 /** 9 9 * Finds the default value for a parameter, *if it exists*. 10 *11 * @author Matthieu Napoli <matthieu@mnapoli.fr>12 10 */ 13 11 class DefaultValueResolver implements ParameterResolver … … 17 15 array $providedParameters, 18 16 array $resolvedParameters 19 ) {17 ): array { 20 18 $parameters = $reflection->getParameters(); 21 19 … … 26 24 27 25 foreach ($parameters as $index => $parameter) { 28 /** @var \ReflectionParameter $parameter */29 if ($parameter->is Optional()) {26 \assert($parameter instanceof \ReflectionParameter); 27 if ($parameter->isDefaultValueAvailable()) { 30 28 try { 31 29 $resolvedParameters[$index] = $parameter->getDefaultValue(); 32 30 } catch (ReflectionException $e) { 33 31 // Can't get default values from PHP internal classes and functions 32 } 33 } else { 34 $parameterType = $parameter->getType(); 35 if ($parameterType && $parameterType->allowsNull()) { 36 $resolvedParameters[$index] = null; 34 37 } 35 38 } -
simple-csv-exporter/trunk/vendor/php-di/invoker/src/ParameterResolver/NumericArrayResolver.php
r2446249 r3197847 1 <?php 1 <?php declare(strict_types=1); 2 2 3 3 namespace Invoker\ParameterResolver; … … 14 14 * Parameters that are not indexed by a number (i.e. parameter position) 15 15 * will be ignored. 16 *17 * @author Matthieu Napoli <matthieu@mnapoli.fr>18 16 */ 19 17 class NumericArrayResolver implements ParameterResolver … … 23 21 array $providedParameters, 24 22 array $resolvedParameters 25 ) {23 ): array { 26 24 // Skip parameters already resolved 27 25 if (! empty($resolvedParameters)) { -
simple-csv-exporter/trunk/vendor/php-di/invoker/src/ParameterResolver/ParameterResolver.php
r2446249 r3197847 1 <?php 1 <?php declare(strict_types=1); 2 2 3 3 namespace Invoker\ParameterResolver; … … 7 7 /** 8 8 * Resolves the parameters to use to call the callable. 9 *10 * @author Matthieu Napoli <matthieu@mnapoli.fr>11 9 */ 12 10 interface ParameterResolver … … 23 21 * @param array $providedParameters Parameters provided by the caller. 24 22 * @param array $resolvedParameters Parameters resolved (indexed by parameter position). 25 *26 23 * @return array 27 24 */ -
simple-csv-exporter/trunk/vendor/php-di/invoker/src/ParameterResolver/ResolverChain.php
r2446249 r3197847 1 <?php 1 <?php declare(strict_types=1); 2 2 3 3 namespace Invoker\ParameterResolver; … … 9 9 * 10 10 * Chain of responsibility pattern. 11 *12 * @author Matthieu Napoli <matthieu@mnapoli.fr>13 11 */ 14 12 class ResolverChain implements ParameterResolver 15 13 { 16 /** 17 * @var ParameterResolver[] 18 */ 19 private $resolvers = array(); 14 /** @var ParameterResolver[] */ 15 private $resolvers; 20 16 21 public function __construct(array $resolvers = array())17 public function __construct(array $resolvers = []) 22 18 { 23 19 $this->resolvers = $resolvers; … … 28 24 array $providedParameters, 29 25 array $resolvedParameters 30 ) {26 ): array { 31 27 $reflectionParameters = $reflection->getParameters(); 32 28 … … 50 46 /** 51 47 * Push a parameter resolver after the ones already registered. 52 *53 * @param ParameterResolver $resolver54 48 */ 55 public function appendResolver(ParameterResolver $resolver) 49 public function appendResolver(ParameterResolver $resolver): void 56 50 { 57 51 $this->resolvers[] = $resolver; … … 60 54 /** 61 55 * Insert a parameter resolver before the ones already registered. 62 *63 * @param ParameterResolver $resolver64 56 */ 65 public function prependResolver(ParameterResolver $resolver) 57 public function prependResolver(ParameterResolver $resolver): void 66 58 { 67 59 array_unshift($this->resolvers, $resolver); -
simple-csv-exporter/trunk/vendor/php-di/invoker/src/ParameterResolver/TypeHintResolver.php
r2446249 r3197847 1 <?php 1 <?php declare(strict_types=1); 2 2 3 3 namespace Invoker\ParameterResolver; 4 4 5 use Invoker\ParameterResolver\ParameterResolver;6 5 use ReflectionFunctionAbstract; 6 use ReflectionNamedType; 7 7 8 8 /** … … 10 10 * 11 11 * Tries to match type-hints with the parameters provided. 12 *13 * @author Felix Becker <f.becker@outlook.com>14 12 */ 15 13 class TypeHintResolver implements ParameterResolver … … 19 17 array $providedParameters, 20 18 array $resolvedParameters 21 ) {19 ): array { 22 20 $parameters = $reflection->getParameters(); 23 21 … … 28 26 29 27 foreach ($parameters as $index => $parameter) { 30 $parameterClass = $parameter->getClass(); 28 $parameterType = $parameter->getType(); 29 if (! $parameterType) { 30 // No type 31 continue; 32 } 33 if (! $parameterType instanceof ReflectionNamedType) { 34 // Union types are not supported 35 continue; 36 } 37 if ($parameterType->isBuiltin()) { 38 // Primitive types are not supported 39 continue; 40 } 31 41 32 if ($parameterClass && array_key_exists($parameterClass->name, $providedParameters)) { 33 $resolvedParameters[$index] = $providedParameters[$parameterClass->name]; 42 $parameterClass = $parameterType->getName(); 43 if ($parameterClass === 'self') { 44 $parameterClass = $parameter->getDeclaringClass()->getName(); 45 } 46 47 if (array_key_exists($parameterClass, $providedParameters)) { 48 $resolvedParameters[$index] = $providedParameters[$parameterClass]; 34 49 } 35 50 } -
simple-csv-exporter/trunk/vendor/php-di/invoker/src/Reflection/CallableReflection.php
r2446249 r3197847 1 <?php 1 <?php declare(strict_types=1); 2 2 3 3 namespace Invoker\Reflection; 4 4 5 use Closure; 5 6 use Invoker\Exception\NotCallableException; 7 use ReflectionException; 8 use ReflectionFunction; 9 use ReflectionFunctionAbstract; 10 use ReflectionMethod; 6 11 7 12 /** 8 * Create a reflection object from a callable .13 * Create a reflection object from a callable or a callable-like. 9 14 * 10 * @ author Matthieu Napoli <matthieu@mnapoli.fr>15 * @internal 11 16 */ 12 17 class CallableReflection 13 18 { 14 19 /** 15 * @param callable $callable 16 * 17 * @return \ReflectionFunctionAbstract 18 * 19 * @throws NotCallableException 20 * 21 * TODO Use the `callable` type-hint once support for PHP 5.4 and up. 20 * @param callable|array|string $callable Can be a callable or a callable-like. 21 * @throws NotCallableException|ReflectionException 22 22 */ 23 public static function create($callable) 23 public static function create($callable): ReflectionFunctionAbstract 24 24 { 25 25 // Closure 26 if ($callable instanceof \Closure) {27 return new \ReflectionFunction($callable);26 if ($callable instanceof Closure) { 27 return new ReflectionFunction($callable); 28 28 } 29 29 30 30 // Array callable 31 31 if (is_array($callable)) { 32 list($class, $method)= $callable;32 [$class, $method] = $callable; 33 33 34 34 if (! method_exists($class, $method)) { … … 36 36 } 37 37 38 return new \ReflectionMethod($class, $method);38 return new ReflectionMethod($class, $method); 39 39 } 40 40 41 41 // Callable object (i.e. implementing __invoke()) 42 42 if (is_object($callable) && method_exists($callable, '__invoke')) { 43 return new \ReflectionMethod($callable, '__invoke'); 44 } 45 46 // Callable class (i.e. implementing __invoke()) 47 if (is_string($callable) && class_exists($callable) && method_exists($callable, '__invoke')) { 48 return new \ReflectionMethod($callable, '__invoke'); 43 return new ReflectionMethod($callable, '__invoke'); 49 44 } 50 45 51 46 // Standard function 52 47 if (is_string($callable) && function_exists($callable)) { 53 return new \ReflectionFunction($callable);48 return new ReflectionFunction($callable); 54 49 } 55 50 -
simple-csv-exporter/trunk/vendor/php-di/php-di/change-log.md
r2446249 r3197847 1 1 # Change log 2 3 ## 6.1.0 4 5 - [#791](https://github.com/PHP-DI/PHP-DI/issues/791) Support PHP 8.1, remove support for PHP 7.2 2 6 3 7 ## 6.0.2 -
simple-csv-exporter/trunk/vendor/php-di/php-di/src/Compiler/Compiler.php
r2761526 r3197847 22 22 use function file_put_contents; 23 23 use InvalidArgumentException; 24 use Opis\Closure\SerializableClosure;24 use Laravel\SerializableClosure\Support\ReflectionClosure; 25 25 use function rename; 26 26 use function sprintf; … … 402 402 private function compileClosure(\Closure $closure) : string 403 403 { 404 $wrapper = new SerializableClosure($closure); 405 $reflector = $wrapper->getReflector(); 404 $reflector = new ReflectionClosure($closure); 406 405 407 406 if ($reflector->getUseVariables()) { -
simple-csv-exporter/trunk/vendor/php-di/php-di/src/Definition/Resolver/ArrayResolver.php
r2446249 r3197847 43 43 44 44 // Resolve nested definitions 45 array_walk_recursive($values, function (& $value, $key) use ($definition) {45 array_walk_recursive($values, function (& $value, $key) use ($definition) { 46 46 if ($value instanceof Definition) { 47 47 $value = $this->resolveDefinition($value, $definition, $key); -
simple-csv-exporter/trunk/vendor/psr/container/src/ContainerExceptionInterface.php
r2761526 r3197847 3 3 namespace Psr\Container; 4 4 5 use Throwable; 6 5 7 /** 6 8 * Base interface representing a generic exception in a container. 7 9 */ 8 interface ContainerExceptionInterface 10 interface ContainerExceptionInterface extends Throwable 9 11 { 10 12 }
Note: See TracChangeset
for help on using the changeset viewer.