Plugin Directory

Changeset 2980255


Ignore:
Timestamp:
10/17/2023 03:56:33 PM (2 years ago)
Author:
marcbelletre
Message:

v1.3.0

Location:
acf-rrule-field
Files:
50 edited
1 copied

Legend:

Unmodified
Added
Removed
  • acf-rrule-field/tags/1.3.0/acf-rrule.php

    r2814099 r2980255  
    55Plugin URI: https://github.com/marcbelletre/acf-rrule
    66Description: Create recurring rules with a single ACF field
    7 Version: 1.2.5
     7Version: 1.3.0
    88Author: Marc Bellêtre
    99Author URI: https://pixelparfait.fr
     
    4545            // - these will be passed into the field class.
    4646            $this->settings = [
    47                 'version'   => '1.2.5',
     47                'version'   => '1.3.0',
    4848                'url'       => plugin_dir_url(__FILE__),
    4949                'path'      => plugin_dir_path(__FILE__),
  • acf-rrule-field/tags/1.3.0/composer.json

    r2421882 r2980255  
    11{
    2     "name": "marcbelletre/acf-rrule",
    3     "description": "RRule field for Advanced Custom Fields",
    4     "type": "wordpress-plugin",
    5     "keywords": ["acf", "rrule", "recurring", "date"],
    6     "license": "MIT",
    7     "authors": [
    8         {
    9             "name": "Marc Bellêtre",
    10             "email": "[email protected]",
    11             "homepage": "https://pixelparfait.fr"
    12         }
    13     ],
    14     "support": {
    15         "issues": "https://github.com/marcbelletre/acf-rrule/issues"
    16     },
    17     "require": {
    18         "simshaun/recurr": "^4.0",
    19         "composer/installers": "~1.0"
     2  "name": "marcbelletre/acf-rrule",
     3  "description": "RRule field for Advanced Custom Fields",
     4  "type": "wordpress-plugin",
     5  "keywords": [
     6    "acf",
     7    "rrule",
     8    "recurring",
     9    "date"
     10  ],
     11  "license": "MIT",
     12  "authors": [
     13    {
     14      "name": "Marc Bellêtre",
     15      "email": "[email protected]",
     16      "homepage": "https://pixelparfait.fr"
    2017    }
     18  ],
     19  "support": {
     20    "issues": "https://github.com/marcbelletre/acf-rrule/issues"
     21  },
     22  "require": {
     23    "simshaun/recurr": "^5.0",
     24    "composer/installers": "~1.0"
     25  },
     26  "config": {
     27    "allow-plugins": {
     28      "composer/installers": true
     29    }
     30  }
    2131}
  • acf-rrule-field/tags/1.3.0/composer.lock

    r2628164 r2980255  
    55        "This file is @generated automatically"
    66    ],
    7     "content-hash": "c30f9a9a5de399f90436768128439030",
     7    "content-hash": "b1dba48b1733046ff32a3a88e9019555",
    88    "packages": [
    99        {
     
    160160        {
    161161            "name": "doctrine/collections",
    162             "version": "1.6.8",
     162            "version": "2.1.4",
    163163            "source": {
    164164                "type": "git",
    165165                "url": "https://github.com/doctrine/collections.git",
    166                 "reference": "1958a744696c6bb3bb0d28db2611dc11610e78af"
     166                "reference": "72328a11443a0de79967104ad36ba7b30bded134"
    167167            },
    168168            "dist": {
    169169                "type": "zip",
    170                 "url": "https://api.github.com/repos/doctrine/collections/zipball/1958a744696c6bb3bb0d28db2611dc11610e78af",
    171                 "reference": "1958a744696c6bb3bb0d28db2611dc11610e78af",
     170                "url": "https://api.github.com/repos/doctrine/collections/zipball/72328a11443a0de79967104ad36ba7b30bded134",
     171                "reference": "72328a11443a0de79967104ad36ba7b30bded134",
    172172                "shasum": ""
    173173            },
    174174            "require": {
    175                 "php": "^7.1.3 || ^8.0"
     175                "doctrine/deprecations": "^1",
     176                "php": "^8.1"
    176177            },
    177178            "require-dev": {
    178                 "doctrine/coding-standard": "^9.0",
    179                 "phpstan/phpstan": "^0.12",
    180                 "phpunit/phpunit": "^7.5 || ^8.5 || ^9.1.5",
    181                 "vimeo/psalm": "^4.2.1"
     179                "doctrine/coding-standard": "^12",
     180                "ext-json": "*",
     181                "phpstan/phpstan": "^1.8",
     182                "phpstan/phpstan-phpunit": "^1.0",
     183                "phpunit/phpunit": "^9.5",
     184                "vimeo/psalm": "^5.11"
    182185            },
    183186            "type": "library",
    184187            "autoload": {
    185188                "psr-4": {
    186                     "Doctrine\\Common\\Collections\\": "lib/Doctrine/Common/Collections"
     189                    "Doctrine\\Common\\Collections\\": "src"
    187190                }
    188191            },
     
    223226            "support": {
    224227                "issues": "https://github.com/doctrine/collections/issues",
    225                 "source": "https://github.com/doctrine/collections/tree/1.6.8"
    226             },
    227             "time": "2021-08-10T18:51:53+00:00"
     228                "source": "https://github.com/doctrine/collections/tree/2.1.4"
     229            },
     230            "funding": [
     231                {
     232                    "url": "https://www.doctrine-project.org/sponsorship.html",
     233                    "type": "custom"
     234                },
     235                {
     236                    "url": "https://www.patreon.com/phpdoctrine",
     237                    "type": "patreon"
     238                },
     239                {
     240                    "url": "https://tidelift.com/funding/github/packagist/doctrine%2Fcollections",
     241                    "type": "tidelift"
     242                }
     243            ],
     244            "time": "2023-10-03T09:22:33+00:00"
     245        },
     246        {
     247            "name": "doctrine/deprecations",
     248            "version": "1.1.2",
     249            "source": {
     250                "type": "git",
     251                "url": "https://github.com/doctrine/deprecations.git",
     252                "reference": "4f2d4f2836e7ec4e7a8625e75c6aa916004db931"
     253            },
     254            "dist": {
     255                "type": "zip",
     256                "url": "https://api.github.com/repos/doctrine/deprecations/zipball/4f2d4f2836e7ec4e7a8625e75c6aa916004db931",
     257                "reference": "4f2d4f2836e7ec4e7a8625e75c6aa916004db931",
     258                "shasum": ""
     259            },
     260            "require": {
     261                "php": "^7.1 || ^8.0"
     262            },
     263            "require-dev": {
     264                "doctrine/coding-standard": "^9",
     265                "phpstan/phpstan": "1.4.10 || 1.10.15",
     266                "phpstan/phpstan-phpunit": "^1.0",
     267                "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5",
     268                "psalm/plugin-phpunit": "0.18.4",
     269                "psr/log": "^1 || ^2 || ^3",
     270                "vimeo/psalm": "4.30.0 || 5.12.0"
     271            },
     272            "suggest": {
     273                "psr/log": "Allows logging deprecations via PSR-3 logger implementation"
     274            },
     275            "type": "library",
     276            "autoload": {
     277                "psr-4": {
     278                    "Doctrine\\Deprecations\\": "lib/Doctrine/Deprecations"
     279                }
     280            },
     281            "notification-url": "https://packagist.org/downloads/",
     282            "license": [
     283                "MIT"
     284            ],
     285            "description": "A small layer on top of trigger_error(E_USER_DEPRECATED) or PSR-3 logging with options to disable all deprecations or selectively for packages.",
     286            "homepage": "https://www.doctrine-project.org/",
     287            "support": {
     288                "issues": "https://github.com/doctrine/deprecations/issues",
     289                "source": "https://github.com/doctrine/deprecations/tree/1.1.2"
     290            },
     291            "time": "2023-09-27T20:04:15+00:00"
    228292        },
    229293        {
    230294            "name": "simshaun/recurr",
    231             "version": "v4.0.5",
     295            "version": "v5.0.2",
    232296            "source": {
    233297                "type": "git",
    234298                "url": "https://github.com/simshaun/recurr.git",
    235                 "reference": "08b0b46879f598cd11dd42b4c1a9c221a0562749"
     299                "reference": "1aff62e6e0ee875b3f2487352542605123ee9172"
    236300            },
    237301            "dist": {
    238302                "type": "zip",
    239                 "url": "https://api.github.com/repos/simshaun/recurr/zipball/08b0b46879f598cd11dd42b4c1a9c221a0562749",
    240                 "reference": "08b0b46879f598cd11dd42b4c1a9c221a0562749",
     303                "url": "https://api.github.com/repos/simshaun/recurr/zipball/1aff62e6e0ee875b3f2487352542605123ee9172",
     304                "reference": "1aff62e6e0ee875b3f2487352542605123ee9172",
    241305                "shasum": ""
    242306            },
    243307            "require": {
    244                 "doctrine/collections": "~1.3",
    245                 "php": ">=5.5.0"
     308                "doctrine/collections": "~1.6||^2.0",
     309                "php": "^7.2||^8.0"
    246310            },
    247311            "require-dev": {
    248                 "phpunit/phpunit": "~5.7"
     312                "phpunit/phpunit": "^8.5.16",
     313                "symfony/yaml": "^5.3"
    249314            },
    250315            "type": "library",
     
    281346            "support": {
    282347                "issues": "https://github.com/simshaun/recurr/issues",
    283                 "source": "https://github.com/simshaun/recurr/tree/v4.0.5"
    284             },
    285             "time": "2021-03-25T23:00:49+00:00"
     348                "source": "https://github.com/simshaun/recurr/tree/v5.0.2"
     349            },
     350            "time": "2023-09-26T20:31:33+00:00"
    286351        }
    287352    ],
     
    294359    "platform": [],
    295360    "platform-dev": [],
    296     "plugin-api-version": "2.0.0"
     361    "plugin-api-version": "2.3.0"
    297362}
  • acf-rrule-field/tags/1.3.0/fields/class-acf-field-rrule.php

    r2814099 r2980255  
    11<?php
    22
    3 use \Recurr\Rule;
     3use Recurr\Rule;
    44
    55// Exit if accessed directly
     
    5050             */
    5151
    52             $this->defaults = array(
     52            $this->defaults = [
    5353                'date_display_format' => 'j F Y',
    5454                'date_return_format' => 'Y-m-d',
    5555                'allow_time' => false,
    5656                'time_display_format' => 'H:i',
    57                 'timezone' => get_option('timezone_string') ?: 'UTC',
    58             );
     57                'time_return_format' => 'H:i',
     58            ];
    5959
    6060            /*
     
    107107            $m_d_Y = date_i18n('m/d/Y');
    108108            $F_j_Y = date_i18n('F j, Y');
     109            $g_i_a = date_i18n('g:i a');
     110            $H_i = date_i18n('H:i');
    109111            $Ymd = date_i18n('Ymd');
    110112
    111             // Display format
    112             acf_render_field_setting($field, array(
    113                 'label'            => __('Date Display Format', 'acf-rrule-field'),
    114                 'instructions'    => __('The date format displayed when editing a post', 'acf-rrule-field'),
    115                 'type'            => 'radio',
    116                 'name'            => 'date_display_format',
    117                 'other_choice'    => 1,
    118                 'choices'        => array(
    119                     'd/m/Y'            => '<span>' . $d_m_Y . '</span><code>d/m/Y</code>',
    120                     'm/d/Y'            => '<span>' . $m_d_Y . '</span><code>m/d/Y</code>',
    121                     'F j, Y'        => '<span>' . $F_j_Y . '</span><code>F j, Y</code>',
    122                     'other'            => '<span>' . __('Custom:', 'acf-rrule-field') . '</span>'
    123                 )
    124             ));
    125 
    126             // Return format
    127             acf_render_field_setting($field, array(
    128                 'label'            => __('Date Return Format', 'acf-rrule-field'),
    129                 'instructions'    => __('The date format returned via template functions', 'acf-rrule-field'),
    130                 'type'            => 'radio',
    131                 'name'            => 'return_format',
    132                 'other_choice'    => 1,
    133                 'choices'        => array(
    134                     'd/m/Y'            => '<span>' . $d_m_Y . '</span><code>d/m/Y</code>',
    135                     'm/d/Y'            => '<span>' . $m_d_Y . '</span><code>m/d/Y</code>',
    136                     'F j, Y'        => '<span>' . $F_j_Y . '</span><code>F j, Y</code>',
    137                     'Ymd'            => '<span>' . $Ymd . '</span><code>Ymd</code>',
    138                     'other'            => '<span>' . __('Custom:', 'acf-rrule-field') . '</span>'
    139                 )
    140             ));
     113            echo '<div class="acf-field-settings-split">';
     114
     115            // Date display format
     116            acf_render_field_setting($field, [
     117                'label' => __('Date Display Format', 'acf-rrule-field'),
     118                'instructions' => __('The date format displayed when editing a post', 'acf-rrule-field'),
     119                'type' => 'radio',
     120                'name' => 'date_display_format',
     121                'other_choice' => 1,
     122                'choices' => [
     123                    'd/m/Y' => '<span>' . $d_m_Y . '</span><code>d/m/Y</code>',
     124                    'm/d/Y' => '<span>' . $m_d_Y . '</span><code>m/d/Y</code>',
     125                    'F j, Y' => '<span>' . $F_j_Y . '</span><code>F j, Y</code>',
     126                    'other' => '<span>' . __('Custom:', 'acf-rrule-field') . '</span>',
     127                ],
     128            ]);
     129
     130            // Date return format
     131            acf_render_field_setting($field, [
     132                'label' => __('Date Return Format', 'acf-rrule-field'),
     133                'instructions' => __('The date format returned via template functions', 'acf-rrule-field'),
     134                'type' => 'radio',
     135                'name' => 'date_return_format',
     136                'other_choice' => 1,
     137                'choices' => [
     138                    'd/m/Y' => '<span>' . $d_m_Y . '</span><code>d/m/Y</code>',
     139                    'm/d/Y' => '<span>' . $m_d_Y . '</span><code>m/d/Y</code>',
     140                    'F j, Y' => '<span>' . $F_j_Y . '</span><code>F j, Y</code>',
     141                    'Ymd' => '<span>' . $Ymd . '</span><code>Ymd</code>',
     142                    'other' => '<span>' . __('Custom:', 'acf-rrule-field') . '</span>',
     143                ],
     144            ]);
     145
     146            echo '</div>';
     147
     148            echo '<div class="acf-field-settings-split">';
    141149
    142150            // Allow time selector
    143             acf_render_field_setting($field, array(
    144                 'label'            => __('Time Selector', 'acf-rrule-field'),
    145                 'instructions'    => __('Allow time selection when creating the recurring rule', 'acf-rrule-field'),
    146                 'name'            => 'allow_time',
    147                 'type'            => 'true_false',
    148                 'ui'            => 1,
    149             ));
     151            acf_render_field_setting($field, [
     152                'label' => __('Time Selector', 'acf-rrule-field'),
     153                'instructions' => __('Allow time selection when creating the recurring rule', 'acf-rrule-field'),
     154                'name' => 'allow_time',
     155                'type' => 'true_false',
     156                'ui' => 1,
     157            ]);
     158
     159            echo '</div>';
     160
     161            echo '<div class="acf-field-settings-split">';
     162
     163            // Time display format
     164            acf_render_field_setting($field, [
     165                'label' => __('Time Display Format', 'acf-rrule-field'),
     166                'instructions' => __('The time format displayed when editing a post', 'acf-rrule-field'),
     167                'type' => 'radio',
     168                'name' => 'time_display_format',
     169                'other_choice' => 1,
     170                'choices' => [
     171                    'H:i' => '<span>' . $H_i . '</span><code>H:i</code>',
     172                    'g:i a' => '<span>' . $g_i_a . '</span><code>g:i a</code>',
     173                    'other' => '<span>' . __('Custom:', 'acf-rrule-field') . '</span>',
     174                ],
     175                'conditions' => [
     176                    'field' => 'allow_time',
     177                    'operator' => '==',
     178                    'value' => 1
     179                ],
     180            ]);
     181
     182            // Time return format
     183            acf_render_field_setting($field, [
     184                'label' => __('Time Return Format', 'acf-rrule-field'),
     185                'instructions' => __('The time format returned via template functions', 'acf-rrule-field'),
     186                'type' => 'radio',
     187                'name' => 'time_return_format',
     188                'other_choice' => 1,
     189                'choices' => [
     190                    'H:i' => '<span>' . $H_i . '</span><code>H:i</code>',
     191                    'g:i a' => '<span>' . $g_i_a . '</span><code>g:i a</code>',
     192                    'other' => '<span>' . __('Custom:', 'acf-rrule-field') . '</span>',
     193                ],
     194                'conditions' => [
     195                    'field' => 'allow_time',
     196                    'operator' => '==',
     197                    'value' => 1
     198                ],
     199            ]);
     200
     201            echo '</div>';
    150202        }
    151 
    152203
    153204        /*
     
    172223
    173224            // Datepicker options
    174             $datepicker_options = array(
     225            $datepicker_options = [
    175226                'class' => 'acf-date-picker acf-input-wrap',
    176227                'data-date_format' => acf_convert_date_to_js($field['date_display_format']),
    177             );
    178             $timepicker_options = array(
     228            ];
     229            $timepicker_options = [
    179230                'class' => 'acf-time-picker acf-input-wrap',
    180             ); ?>
     231                'data-time_format' => acf_convert_time_to_js($field['time_display_format']),
     232            ]; ?>
    181233
    182234            <div class="acf-input-wrap">
     
    185237                <?php if ($field['value'] && $field['value']['text']) : ?>
    186238                    <p class="acf-field-rrule-current">
    187                         <?php _e('Current value:', 'acf-rrule-field'); ?> <?= $field['value']['text'] ?>
     239                        <?php _e('Current value:', 'acf-rrule-field'); ?>
     240                        <?= $field['value']['text'] ?>
    188241                    </p>
    189242                <?php endif; ?>
     
    211264                                        </div>
    212265
    213                                         <?php acf_hidden_input(array(
     266                                        <?php acf_hidden_input([
    214267                                            'name' => $field['name'] . '[start_date]',
    215268                                            'value'    => $start_date_hidden,
    216                                         )); ?>
    217                                         <?php acf_text_input(array(
     269                                        ]); ?>
     270                                        <?php acf_text_input([
    218271                                            'id' => $unique_id . '-start-date',
    219272                                            'class' => 'input',
    220273                                            'value'    => $start_date_display,
    221                                         )); ?>
     274                                        ]); ?>
    222275                                    </div>
    223276                                </div>
     
    242295                                            </div>
    243296
    244                                             <?php acf_hidden_input(array(
     297                                            <?php acf_hidden_input([
    245298                                                'name' => $field['name'] . '[start_time]',
    246                                                 'value'    => $start_time,
    247                                             )); ?>
    248                                             <?php acf_text_input(array(
     299                                                'value' => $start_time,
     300                                            ]); ?>
     301                                            <?php acf_text_input([
    249302                                                'id' => $unique_id . '-start-time',
    250303                                                'class' => 'input',
    251                                                 'value'    => $start_time,
    252                                             )); ?>
     304                                                'value' => $start_time,
     305                                            ]); ?>
    253306                                        </div>
    254307                                    </div>
     
    260313                    <div class="acf-field">
    261314                        <?php
    262                         $frequency = array(
     315                        $frequency = [
    263316                            'id' => $field['id'] . '-frequency',
    264317                            'name' => $field['name'] . '[frequency]',
    265318                            'value' => is_array($field['value']) ? $field['value']['frequency'] : null,
    266319                            'class' => 'frequency-select',
    267                             'choices' => array(
     320                            'choices' => [
    268321                                'DAILY' => __('Daily', 'acf-rrule-field'),
    269322                                'WEEKLY' => __('Weekly', 'acf-rrule-field'),
    270323                                'MONTHLY' => __('Monthly', 'acf-rrule-field'),
    271324                                'YEARLY' => __('Yearly', 'acf-rrule-field'),
    272                             ),
    273                         ); ?>
     325                            ],
     326                        ]; ?>
    274327
    275328                        <div class="acf-label">
     
    286339                    <div class="acf-field">
    287340                        <?php
    288                         $interval = array(
     341                        $interval = [
    289342                            'id' => $field['id'] . '-interval',
    290343                            'name' => $field['name'] . '[interval]',
     
    294347                            'min' => 1,
    295348                            'step' => 1,
    296                         ); ?>
     349                        ]; ?>
    297350
    298351                        <div class="acf-input">
    299                             <div class="acf-input-prepend"><?= _x('Every', 'RRule Interval', 'acf-rrule-field') ?></div>
     352                            <div class="acf-input-prepend">
     353                                <?= _x('Every', 'RRule Interval', 'acf-rrule-field') ?>
     354                            </div>
    300355                            <div class="acf-input-append">
    301356                                <span class="freq-suffix" data-frequency="DAILY"><?= _x('day', 'RRule Interval', 'acf-rrule-field') ?></span>
     
    312367                    <div class="acf-field acf-field-button-group" data-type="button_group_multiple" data-frequency="WEEKLY">
    313368                        <?php
    314                         $weekdays = array(
     369                        $weekdays = [
    315370                            'MO' => __('Monday', 'acf-rrule-field'),
    316371                            'TU' => __('Tuesday', 'acf-rrule-field'),
     
    320375                            'SA' => __('Saturday', 'acf-rrule-field'),
    321376                            'SU' => __('Sunday', 'acf-rrule-field'),
    322                         ); ?>
     377                        ]; ?>
    323378
    324379                        <div class="acf-label">
     
    331386                            <div class="acf-button-group">
    332387                                <?php foreach ($weekdays as $key => $value) : ?>
    333                                     <?php $selected = is_array($field['value']) && in_array($key, $field['value']['weekdays'], true); ?>
     388                                    <?php $selected = is_array($field['value']) && in_array($key, $field['value']['weekdays']); ?>
    334389
    335390                                    <label<?= ($selected ? ' class="selected"' : '') ?>>
    336                                         <input type="checkbox" name="<?= $field['name'] ?>[weekdays][]" value="<?= $key ?>" <?= ($selected ? ' checked' : '') ?>> <?= $value ?>
     391                                        <input type="checkbox" name="<?= $field['name'] ?>[weekdays][]" value="<?= $key ?>" <?= ($selected ? ' checked' : '') ?>>
     392                                        <?= $value ?>
    337393                                        </label>
    338394                                    <?php endforeach; ?>
     
    358414                                            <tr>
    359415                                                <?php foreach ($week as $day) : ?>
    360                                                     <?php $selected = is_array($field['value']) && in_array($day, $field['value']['monthdays'], true); ?>
     416                                                    <?php $selected = is_array($field['value']) && in_array($day, $field['value']['monthdays']); ?>
    361417
    362418                                                    <td>
     
    397453
    398454                                                    if (is_array($field['value']) && is_array($field['value']['bysetpos'])) {
    399                                                         $selected = in_array((string) $key, $field['value']['bysetpos'], true);
     455                                                        $selected = in_array((string) $key, $field['value']['bysetpos']);
    400456                                                    } ?>
    401457
     
    413469                                            <ul class="acf-checkbox-list">
    414470                                                <?php foreach ($weekdays as $key => $value) : ?>
    415                                                     <?php $selected = is_array($field['value']) && in_array($key, $field['value']['weekdays'], true); ?>
     471                                                    <?php $selected = is_array($field['value']) && in_array($key, $field['value']['weekdays']); ?>
    416472
    417473                                                    <li>
     
    436492
    437493                        <div class="acf-input">
    438                             <?php $months = array(
     494                            <?php $months = [
    439495                                '1' => __('January', 'acf-rrule-field'),
    440496                                '2' => __('February', 'acf-rrule-field'),
     
    449505                                '11' => __('November', 'acf-rrule-field'),
    450506                                '12' => __('December', 'acf-rrule-field'),
    451                             ); ?>
     507                            ]; ?>
    452508
    453509                            <input type="hidden" name="<?= $field['name'] ?>[months]">
     
    455511                            <ul class="acf-checkbox-list acf-hl">
    456512                                <?php foreach ($months as $key => $month) : ?>
    457                                     <?php $selected = is_array($field['value']) && in_array($key, $field['value']['months'], true); ?>
     513                                    <?php $selected = is_array($field['value']) && in_array($key, $field['value']['months']); ?>
    458514
    459515                                    <li>
     
    475531                        </div>
    476532                        <div class="acf-input">
    477                             <?php acf_select_input(array(
     533                            <?php acf_select_input([
    478534                                'id' => $field['id'] . '-end-type',
    479535                                'name' => $field['name'] . '[end_type]',
    480536                                'value' => $field['value'] ? $field['value']['end_type'] : null,
    481537                                'class' => 'end-type-select',
    482                                 'choices' => array(
     538                                'choices' => [
    483539                                    'date' => __('At a specific date', 'acf-rrule-field'),
    484540                                    'count' =>  __('After a number of occurrences', 'acf-rrule-field'),
    485                                     'none'    => __('Never', 'acf-rrule-field'),
    486                                 ),
    487                             )); ?>
     541                                    'none' => __('Never', 'acf-rrule-field'),
     542                                ],
     543                            ]); ?>
    488544                        </div>
    489545                    </div>
     
    491547                    <div class="acf-field" data-end-type="count">
    492548                        <?php
    493                         $occurrence_count = array(
     549                        $occurrence_count = [
    494550                            'id' => $field['id'] . '-occurrence-count',
    495551                            'name' => $field['name'] . '[occurrence_count]',
    496552                            'type' => 'number',
    497553                            'class' => 'acf-is-prepended acf-is-appended',
    498                             'value'    => is_array($field['value']) ? $field['value']['occurrence_count'] : null,
     554                            'value' => is_array($field['value']) ? $field['value']['occurrence_count'] : null,
    499555                            'min' => 1,
    500556                            'step' => 1,
    501                         ); ?>
     557                        ]; ?>
    502558
    503559                        <div class="acf-input">
    504                             <div class="acf-input-prepend"><?php _e('After', 'acf-rrule-field'); ?></div>
    505                             <div class="acf-input-append"><?php _e('occurrence(s)', 'acf-rrule-field'); ?></div>
     560                            <div class="acf-input-prepend">
     561                                <?php _e('After', 'acf-rrule-field'); ?>
     562                            </div>
     563                            <div class="acf-input-append">
     564                                <?php _e('occurrence(s)', 'acf-rrule-field'); ?>
     565                            </div>
    506566                            <div class="acf-input-wrap">
    507567                                <?php acf_text_input($occurrence_count); ?>
     
    523583
    524584                            <div class="acf-input">
    525                                 <div class="acf-input-prepend"><?php _e('Until', 'acf-rrule-field'); ?></div>
     585                                <div class="acf-input-prepend">
     586                                    <?php _e('Until', 'acf-rrule-field'); ?>
     587                                </div>
    526588                                <div class="acf-input-wrap">
    527                                     <?php acf_hidden_input(array(
     589                                    <?php acf_hidden_input([
    528590                                        'name' => $field['name'] . '[end_date]',
    529                                         'value'    => $end_date_hidden,
    530                                     )); ?>
    531                                     <?php acf_text_input(array(
     591                                        'value' => $end_date_hidden,
     592                                    ]); ?>
     593                                    <?php acf_text_input([
    532594                                        'id' => $unique_id . '-end-date',
    533595                                        'class' => 'acf-is-prepended',
    534                                         'value'    => $end_date_display,
    535                                     )); ?>
     596                                        'value' => $end_date_display,
     597                                    ]); ?>
    536598                                </div>
    537599                            </div>
     
    560622        public function input_admin_enqueue_scripts()
    561623        {
    562 
    563624            // Bail early if no enqueue
    564625            if (!acf_get_setting('enqueue_datepicker')) {
     
    569630            global $wp_locale;
    570631
    571             acf_localize_data(array(
    572                 'datePickerL10n'    => array(
    573                     'closeText'            => _x('Done', 'Date Picker JS closeText', 'acf-rrule-field'),
    574                     'currentText'        => _x('Today', 'Date Picker JS currentText', 'acf-rrule-field'),
    575                     'nextText'            => _x('Next', 'Date Picker JS nextText', 'acf-rrule-field'),
    576                     'prevText'            => _x('Prev', 'Date Picker JS prevText', 'acf-rrule-field'),
    577                     'weekHeader'        => _x('Wk', 'Date Picker JS weekHeader', 'acf-rrule-field'),
    578                     'monthNames'        => array_values($wp_locale->month),
    579                     'monthNamesShort'   => array_values($wp_locale->month_abbrev),
    580                     'dayNames'          => array_values($wp_locale->weekday),
    581                     'dayNamesMin'       => array_values($wp_locale->weekday_initial),
    582                     'dayNamesShort'     => array_values($wp_locale->weekday_abbrev)
    583                 )
    584             ));
     632            acf_localize_data([
     633                'datePickerL10n' => [
     634                    'closeText' => _x('Done', 'Date Picker JS closeText', 'acf-rrule-field'),
     635                    'currentText' => _x('Today', 'Date Picker JS currentText', 'acf-rrule-field'),
     636                    'nextText' => _x('Next', 'Date Picker JS nextText', 'acf-rrule-field'),
     637                    'prevText' => _x('Prev', 'Date Picker JS prevText', 'acf-rrule-field'),
     638                    'weekHeader' => _x('Wk', 'Date Picker JS weekHeader', 'acf-rrule-field'),
     639                    'monthNames' => array_values($wp_locale->month),
     640                    'monthNamesShort' => array_values($wp_locale->month_abbrev),
     641                    'dayNames' => array_values($wp_locale->weekday),
     642                    'dayNamesMin' => array_values($wp_locale->weekday_initial),
     643                    'dayNamesShort' => array_values($wp_locale->weekday_abbrev),
     644                ],
     645            ]);
    585646
    586647            // Enqueue scripts
     
    588649
    589650            // Enqueue style
    590             wp_enqueue_style('acf-datepicker', acf_get_url('assets/inc/datepicker/jquery-ui.min.css'), array(), '1.11.4');
     651            wp_enqueue_style('acf-datepicker', acf_get_url('assets/inc/datepicker/jquery-ui.min.css'), [], '1.11.4');
    591652
    592653            // Init vars
     
    595656
    596657            // Register & include JS
    597             wp_enqueue_script('acf-rrule-field', "{$url}assets/js/input.js", array('acf-input'), $version);
     658            wp_enqueue_script('acf-rrule-field', "{$url}assets/js/input.js", ['acf-input'], $version);
    598659
    599660            // Register & include CSS
    600             wp_enqueue_style('acf-rrule-field', "{$url}assets/css/input.css", array('acf-input'), $version);
     661            wp_enqueue_style('acf-rrule-field', "{$url}assets/css/input.css", ['acf-input'], $version);
    601662        }
    602663
     
    618679        public function load_value($value, $post_id, $field)
    619680        {
    620             $new_value = array(
     681            $new_value = [
    621682                'rrule' => null,
    622683                'start_date' => null,
     
    624685                'frequency' => 'WEEKLY',
    625686                'interval' => 1,
    626                 'weekdays' => array(),
    627                 'monthdays' => array(),
    628                 'months' => array(),
     687                'weekdays' => [],
     688                'monthdays' => [],
     689                'months' => [],
    629690                'monthly_by' => 'monthdays',
    630691                'bysetpos' => [],
     
    635696                'dates_collection' => null,
    636697                'text' => null,
    637             );
     698            ];
    638699
    639700            if ($value) {
     701                $timezoneString = get_option('timezone_string') ?: 'UTC';
     702
    640703                try {
    641704                    $rule = new Rule($value);
    642705
     706                    $rule->setTimezone($timezoneString);
     707
    643708                    $start_date = $rule->getStartDate();
    644709
    645710                    $new_value['rrule'] = $value;
    646                     $new_value['start_date'] = $start_date->format('Ymd');
    647                     $new_value['start_time'] = $start_date->format('H:i:s');
     711                    $new_value['start_date'] = $start_date?->format('Ymd');
     712                    $new_value['start_time'] = $start_date?->format('H:i:s');
    648713                    $new_value['frequency'] = $rule->getFreqAsText();
    649714                    $new_value['interval'] = $rule->getInterval();
    650                     $new_value['weekdays'] = $rule->getByDay() ?: array();
    651                     $new_value['monthdays'] = $rule->getByMonthDay() ?: array();
    652                     $new_value['months'] = $rule->getByMonth() ?: array();
     715                    $new_value['weekdays'] = $rule->getByDay() ?: [];
     716                    $new_value['monthdays'] = $rule->getByMonthDay() ?: [];
     717                    $new_value['months'] = $rule->getByMonth() ?: [];
    653718
    654719                    if ($new_value['frequency'] === 'MONTHLY') {
    655                         if (sizeof($new_value['weekdays']) > 0) {
     720                        if (count($new_value['weekdays']) > 0) {
    656721                            $new_value['monthly_by'] = 'setpos';
    657722                            $set_position = $rule->getBySetPosition();
     
    670735                    );
    671736
    672                     $new_value['dates_collection'] = array();
     737                    $new_value['dates_collection'] = [];
    673738
    674739                    foreach ($transformer->transform($rule) as $recurrence) {
     
    677742
    678743                    if ($rule->getUntil()) {
    679                         $end_date = $rule->getUntil();
     744                        $end_date = $rule->getEndDate() ?: $rule->getUntil();
    680745
    681746                        $new_value['end_type'] = 'date';
     
    720785        {
    721786            if (is_array($value)) {
    722                 $start_date = \DateTime::createFromFormat('Ymd', $value['start_date']);
     787                $timezoneString = get_option('timezone_string') ?: 'UTC';
     788                $timezone = new \DateTimeZone($timezoneString);
     789
     790                $start_date = \DateTime::createFromFormat('Ymd', $value['start_date'], $timezone);
    723791
    724792                // Bail early if the DateTime object is null
     
    736804                $rule = new Rule;
    737805
    738                 // Ensure timezone arg is never blank
    739                 $timezone = $field['timezone'] ?: $this->defaults['timezone'];
    740 
    741                 $rule->setTimezone($timezone)
     806                $rule->setTimezone($timezoneString)
    742807                    ->setStartDate($start_date, true)
    743808                    ->setFreq($value['frequency'])
     
    772837                    case 'date':
    773838                        if ($value['end_date']) {
    774                             $end_date = \DateTime::createFromFormat('Ymd', $value['end_date']);
     839                            $end_date = \DateTime::createFromFormat('Ymd', $value['end_date'], $timezone);
    775840                            $end_date->setTime(0, 0, 0);
    776841
    777842                            $rule->setUntil($end_date);
     843                            $rule->setEndDate($end_date);
    778844                        }
    779845
  • acf-rrule-field/tags/1.3.0/readme.txt

    r2814099 r2980255  
    33Tags: acf, rrule, recurrence, date, calendar
    44Requires at least: 4.7
    5 Tested up to: 6.1
     5Tested up to: 6.3
    66Requires PHP: 5.6
    7 Stable tag: 1.2.5
     7Stable tag: 1.3.0
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3131
    3232== Changelog ==
     33
     34= 1.3.0 =
     35* Add time picker options
     36* Fix compatibility with ACF Extended plugin
     37* Fix selection not being reflected in the calendar
    3338
    3439= 1.2.5 =
  • acf-rrule-field/tags/1.3.0/vendor/autoload.php

    r2628164 r2980255  
    33// autoload.php @generated by Composer
    44
     5if (PHP_VERSION_ID < 50600) {
     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    );
     21}
     22
    523require_once __DIR__ . '/composer/autoload_real.php';
    624
    7 return ComposerAutoloaderInitf113c85c4bf87a05ceb34ca0b0cd94c1::getLoader();
     25return ComposerAutoloaderInitc35fcbe54628f3a3a961b0147fa06c59::getLoader();
  • acf-rrule-field/tags/1.3.0/vendor/composer/ClassLoader.php

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

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

    r2421882 r2980255  
    33// autoload_classmap.php @generated by Composer
    44
    5 $vendorDir = dirname(dirname(__FILE__));
     5$vendorDir = dirname(__DIR__);
    66$baseDir = dirname($vendorDir);
    77
  • acf-rrule-field/tags/1.3.0/vendor/composer/autoload_namespaces.php

    r2421882 r2980255  
    33// autoload_namespaces.php @generated by Composer
    44
    5 $vendorDir = dirname(dirname(__FILE__));
     5$vendorDir = dirname(__DIR__);
    66$baseDir = dirname($vendorDir);
    77
  • acf-rrule-field/tags/1.3.0/vendor/composer/autoload_psr4.php

    r2421882 r2980255  
    33// autoload_psr4.php @generated by Composer
    44
    5 $vendorDir = dirname(dirname(__FILE__));
     5$vendorDir = dirname(__DIR__);
    66$baseDir = dirname($vendorDir);
    77
    88return array(
    99    'Recurr\\' => array($vendorDir . '/simshaun/recurr/src/Recurr'),
    10     'Doctrine\\Common\\Collections\\' => array($vendorDir . '/doctrine/collections/lib/Doctrine/Common/Collections'),
     10    'Doctrine\\Deprecations\\' => array($vendorDir . '/doctrine/deprecations/lib/Doctrine/Deprecations'),
     11    'Doctrine\\Common\\Collections\\' => array($vendorDir . '/doctrine/collections/src'),
    1112    'Composer\\Installers\\' => array($vendorDir . '/composer/installers/src/Composer/Installers'),
    1213);
  • acf-rrule-field/tags/1.3.0/vendor/composer/autoload_real.php

    r2628164 r2980255  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInitf113c85c4bf87a05ceb34ca0b0cd94c1
     5class ComposerAutoloaderInitc35fcbe54628f3a3a961b0147fa06c59
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInitf113c85c4bf87a05ceb34ca0b0cd94c1', 'loadClassLoader'), true, true);
    28         self::$loader = $loader = new \Composer\Autoload\ClassLoader();
    29         spl_autoload_unregister(array('ComposerAutoloaderInitf113c85c4bf87a05ceb34ca0b0cd94c1', 'loadClassLoader'));
     27        spl_autoload_register(array('ComposerAutoloaderInitc35fcbe54628f3a3a961b0147fa06c59', 'loadClassLoader'), true, true);
     28        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
     29        spl_autoload_unregister(array('ComposerAutoloaderInitc35fcbe54628f3a3a961b0147fa06c59', 'loadClassLoader'));
    3030
    31         $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
    32         if ($useStaticLoader) {
    33             require __DIR__ . '/autoload_static.php';
    34 
    35             call_user_func(\Composer\Autoload\ComposerStaticInitf113c85c4bf87a05ceb34ca0b0cd94c1::getInitializer($loader));
    36         } else {
    37             $map = require __DIR__ . '/autoload_namespaces.php';
    38             foreach ($map as $namespace => $path) {
    39                 $loader->set($namespace, $path);
    40             }
    41 
    42             $map = require __DIR__ . '/autoload_psr4.php';
    43             foreach ($map as $namespace => $path) {
    44                 $loader->setPsr4($namespace, $path);
    45             }
    46 
    47             $classMap = require __DIR__ . '/autoload_classmap.php';
    48             if ($classMap) {
    49                 $loader->addClassMap($classMap);
    50             }
    51         }
     31        require __DIR__ . '/autoload_static.php';
     32        call_user_func(\Composer\Autoload\ComposerStaticInitc35fcbe54628f3a3a961b0147fa06c59::getInitializer($loader));
    5233
    5334        $loader->register(true);
  • acf-rrule-field/tags/1.3.0/vendor/composer/autoload_static.php

    r2628164 r2980255  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInitf113c85c4bf87a05ceb34ca0b0cd94c1
     7class ComposerStaticInitc35fcbe54628f3a3a961b0147fa06c59
    88{
    99    public static $prefixLengthsPsr4 = array (
     
    1414        'D' =>
    1515        array (
     16            'Doctrine\\Deprecations\\' => 22,
    1617            'Doctrine\\Common\\Collections\\' => 28,
    1718        ),
     
    2728            0 => __DIR__ . '/..' . '/simshaun/recurr/src/Recurr',
    2829        ),
     30        'Doctrine\\Deprecations\\' =>
     31        array (
     32            0 => __DIR__ . '/..' . '/doctrine/deprecations/lib/Doctrine/Deprecations',
     33        ),
    2934        'Doctrine\\Common\\Collections\\' =>
    3035        array (
    31             0 => __DIR__ . '/..' . '/doctrine/collections/lib/Doctrine/Common/Collections',
     36            0 => __DIR__ . '/..' . '/doctrine/collections/src',
    3237        ),
    3338        'Composer\\Installers\\' =>
     
    4449    {
    4550        return \Closure::bind(function () use ($loader) {
    46             $loader->prefixLengthsPsr4 = ComposerStaticInitf113c85c4bf87a05ceb34ca0b0cd94c1::$prefixLengthsPsr4;
    47             $loader->prefixDirsPsr4 = ComposerStaticInitf113c85c4bf87a05ceb34ca0b0cd94c1::$prefixDirsPsr4;
    48             $loader->classMap = ComposerStaticInitf113c85c4bf87a05ceb34ca0b0cd94c1::$classMap;
     51            $loader->prefixLengthsPsr4 = ComposerStaticInitc35fcbe54628f3a3a961b0147fa06c59::$prefixLengthsPsr4;
     52            $loader->prefixDirsPsr4 = ComposerStaticInitc35fcbe54628f3a3a961b0147fa06c59::$prefixDirsPsr4;
     53            $loader->classMap = ComposerStaticInitc35fcbe54628f3a3a961b0147fa06c59::$classMap;
    4954
    5055        }, null, ClassLoader::class);
  • acf-rrule-field/tags/1.3.0/vendor/composer/installed.json

    r2628164 r2980255  
    157157        {
    158158            "name": "doctrine/collections",
    159             "version": "1.6.8",
    160             "version_normalized": "1.6.8.0",
     159            "version": "2.1.4",
     160            "version_normalized": "2.1.4.0",
    161161            "source": {
    162162                "type": "git",
    163163                "url": "https://github.com/doctrine/collections.git",
    164                 "reference": "1958a744696c6bb3bb0d28db2611dc11610e78af"
     164                "reference": "72328a11443a0de79967104ad36ba7b30bded134"
    165165            },
    166166            "dist": {
    167167                "type": "zip",
    168                 "url": "https://api.github.com/repos/doctrine/collections/zipball/1958a744696c6bb3bb0d28db2611dc11610e78af",
    169                 "reference": "1958a744696c6bb3bb0d28db2611dc11610e78af",
     168                "url": "https://api.github.com/repos/doctrine/collections/zipball/72328a11443a0de79967104ad36ba7b30bded134",
     169                "reference": "72328a11443a0de79967104ad36ba7b30bded134",
    170170                "shasum": ""
    171171            },
    172172            "require": {
    173                 "php": "^7.1.3 || ^8.0"
     173                "doctrine/deprecations": "^1",
     174                "php": "^8.1"
    174175            },
    175176            "require-dev": {
    176                 "doctrine/coding-standard": "^9.0",
    177                 "phpstan/phpstan": "^0.12",
    178                 "phpunit/phpunit": "^7.5 || ^8.5 || ^9.1.5",
    179                 "vimeo/psalm": "^4.2.1"
    180             },
    181             "time": "2021-08-10T18:51:53+00:00",
     177                "doctrine/coding-standard": "^12",
     178                "ext-json": "*",
     179                "phpstan/phpstan": "^1.8",
     180                "phpstan/phpstan-phpunit": "^1.0",
     181                "phpunit/phpunit": "^9.5",
     182                "vimeo/psalm": "^5.11"
     183            },
     184            "time": "2023-10-03T09:22:33+00:00",
    182185            "type": "library",
    183186            "installation-source": "dist",
    184187            "autoload": {
    185188                "psr-4": {
    186                     "Doctrine\\Common\\Collections\\": "lib/Doctrine/Common/Collections"
     189                    "Doctrine\\Common\\Collections\\": "src"
    187190                }
    188191            },
     
    223226            "support": {
    224227                "issues": "https://github.com/doctrine/collections/issues",
    225                 "source": "https://github.com/doctrine/collections/tree/1.6.8"
    226             },
     228                "source": "https://github.com/doctrine/collections/tree/2.1.4"
     229            },
     230            "funding": [
     231                {
     232                    "url": "https://www.doctrine-project.org/sponsorship.html",
     233                    "type": "custom"
     234                },
     235                {
     236                    "url": "https://www.patreon.com/phpdoctrine",
     237                    "type": "patreon"
     238                },
     239                {
     240                    "url": "https://tidelift.com/funding/github/packagist/doctrine%2Fcollections",
     241                    "type": "tidelift"
     242                }
     243            ],
    227244            "install-path": "../doctrine/collections"
    228245        },
    229246        {
     247            "name": "doctrine/deprecations",
     248            "version": "1.1.2",
     249            "version_normalized": "1.1.2.0",
     250            "source": {
     251                "type": "git",
     252                "url": "https://github.com/doctrine/deprecations.git",
     253                "reference": "4f2d4f2836e7ec4e7a8625e75c6aa916004db931"
     254            },
     255            "dist": {
     256                "type": "zip",
     257                "url": "https://api.github.com/repos/doctrine/deprecations/zipball/4f2d4f2836e7ec4e7a8625e75c6aa916004db931",
     258                "reference": "4f2d4f2836e7ec4e7a8625e75c6aa916004db931",
     259                "shasum": ""
     260            },
     261            "require": {
     262                "php": "^7.1 || ^8.0"
     263            },
     264            "require-dev": {
     265                "doctrine/coding-standard": "^9",
     266                "phpstan/phpstan": "1.4.10 || 1.10.15",
     267                "phpstan/phpstan-phpunit": "^1.0",
     268                "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5",
     269                "psalm/plugin-phpunit": "0.18.4",
     270                "psr/log": "^1 || ^2 || ^3",
     271                "vimeo/psalm": "4.30.0 || 5.12.0"
     272            },
     273            "suggest": {
     274                "psr/log": "Allows logging deprecations via PSR-3 logger implementation"
     275            },
     276            "time": "2023-09-27T20:04:15+00:00",
     277            "type": "library",
     278            "installation-source": "dist",
     279            "autoload": {
     280                "psr-4": {
     281                    "Doctrine\\Deprecations\\": "lib/Doctrine/Deprecations"
     282                }
     283            },
     284            "notification-url": "https://packagist.org/downloads/",
     285            "license": [
     286                "MIT"
     287            ],
     288            "description": "A small layer on top of trigger_error(E_USER_DEPRECATED) or PSR-3 logging with options to disable all deprecations or selectively for packages.",
     289            "homepage": "https://www.doctrine-project.org/",
     290            "support": {
     291                "issues": "https://github.com/doctrine/deprecations/issues",
     292                "source": "https://github.com/doctrine/deprecations/tree/1.1.2"
     293            },
     294            "install-path": "../doctrine/deprecations"
     295        },
     296        {
    230297            "name": "simshaun/recurr",
    231             "version": "v4.0.5",
    232             "version_normalized": "4.0.5.0",
     298            "version": "v5.0.2",
     299            "version_normalized": "5.0.2.0",
    233300            "source": {
    234301                "type": "git",
    235302                "url": "https://github.com/simshaun/recurr.git",
    236                 "reference": "08b0b46879f598cd11dd42b4c1a9c221a0562749"
     303                "reference": "1aff62e6e0ee875b3f2487352542605123ee9172"
    237304            },
    238305            "dist": {
    239306                "type": "zip",
    240                 "url": "https://api.github.com/repos/simshaun/recurr/zipball/08b0b46879f598cd11dd42b4c1a9c221a0562749",
    241                 "reference": "08b0b46879f598cd11dd42b4c1a9c221a0562749",
     307                "url": "https://api.github.com/repos/simshaun/recurr/zipball/1aff62e6e0ee875b3f2487352542605123ee9172",
     308                "reference": "1aff62e6e0ee875b3f2487352542605123ee9172",
    242309                "shasum": ""
    243310            },
    244311            "require": {
    245                 "doctrine/collections": "~1.3",
    246                 "php": ">=5.5.0"
     312                "doctrine/collections": "~1.6||^2.0",
     313                "php": "^7.2||^8.0"
    247314            },
    248315            "require-dev": {
    249                 "phpunit/phpunit": "~5.7"
    250             },
    251             "time": "2021-03-25T23:00:49+00:00",
     316                "phpunit/phpunit": "^8.5.16",
     317                "symfony/yaml": "^5.3"
     318            },
     319            "time": "2023-09-26T20:31:33+00:00",
    252320            "type": "library",
    253321            "extra": {
     
    284352            "support": {
    285353                "issues": "https://github.com/simshaun/recurr/issues",
    286                 "source": "https://github.com/simshaun/recurr/tree/v4.0.5"
     354                "source": "https://github.com/simshaun/recurr/tree/v5.0.2"
    287355            },
    288356            "install-path": "../simshaun/recurr"
  • acf-rrule-field/tags/1.3.0/vendor/composer/installed.php

    r2628164 r2980255  
    1 <?php return array (
    2   'root' =>
    3   array (
    4     'pretty_version' => 'dev-master',
    5     'version' => 'dev-master',
    6     'aliases' =>
    7     array (
     1<?php return array(
     2    'root' => array(
     3        'name' => 'marcbelletre/acf-rrule',
     4        'pretty_version' => 'dev-master',
     5        'version' => 'dev-master',
     6        'reference' => '07070b0c9f2875e3824e47a17469651978c96d90',
     7        'type' => 'wordpress-plugin',
     8        'install_path' => __DIR__ . '/../../',
     9        'aliases' => array(),
     10        'dev' => true,
    811    ),
    9     'reference' => '24b8b8a05d665af4c26eeec158ee827e38e02af1',
    10     'name' => 'marcbelletre/acf-rrule',
    11   ),
    12   'versions' =>
    13   array (
    14     'composer/installers' =>
    15     array (
    16       'pretty_version' => 'v1.12.0',
    17       'version' => '1.12.0.0',
    18       'aliases' =>
    19       array (
    20       ),
    21       'reference' => 'd20a64ed3c94748397ff5973488761b22f6d3f19',
     12    'versions' => array(
     13        'composer/installers' => array(
     14            'pretty_version' => 'v1.12.0',
     15            'version' => '1.12.0.0',
     16            'reference' => 'd20a64ed3c94748397ff5973488761b22f6d3f19',
     17            'type' => 'composer-plugin',
     18            'install_path' => __DIR__ . '/./installers',
     19            'aliases' => array(),
     20            'dev_requirement' => false,
     21        ),
     22        'doctrine/collections' => array(
     23            'pretty_version' => '2.1.4',
     24            'version' => '2.1.4.0',
     25            'reference' => '72328a11443a0de79967104ad36ba7b30bded134',
     26            'type' => 'library',
     27            'install_path' => __DIR__ . '/../doctrine/collections',
     28            'aliases' => array(),
     29            'dev_requirement' => false,
     30        ),
     31        'doctrine/deprecations' => array(
     32            'pretty_version' => '1.1.2',
     33            'version' => '1.1.2.0',
     34            'reference' => '4f2d4f2836e7ec4e7a8625e75c6aa916004db931',
     35            'type' => 'library',
     36            'install_path' => __DIR__ . '/../doctrine/deprecations',
     37            'aliases' => array(),
     38            'dev_requirement' => false,
     39        ),
     40        'marcbelletre/acf-rrule' => array(
     41            'pretty_version' => 'dev-master',
     42            'version' => 'dev-master',
     43            'reference' => '07070b0c9f2875e3824e47a17469651978c96d90',
     44            'type' => 'wordpress-plugin',
     45            'install_path' => __DIR__ . '/../../',
     46            'aliases' => array(),
     47            'dev_requirement' => false,
     48        ),
     49        'roundcube/plugin-installer' => array(
     50            'dev_requirement' => false,
     51            'replaced' => array(
     52                0 => '*',
     53            ),
     54        ),
     55        'shama/baton' => array(
     56            'dev_requirement' => false,
     57            'replaced' => array(
     58                0 => '*',
     59            ),
     60        ),
     61        'simshaun/recurr' => array(
     62            'pretty_version' => 'v5.0.2',
     63            'version' => '5.0.2.0',
     64            'reference' => '1aff62e6e0ee875b3f2487352542605123ee9172',
     65            'type' => 'library',
     66            'install_path' => __DIR__ . '/../simshaun/recurr',
     67            'aliases' => array(),
     68            'dev_requirement' => false,
     69        ),
    2270    ),
    23     'doctrine/collections' =>
    24     array (
    25       'pretty_version' => '1.6.8',
    26       'version' => '1.6.8.0',
    27       'aliases' =>
    28       array (
    29       ),
    30       'reference' => '1958a744696c6bb3bb0d28db2611dc11610e78af',
    31     ),
    32     'marcbelletre/acf-rrule' =>
    33     array (
    34       'pretty_version' => 'dev-master',
    35       'version' => 'dev-master',
    36       'aliases' =>
    37       array (
    38       ),
    39       'reference' => '24b8b8a05d665af4c26eeec158ee827e38e02af1',
    40     ),
    41     'roundcube/plugin-installer' =>
    42     array (
    43       'replaced' =>
    44       array (
    45         0 => '*',
    46       ),
    47     ),
    48     'shama/baton' =>
    49     array (
    50       'replaced' =>
    51       array (
    52         0 => '*',
    53       ),
    54     ),
    55     'simshaun/recurr' =>
    56     array (
    57       'pretty_version' => 'v4.0.5',
    58       'version' => '4.0.5.0',
    59       'aliases' =>
    60       array (
    61       ),
    62       'reference' => '08b0b46879f598cd11dd42b4c1a9c221a0562749',
    63     ),
    64   ),
    6571);
  • acf-rrule-field/tags/1.3.0/vendor/composer/platform_check.php

    r2489893 r2980255  
    55$issues = array();
    66
    7 if (!(PHP_VERSION_ID >= 70103)) {
    8     $issues[] = 'Your Composer dependencies require a PHP version ">= 7.1.3". You are running ' . PHP_VERSION . '.';
     7if (!(PHP_VERSION_ID >= 80100)) {
     8    $issues[] = 'Your Composer dependencies require a PHP version ">= 8.1.0". You are running ' . PHP_VERSION . '.';
    99}
    1010
  • acf-rrule-field/tags/1.3.0/vendor/doctrine/collections/CONTRIBUTING.md

    r2581616 r2980255  
    66These guidelines exist not to annoy you, but to keep the code base clean,
    77unified and future proof.
    8 
    9 ## We only accept PRs  to "master"
    10 
    11 Our branching strategy is "everything to master first", even
    12 bugfixes and we then merge them into the stable branches. You should only
    13 open pull requests against the master branch. Otherwise we cannot accept the PR.
    14 
    15 There is one exception to the rule, when we merged a bug into some stable branches
    16 we do occasionally accept pull requests that merge the same bug fix into earlier
    17 branches.
    188
    199## Coding Standard
  • acf-rrule-field/tags/1.3.0/vendor/doctrine/collections/README.md

    r2581616 r2980255  
    22
    33[![Build Status](https://github.com/doctrine/collections/workflows/Continuous%20Integration/badge.svg)](https://github.com/doctrine/collections/actions)
    4 [![Code Coverage](https://codecov.io/gh/doctrine/collections/branch/master/graph/badge.svg)](https://codecov.io/gh/doctrine/collections/branch/master)
     4[![Code Coverage](https://codecov.io/gh/doctrine/collections/branch/2.0.x/graph/badge.svg)](https://codecov.io/gh/doctrine/collections/branch/2.0.x)
    55
    66Collections Abstraction library
    7 
    8 ## Changelog
    9 
    10 ### v1.6.1
    11 
    12 This release, combined with the release of [`doctrine/collections` `v1.6.1`](https://github.com/doctrine/collections/releases/tag/v1.6.1),
    13 fixes an issue where parsing annotations was not possible
    14 for classes within `doctrine/collections`.
    15 
    16 Specifically, `v1.6.0` introduced Psalm-specific annotations
    17 such as (for example) `@template` and `@template-implements`,
    18 which were both incorrectly recognized as `@template`.
    19 
    20 `@template` has therefore been removed, and instead we use
    21 the prefixed `@psalm-template`, which is no longer parsed
    22 by `doctrine/collections` `v1.6.1`
    23 
    24 Total issues resolved: **1**
    25 
    26 - [186: Use `@psalm-template` annotation to avoid clashes](https://github.com/doctrine/collections/pull/186) thanks to @muglug
    27 
    28 ### v1.6.0
    29 
    30 This release bumps the minimum required PHP version to 7.1.3.
    31 
    32 Following improvements were introduced:
    33 
    34  * `ArrayCollection#filter()` now allows filtering by key, value or both.
    35  * When using the `ClosureExpressionVisitor` over objects with a defined
    36    accessor and property, the accessor is prioritised.
    37  * Updated testing tools and coding standards, autoloading, which also
    38    led to marginal performance improvements
    39  * Introduced generic type docblock declarations from [psalm](https://github.com/vimeo/psalm),
    40    which should allow users to declare `/** @var Collection<KeyType, ValueType> */`
    41    in their code, and leverage the type propagation deriving from that.
    42 
    43 Total issues resolved: **16**
    44 
    45 - [127: Use PSR-4](https://github.com/doctrine/collections/pull/127) thanks to @Nyholm
    46 - [129: Remove space in method declaration](https://github.com/doctrine/collections/pull/129) thanks to @bounoable
    47 - [130: Update build to add PHPCS and PHPStan](https://github.com/doctrine/collections/pull/130) thanks to @lcobucci
    48 - [131: ClosureExpressionVisitor &gt; Don't duplicate the accessor when the field already starts with it](https://github.com/doctrine/collections/pull/131) thanks to @ruudk
    49 - [139: Apply Doctrine CS 2.1](https://github.com/doctrine/collections/pull/139) thanks to @Majkl578
    50 - [142: CS 4.0, version composer.lock, merge stages](https://github.com/doctrine/collections/pull/142) thanks to @Majkl578
    51 - [144: Update to PHPUnit 7](https://github.com/doctrine/collections/pull/144) thanks to @carusogabriel
    52 - [146: Update changelog for v1.4.0 and v1.5.0](https://github.com/doctrine/collections/pull/146) thanks to @GromNaN
    53 - [154: Update index.rst](https://github.com/doctrine/collections/pull/154) thanks to @chraiet
    54 - [158: Extract Selectable method into own documentation section](https://github.com/doctrine/collections/pull/158) thanks to @SenseException
    55 - [160: Update homepage](https://github.com/doctrine/collections/pull/160) thanks to @Majkl578
    56 - [165: Allow `ArrayCollection#filter()` to filter by key, value or both](https://github.com/doctrine/collections/issues/165) thanks to @0x13a
    57 - [167: Allow `ArrayCollection#filter()` to filter by key and also value](https://github.com/doctrine/collections/pull/167) thanks to @0x13a
    58 - [175: CI: Test against PHP 7.4snapshot instead of nightly (8.0)](https://github.com/doctrine/collections/pull/175) thanks to @Majkl578
    59 - [177: Generify collections using Psalm](https://github.com/doctrine/collections/pull/177) thanks to @nschoellhorn
    60 - [178: Updated doctrine/coding-standard to 6.0](https://github.com/doctrine/collections/pull/178) thanks to @patrickjahns
    61 
    62 ### v1.5.0
    63 
    64 * [Require PHP 7.1+](https://github.com/doctrine/collections/pull/105)
    65 * [Drop HHVM support](https://github.com/doctrine/collections/pull/118)
    66 
    67 ### v1.4.0
    68 
    69 * [Require PHP 5.6+](https://github.com/doctrine/collections/pull/105)
    70 * [Add `ArrayCollection::createFrom()`](https://github.com/doctrine/collections/pull/91)
    71 * [Support non-camel-case naming](https://github.com/doctrine/collections/pull/57)
    72 * [Comparison `START_WITH`, `END_WITH`](https://github.com/doctrine/collections/pull/78)
    73 * [Comparison `MEMBER_OF`](https://github.com/doctrine/collections/pull/66)
    74 * [Add Contributing guide](https://github.com/doctrine/collections/pull/103)
    75 
    76 ### v1.3.0
    77 
    78 * [Explicit casting of first and max results in criteria API](https://github.com/doctrine/collections/pull/26)
    79 * [Keep keys when using `ArrayCollection#matching()` with sorting](https://github.com/doctrine/collections/pull/49)
    80 * [Made `AbstractLazyCollection#$initialized` protected for extensibility](https://github.com/doctrine/collections/pull/52)
    81 
    82 ### v1.2.0
    83 
    84 * Add a new ``AbstractLazyCollection``
    85 
    86 ### v1.1.0
    87 
    88 * Deprecated ``Comparison::IS``, because it's only there for SQL semantics.
    89   These are fixed in the ORM instead.
    90 * Add ``Comparison::CONTAINS`` to perform partial string matches:
    91 
    92         $criteria->andWhere($criteria->expr()->contains('property', 'Foo'));
  • acf-rrule-field/tags/1.3.0/vendor/doctrine/collections/composer.json

    r2581616 r2980255  
    11{
    22    "name": "doctrine/collections",
     3    "description": "PHP Doctrine Collections library that adds additional functionality on top of PHP arrays.",
     4    "license": "MIT",
    35    "type": "library",
    4     "description": "PHP Doctrine Collections library that adds additional functionality on top of PHP arrays.",
    56    "keywords": [
    67        "php",
     
    910        "iterators"
    1011    ],
     12    "authors": [
     13        {
     14            "name": "Guilherme Blanco",
     15            "email": "[email protected]"
     16        },
     17        {
     18            "name": "Roman Borschel",
     19            "email": "[email protected]"
     20        },
     21        {
     22            "name": "Benjamin Eberlei",
     23            "email": "[email protected]"
     24        },
     25        {
     26            "name": "Jonathan Wage",
     27            "email": "[email protected]"
     28        },
     29        {
     30            "name": "Johannes Schmitt",
     31            "email": "[email protected]"
     32        }
     33    ],
    1134    "homepage": "https://www.doctrine-project.org/projects/collections.html",
    12     "license": "MIT",
    13     "authors": [
    14         {"name": "Guilherme Blanco", "email": "[email protected]"},
    15         {"name": "Roman Borschel", "email": "[email protected]"},
    16         {"name": "Benjamin Eberlei", "email": "[email protected]"},
    17         {"name": "Jonathan Wage", "email": "[email protected]"},
    18         {"name": "Johannes Schmitt", "email": "[email protected]"}
    19     ],
    2035    "require": {
    21         "php": "^7.1.3 || ^8.0"
     36        "php": "^8.1",
     37        "doctrine/deprecations": "^1"
    2238    },
    2339    "require-dev": {
    24         "phpunit/phpunit": "^7.5 || ^8.5 || ^9.1.5",
    25         "doctrine/coding-standard": "^9.0",
    26         "phpstan/phpstan": "^0.12",
    27         "vimeo/psalm": "^4.2.1"
     40        "ext-json": "*",
     41        "doctrine/coding-standard": "^12",
     42        "phpstan/phpstan": "^1.8",
     43        "phpstan/phpstan-phpunit": "^1.0",
     44        "phpunit/phpunit": "^9.5",
     45        "vimeo/psalm": "^5.11"
    2846    },
    2947    "autoload": {
    30         "psr-4": { "Doctrine\\Common\\Collections\\": "lib/Doctrine/Common/Collections" }
     48        "psr-4": {
     49            "Doctrine\\Common\\Collections\\": "src"
     50        }
    3151    },
    3252    "autoload-dev": {
    3353        "psr-4": {
    34             "Doctrine\\Tests\\": "tests/Doctrine/Tests"
     54            "Doctrine\\Tests\\": "tests"
     55        }
     56    },
     57    "config": {
     58        "allow-plugins": {
     59            "composer/package-versions-deprecated": true,
     60            "dealerdirect/phpcodesniffer-composer-installer": true
    3561        }
    3662    }
  • acf-rrule-field/tags/1.3.0/vendor/doctrine/collections/docs/en/expression-builder.rst

    r2421882 r2980255  
    3939        $expressionBuilder->eq('foo', 1),
    4040        $expressionBuilder->eq('bar', 1)
     41    );
     42
     43    $collection->matching(new Criteria($expression));
     44
     45not
     46---
     47
     48.. code-block:: php
     49    $expressionBuilder = Criteria::expr();
     50
     51    $expression = $expressionBuilder->not(
     52        $expressionBuilder->eq('foo', 1)
    4153    );
    4254
  • acf-rrule-field/tags/1.3.0/vendor/doctrine/collections/docs/en/expressions.rst

    r2421882 r2980255  
    33
    44The ``Doctrine\Common\Collections\Expr\Comparison`` class
    5 can be used to create expressions to be used with the
     5can be used to create comparison expressions to be used with the
    66``Doctrine\Common\Collections\Criteria`` class. It has the
    77following operator constants:
     
    2020- ``Comparison::STARTS_WITH``
    2121- ``Comparison::ENDS_WITH``
     22
     23The ``Doctrine\Common\Collections\Expr\CompositeExpression`` class
     24can be used to create composite expressions to be used with the
     25``Doctrine\Common\Collections\Criteria`` class. It has the
     26following operator constants:
     27
     28- ``CompositeExpression::TYPE_AND``
     29- ``CompositeExpression::TYPE_OR``
     30- ``CompositeExpression::TYPE_NOT``
     31
     32When using the ``TYPE_OR`` and ``TYPE_AND`` operators the
     33``CompositeExpression`` accepts multiple expressions as parameter
     34but only one expression can be provided when using the ``NOT`` operator.
    2235
    2336The ``Doctrine\Common\Collections\Criteria`` class has the following
  • acf-rrule-field/tags/1.3.0/vendor/doctrine/collections/docs/en/index.rst

    r2581616 r2980255  
    3333of the collection being at a certain position unless you explicitly positioned it before.
    3434
     35Methods that do not alter the collection or have template types
     36appearing in invariant or contravariant positions are not directly
     37defined in ``Doctrine\Common\Collections\Collection``, but are inherited
     38from the ``Doctrine\Common\Collections\ReadableCollection`` interface.
     39
    3540The methods available on the interface are:
    3641
     
    149154    }); // true
    150155
     156findFirst
     157---------
     158
     159Returns the first element of this collection that satisfies the given predicate.
     160
     161.. code-block:: php
     162    $collection = new Collection([1, 2, 3, 2, 1]);
     163
     164    $one = $collection->findFirst(function(int $key, int $value): bool {
     165        return $value > 2 && $key > 1;
     166    }); // 3
     167
    151168filter
    152169------
     
    217234        return $value + 1;
    218235    }); // [2, 3, 4]
     236
     237reduce
     238------
     239
     240Applies iteratively the given function to each element in the collection, so as to reduce the collection to a single value.
     241
     242.. code-block:: php
     243    $collection = new ArrayCollection([1, 2, 3]);
     244
     245    $reduce = $collection->reduce(function(int $accumulator, int $value): int {
     246        return $accumulator + $value;
     247    }, 0); // 6
    219248
    220249next
     
    303332
    304333Selects all elements from a selectable that match the expression and
    305 returns a new collection containing these elements.
     334returns a new collection containing these elements and preserved keys.
    306335
    307336.. code-block:: php
     
    310339
    311340    $collection = new ArrayCollection([
    312         [
     341        'wage' => [
    313342            'name' => 'jwage',
    314343        ],
    315         [
     344        'roman' => [
    316345            'name' => 'romanb',
    317346        ],
     
    324353    $criteria->where($expr);
    325354
    326     $matched = $collection->matching($criteria); // ['jwage']
     355    $matchingCollection = $collection->matching($criteria); // [ 'wage' => [ 'name' => 'jwage' ]]
    327356
    328357You can read more about expressions :ref:`here <expressions>`.
  • acf-rrule-field/tags/1.3.0/vendor/doctrine/collections/docs/en/sidebar.rst

    r2421882 r2980255  
    77    derived-collections
    88    lazy-collections
     9    serialization
  • acf-rrule-field/tags/1.3.0/vendor/simshaun/recurr/README.md

    r2421882 r2980255  
    1 # Recurr [![Build Status](https://travis-ci.org/simshaun/recurr.png)](https://travis-ci.org/simshaun/recurr.png) [![Latest Stable Version](https://poser.pugx.org/simshaun/recurr/v/stable.svg)](https://packagist.org/packages/simshaun/recurr) [![Total Downloads](https://poser.pugx.org/simshaun/recurr/downloads.svg)](https://packagist.org/packages/simshaun/recurr) [![Latest Unstable Version](https://poser.pugx.org/simshaun/recurr/v/unstable.svg)](https://packagist.org/packages/simshaun/recurr) [![License](https://poser.pugx.org/simshaun/recurr/license.svg)](https://packagist.org/packages/simshaun/recurr)
     1# Recurr
     2
     3[![tests](https://github.com/simshaun/recurr/workflows/tests/badge.svg)](https://github.com/simshaun/recurr/actions)
     4[![Latest Stable Version](https://poser.pugx.org/simshaun/recurr/v/stable.svg)](https://packagist.org/packages/simshaun/recurr)
     5[![Total Downloads](https://poser.pugx.org/simshaun/recurr/downloads.svg)](https://packagist.org/packages/simshaun/recurr)
     6[![Latest Unstable Version](https://poser.pugx.org/simshaun/recurr/v/unstable.svg)](https://packagist.org/packages/simshaun/recurr)
     7[![License](https://poser.pugx.org/simshaun/recurr/license.svg)](https://packagist.org/packages/simshaun/recurr)
    28
    39Recurr is a PHP library for working with recurrence rules ([RRULE](https://tools.ietf.org/html/rfc5545)) and converting them in to DateTime objects.
     
    1016The recommended way to install Recurr is through [Composer](http://getcomposer.org).
    1117
    12 `composer require simshaun/recurr`
     18```bash
     19composer require simshaun/recurr
     20```
    1321
    1422Using Recurr
     
    154162-------
    155163
    156 Recurr is licensed under the MIT License. See the LICENSE file for details.
     164Recurr is licensed under the MIT License. See the [LICENSE](./LICENSE) file for details.
  • acf-rrule-field/tags/1.3.0/vendor/simshaun/recurr/composer.json

    r2525762 r2980255  
    1414    ],
    1515    "require": {
    16         "php": ">=5.5.0",
    17         "doctrine/collections": "~1.3"
     16        "php": "^7.2||^8.0",
     17        "doctrine/collections": "~1.6||^2.0"
    1818    },
    1919    "require-dev": {
    20         "phpunit/phpunit": "~5.7"
     20        "phpunit/phpunit": "^8.5.16",
     21        "symfony/yaml": "^5.3"
    2122    },
    2223    "autoload": {
     
    3435            "dev-master": "0.x-dev"
    3536        }
     37    },
     38    "scripts": {
     39        "test": "./vendor/bin/phpunit --color=always"
    3640    }
    3741}
  • acf-rrule-field/trunk/acf-rrule.php

    r2814099 r2980255  
    55Plugin URI: https://github.com/marcbelletre/acf-rrule
    66Description: Create recurring rules with a single ACF field
    7 Version: 1.2.5
     7Version: 1.3.0
    88Author: Marc Bellêtre
    99Author URI: https://pixelparfait.fr
     
    4545            // - these will be passed into the field class.
    4646            $this->settings = [
    47                 'version'   => '1.2.5',
     47                'version'   => '1.3.0',
    4848                'url'       => plugin_dir_url(__FILE__),
    4949                'path'      => plugin_dir_path(__FILE__),
  • acf-rrule-field/trunk/composer.json

    r2421882 r2980255  
    11{
    2     "name": "marcbelletre/acf-rrule",
    3     "description": "RRule field for Advanced Custom Fields",
    4     "type": "wordpress-plugin",
    5     "keywords": ["acf", "rrule", "recurring", "date"],
    6     "license": "MIT",
    7     "authors": [
    8         {
    9             "name": "Marc Bellêtre",
    10             "email": "[email protected]",
    11             "homepage": "https://pixelparfait.fr"
    12         }
    13     ],
    14     "support": {
    15         "issues": "https://github.com/marcbelletre/acf-rrule/issues"
    16     },
    17     "require": {
    18         "simshaun/recurr": "^4.0",
    19         "composer/installers": "~1.0"
     2  "name": "marcbelletre/acf-rrule",
     3  "description": "RRule field for Advanced Custom Fields",
     4  "type": "wordpress-plugin",
     5  "keywords": [
     6    "acf",
     7    "rrule",
     8    "recurring",
     9    "date"
     10  ],
     11  "license": "MIT",
     12  "authors": [
     13    {
     14      "name": "Marc Bellêtre",
     15      "email": "[email protected]",
     16      "homepage": "https://pixelparfait.fr"
    2017    }
     18  ],
     19  "support": {
     20    "issues": "https://github.com/marcbelletre/acf-rrule/issues"
     21  },
     22  "require": {
     23    "simshaun/recurr": "^5.0",
     24    "composer/installers": "~1.0"
     25  },
     26  "config": {
     27    "allow-plugins": {
     28      "composer/installers": true
     29    }
     30  }
    2131}
  • acf-rrule-field/trunk/composer.lock

    r2628164 r2980255  
    55        "This file is @generated automatically"
    66    ],
    7     "content-hash": "c30f9a9a5de399f90436768128439030",
     7    "content-hash": "b1dba48b1733046ff32a3a88e9019555",
    88    "packages": [
    99        {
     
    160160        {
    161161            "name": "doctrine/collections",
    162             "version": "1.6.8",
     162            "version": "2.1.4",
    163163            "source": {
    164164                "type": "git",
    165165                "url": "https://github.com/doctrine/collections.git",
    166                 "reference": "1958a744696c6bb3bb0d28db2611dc11610e78af"
     166                "reference": "72328a11443a0de79967104ad36ba7b30bded134"
    167167            },
    168168            "dist": {
    169169                "type": "zip",
    170                 "url": "https://api.github.com/repos/doctrine/collections/zipball/1958a744696c6bb3bb0d28db2611dc11610e78af",
    171                 "reference": "1958a744696c6bb3bb0d28db2611dc11610e78af",
     170                "url": "https://api.github.com/repos/doctrine/collections/zipball/72328a11443a0de79967104ad36ba7b30bded134",
     171                "reference": "72328a11443a0de79967104ad36ba7b30bded134",
    172172                "shasum": ""
    173173            },
    174174            "require": {
    175                 "php": "^7.1.3 || ^8.0"
     175                "doctrine/deprecations": "^1",
     176                "php": "^8.1"
    176177            },
    177178            "require-dev": {
    178                 "doctrine/coding-standard": "^9.0",
    179                 "phpstan/phpstan": "^0.12",
    180                 "phpunit/phpunit": "^7.5 || ^8.5 || ^9.1.5",
    181                 "vimeo/psalm": "^4.2.1"
     179                "doctrine/coding-standard": "^12",
     180                "ext-json": "*",
     181                "phpstan/phpstan": "^1.8",
     182                "phpstan/phpstan-phpunit": "^1.0",
     183                "phpunit/phpunit": "^9.5",
     184                "vimeo/psalm": "^5.11"
    182185            },
    183186            "type": "library",
    184187            "autoload": {
    185188                "psr-4": {
    186                     "Doctrine\\Common\\Collections\\": "lib/Doctrine/Common/Collections"
     189                    "Doctrine\\Common\\Collections\\": "src"
    187190                }
    188191            },
     
    223226            "support": {
    224227                "issues": "https://github.com/doctrine/collections/issues",
    225                 "source": "https://github.com/doctrine/collections/tree/1.6.8"
    226             },
    227             "time": "2021-08-10T18:51:53+00:00"
     228                "source": "https://github.com/doctrine/collections/tree/2.1.4"
     229            },
     230            "funding": [
     231                {
     232                    "url": "https://www.doctrine-project.org/sponsorship.html",
     233                    "type": "custom"
     234                },
     235                {
     236                    "url": "https://www.patreon.com/phpdoctrine",
     237                    "type": "patreon"
     238                },
     239                {
     240                    "url": "https://tidelift.com/funding/github/packagist/doctrine%2Fcollections",
     241                    "type": "tidelift"
     242                }
     243            ],
     244            "time": "2023-10-03T09:22:33+00:00"
     245        },
     246        {
     247            "name": "doctrine/deprecations",
     248            "version": "1.1.2",
     249            "source": {
     250                "type": "git",
     251                "url": "https://github.com/doctrine/deprecations.git",
     252                "reference": "4f2d4f2836e7ec4e7a8625e75c6aa916004db931"
     253            },
     254            "dist": {
     255                "type": "zip",
     256                "url": "https://api.github.com/repos/doctrine/deprecations/zipball/4f2d4f2836e7ec4e7a8625e75c6aa916004db931",
     257                "reference": "4f2d4f2836e7ec4e7a8625e75c6aa916004db931",
     258                "shasum": ""
     259            },
     260            "require": {
     261                "php": "^7.1 || ^8.0"
     262            },
     263            "require-dev": {
     264                "doctrine/coding-standard": "^9",
     265                "phpstan/phpstan": "1.4.10 || 1.10.15",
     266                "phpstan/phpstan-phpunit": "^1.0",
     267                "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5",
     268                "psalm/plugin-phpunit": "0.18.4",
     269                "psr/log": "^1 || ^2 || ^3",
     270                "vimeo/psalm": "4.30.0 || 5.12.0"
     271            },
     272            "suggest": {
     273                "psr/log": "Allows logging deprecations via PSR-3 logger implementation"
     274            },
     275            "type": "library",
     276            "autoload": {
     277                "psr-4": {
     278                    "Doctrine\\Deprecations\\": "lib/Doctrine/Deprecations"
     279                }
     280            },
     281            "notification-url": "https://packagist.org/downloads/",
     282            "license": [
     283                "MIT"
     284            ],
     285            "description": "A small layer on top of trigger_error(E_USER_DEPRECATED) or PSR-3 logging with options to disable all deprecations or selectively for packages.",
     286            "homepage": "https://www.doctrine-project.org/",
     287            "support": {
     288                "issues": "https://github.com/doctrine/deprecations/issues",
     289                "source": "https://github.com/doctrine/deprecations/tree/1.1.2"
     290            },
     291            "time": "2023-09-27T20:04:15+00:00"
    228292        },
    229293        {
    230294            "name": "simshaun/recurr",
    231             "version": "v4.0.5",
     295            "version": "v5.0.2",
    232296            "source": {
    233297                "type": "git",
    234298                "url": "https://github.com/simshaun/recurr.git",
    235                 "reference": "08b0b46879f598cd11dd42b4c1a9c221a0562749"
     299                "reference": "1aff62e6e0ee875b3f2487352542605123ee9172"
    236300            },
    237301            "dist": {
    238302                "type": "zip",
    239                 "url": "https://api.github.com/repos/simshaun/recurr/zipball/08b0b46879f598cd11dd42b4c1a9c221a0562749",
    240                 "reference": "08b0b46879f598cd11dd42b4c1a9c221a0562749",
     303                "url": "https://api.github.com/repos/simshaun/recurr/zipball/1aff62e6e0ee875b3f2487352542605123ee9172",
     304                "reference": "1aff62e6e0ee875b3f2487352542605123ee9172",
    241305                "shasum": ""
    242306            },
    243307            "require": {
    244                 "doctrine/collections": "~1.3",
    245                 "php": ">=5.5.0"
     308                "doctrine/collections": "~1.6||^2.0",
     309                "php": "^7.2||^8.0"
    246310            },
    247311            "require-dev": {
    248                 "phpunit/phpunit": "~5.7"
     312                "phpunit/phpunit": "^8.5.16",
     313                "symfony/yaml": "^5.3"
    249314            },
    250315            "type": "library",
     
    281346            "support": {
    282347                "issues": "https://github.com/simshaun/recurr/issues",
    283                 "source": "https://github.com/simshaun/recurr/tree/v4.0.5"
    284             },
    285             "time": "2021-03-25T23:00:49+00:00"
     348                "source": "https://github.com/simshaun/recurr/tree/v5.0.2"
     349            },
     350            "time": "2023-09-26T20:31:33+00:00"
    286351        }
    287352    ],
     
    294359    "platform": [],
    295360    "platform-dev": [],
    296     "plugin-api-version": "2.0.0"
     361    "plugin-api-version": "2.3.0"
    297362}
  • acf-rrule-field/trunk/fields/class-acf-field-rrule.php

    r2814099 r2980255  
    11<?php
    22
    3 use \Recurr\Rule;
     3use Recurr\Rule;
    44
    55// Exit if accessed directly
     
    5050             */
    5151
    52             $this->defaults = array(
     52            $this->defaults = [
    5353                'date_display_format' => 'j F Y',
    5454                'date_return_format' => 'Y-m-d',
    5555                'allow_time' => false,
    5656                'time_display_format' => 'H:i',
    57                 'timezone' => get_option('timezone_string') ?: 'UTC',
    58             );
     57                'time_return_format' => 'H:i',
     58            ];
    5959
    6060            /*
     
    107107            $m_d_Y = date_i18n('m/d/Y');
    108108            $F_j_Y = date_i18n('F j, Y');
     109            $g_i_a = date_i18n('g:i a');
     110            $H_i = date_i18n('H:i');
    109111            $Ymd = date_i18n('Ymd');
    110112
    111             // Display format
    112             acf_render_field_setting($field, array(
    113                 'label'            => __('Date Display Format', 'acf-rrule-field'),
    114                 'instructions'    => __('The date format displayed when editing a post', 'acf-rrule-field'),
    115                 'type'            => 'radio',
    116                 'name'            => 'date_display_format',
    117                 'other_choice'    => 1,
    118                 'choices'        => array(
    119                     'd/m/Y'            => '<span>' . $d_m_Y . '</span><code>d/m/Y</code>',
    120                     'm/d/Y'            => '<span>' . $m_d_Y . '</span><code>m/d/Y</code>',
    121                     'F j, Y'        => '<span>' . $F_j_Y . '</span><code>F j, Y</code>',
    122                     'other'            => '<span>' . __('Custom:', 'acf-rrule-field') . '</span>'
    123                 )
    124             ));
    125 
    126             // Return format
    127             acf_render_field_setting($field, array(
    128                 'label'            => __('Date Return Format', 'acf-rrule-field'),
    129                 'instructions'    => __('The date format returned via template functions', 'acf-rrule-field'),
    130                 'type'            => 'radio',
    131                 'name'            => 'return_format',
    132                 'other_choice'    => 1,
    133                 'choices'        => array(
    134                     'd/m/Y'            => '<span>' . $d_m_Y . '</span><code>d/m/Y</code>',
    135                     'm/d/Y'            => '<span>' . $m_d_Y . '</span><code>m/d/Y</code>',
    136                     'F j, Y'        => '<span>' . $F_j_Y . '</span><code>F j, Y</code>',
    137                     'Ymd'            => '<span>' . $Ymd . '</span><code>Ymd</code>',
    138                     'other'            => '<span>' . __('Custom:', 'acf-rrule-field') . '</span>'
    139                 )
    140             ));
     113            echo '<div class="acf-field-settings-split">';
     114
     115            // Date display format
     116            acf_render_field_setting($field, [
     117                'label' => __('Date Display Format', 'acf-rrule-field'),
     118                'instructions' => __('The date format displayed when editing a post', 'acf-rrule-field'),
     119                'type' => 'radio',
     120                'name' => 'date_display_format',
     121                'other_choice' => 1,
     122                'choices' => [
     123                    'd/m/Y' => '<span>' . $d_m_Y . '</span><code>d/m/Y</code>',
     124                    'm/d/Y' => '<span>' . $m_d_Y . '</span><code>m/d/Y</code>',
     125                    'F j, Y' => '<span>' . $F_j_Y . '</span><code>F j, Y</code>',
     126                    'other' => '<span>' . __('Custom:', 'acf-rrule-field') . '</span>',
     127                ],
     128            ]);
     129
     130            // Date return format
     131            acf_render_field_setting($field, [
     132                'label' => __('Date Return Format', 'acf-rrule-field'),
     133                'instructions' => __('The date format returned via template functions', 'acf-rrule-field'),
     134                'type' => 'radio',
     135                'name' => 'date_return_format',
     136                'other_choice' => 1,
     137                'choices' => [
     138                    'd/m/Y' => '<span>' . $d_m_Y . '</span><code>d/m/Y</code>',
     139                    'm/d/Y' => '<span>' . $m_d_Y . '</span><code>m/d/Y</code>',
     140                    'F j, Y' => '<span>' . $F_j_Y . '</span><code>F j, Y</code>',
     141                    'Ymd' => '<span>' . $Ymd . '</span><code>Ymd</code>',
     142                    'other' => '<span>' . __('Custom:', 'acf-rrule-field') . '</span>',
     143                ],
     144            ]);
     145
     146            echo '</div>';
     147
     148            echo '<div class="acf-field-settings-split">';
    141149
    142150            // Allow time selector
    143             acf_render_field_setting($field, array(
    144                 'label'            => __('Time Selector', 'acf-rrule-field'),
    145                 'instructions'    => __('Allow time selection when creating the recurring rule', 'acf-rrule-field'),
    146                 'name'            => 'allow_time',
    147                 'type'            => 'true_false',
    148                 'ui'            => 1,
    149             ));
     151            acf_render_field_setting($field, [
     152                'label' => __('Time Selector', 'acf-rrule-field'),
     153                'instructions' => __('Allow time selection when creating the recurring rule', 'acf-rrule-field'),
     154                'name' => 'allow_time',
     155                'type' => 'true_false',
     156                'ui' => 1,
     157            ]);
     158
     159            echo '</div>';
     160
     161            echo '<div class="acf-field-settings-split">';
     162
     163            // Time display format
     164            acf_render_field_setting($field, [
     165                'label' => __('Time Display Format', 'acf-rrule-field'),
     166                'instructions' => __('The time format displayed when editing a post', 'acf-rrule-field'),
     167                'type' => 'radio',
     168                'name' => 'time_display_format',
     169                'other_choice' => 1,
     170                'choices' => [
     171                    'H:i' => '<span>' . $H_i . '</span><code>H:i</code>',
     172                    'g:i a' => '<span>' . $g_i_a . '</span><code>g:i a</code>',
     173                    'other' => '<span>' . __('Custom:', 'acf-rrule-field') . '</span>',
     174                ],
     175                'conditions' => [
     176                    'field' => 'allow_time',
     177                    'operator' => '==',
     178                    'value' => 1
     179                ],
     180            ]);
     181
     182            // Time return format
     183            acf_render_field_setting($field, [
     184                'label' => __('Time Return Format', 'acf-rrule-field'),
     185                'instructions' => __('The time format returned via template functions', 'acf-rrule-field'),
     186                'type' => 'radio',
     187                'name' => 'time_return_format',
     188                'other_choice' => 1,
     189                'choices' => [
     190                    'H:i' => '<span>' . $H_i . '</span><code>H:i</code>',
     191                    'g:i a' => '<span>' . $g_i_a . '</span><code>g:i a</code>',
     192                    'other' => '<span>' . __('Custom:', 'acf-rrule-field') . '</span>',
     193                ],
     194                'conditions' => [
     195                    'field' => 'allow_time',
     196                    'operator' => '==',
     197                    'value' => 1
     198                ],
     199            ]);
     200
     201            echo '</div>';
    150202        }
    151 
    152203
    153204        /*
     
    172223
    173224            // Datepicker options
    174             $datepicker_options = array(
     225            $datepicker_options = [
    175226                'class' => 'acf-date-picker acf-input-wrap',
    176227                'data-date_format' => acf_convert_date_to_js($field['date_display_format']),
    177             );
    178             $timepicker_options = array(
     228            ];
     229            $timepicker_options = [
    179230                'class' => 'acf-time-picker acf-input-wrap',
    180             ); ?>
     231                'data-time_format' => acf_convert_time_to_js($field['time_display_format']),
     232            ]; ?>
    181233
    182234            <div class="acf-input-wrap">
     
    185237                <?php if ($field['value'] && $field['value']['text']) : ?>
    186238                    <p class="acf-field-rrule-current">
    187                         <?php _e('Current value:', 'acf-rrule-field'); ?> <?= $field['value']['text'] ?>
     239                        <?php _e('Current value:', 'acf-rrule-field'); ?>
     240                        <?= $field['value']['text'] ?>
    188241                    </p>
    189242                <?php endif; ?>
     
    211264                                        </div>
    212265
    213                                         <?php acf_hidden_input(array(
     266                                        <?php acf_hidden_input([
    214267                                            'name' => $field['name'] . '[start_date]',
    215268                                            'value'    => $start_date_hidden,
    216                                         )); ?>
    217                                         <?php acf_text_input(array(
     269                                        ]); ?>
     270                                        <?php acf_text_input([
    218271                                            'id' => $unique_id . '-start-date',
    219272                                            'class' => 'input',
    220273                                            'value'    => $start_date_display,
    221                                         )); ?>
     274                                        ]); ?>
    222275                                    </div>
    223276                                </div>
     
    242295                                            </div>
    243296
    244                                             <?php acf_hidden_input(array(
     297                                            <?php acf_hidden_input([
    245298                                                'name' => $field['name'] . '[start_time]',
    246                                                 'value'    => $start_time,
    247                                             )); ?>
    248                                             <?php acf_text_input(array(
     299                                                'value' => $start_time,
     300                                            ]); ?>
     301                                            <?php acf_text_input([
    249302                                                'id' => $unique_id . '-start-time',
    250303                                                'class' => 'input',
    251                                                 'value'    => $start_time,
    252                                             )); ?>
     304                                                'value' => $start_time,
     305                                            ]); ?>
    253306                                        </div>
    254307                                    </div>
     
    260313                    <div class="acf-field">
    261314                        <?php
    262                         $frequency = array(
     315                        $frequency = [
    263316                            'id' => $field['id'] . '-frequency',
    264317                            'name' => $field['name'] . '[frequency]',
    265318                            'value' => is_array($field['value']) ? $field['value']['frequency'] : null,
    266319                            'class' => 'frequency-select',
    267                             'choices' => array(
     320                            'choices' => [
    268321                                'DAILY' => __('Daily', 'acf-rrule-field'),
    269322                                'WEEKLY' => __('Weekly', 'acf-rrule-field'),
    270323                                'MONTHLY' => __('Monthly', 'acf-rrule-field'),
    271324                                'YEARLY' => __('Yearly', 'acf-rrule-field'),
    272                             ),
    273                         ); ?>
     325                            ],
     326                        ]; ?>
    274327
    275328                        <div class="acf-label">
     
    286339                    <div class="acf-field">
    287340                        <?php
    288                         $interval = array(
     341                        $interval = [
    289342                            'id' => $field['id'] . '-interval',
    290343                            'name' => $field['name'] . '[interval]',
     
    294347                            'min' => 1,
    295348                            'step' => 1,
    296                         ); ?>
     349                        ]; ?>
    297350
    298351                        <div class="acf-input">
    299                             <div class="acf-input-prepend"><?= _x('Every', 'RRule Interval', 'acf-rrule-field') ?></div>
     352                            <div class="acf-input-prepend">
     353                                <?= _x('Every', 'RRule Interval', 'acf-rrule-field') ?>
     354                            </div>
    300355                            <div class="acf-input-append">
    301356                                <span class="freq-suffix" data-frequency="DAILY"><?= _x('day', 'RRule Interval', 'acf-rrule-field') ?></span>
     
    312367                    <div class="acf-field acf-field-button-group" data-type="button_group_multiple" data-frequency="WEEKLY">
    313368                        <?php
    314                         $weekdays = array(
     369                        $weekdays = [
    315370                            'MO' => __('Monday', 'acf-rrule-field'),
    316371                            'TU' => __('Tuesday', 'acf-rrule-field'),
     
    320375                            'SA' => __('Saturday', 'acf-rrule-field'),
    321376                            'SU' => __('Sunday', 'acf-rrule-field'),
    322                         ); ?>
     377                        ]; ?>
    323378
    324379                        <div class="acf-label">
     
    331386                            <div class="acf-button-group">
    332387                                <?php foreach ($weekdays as $key => $value) : ?>
    333                                     <?php $selected = is_array($field['value']) && in_array($key, $field['value']['weekdays'], true); ?>
     388                                    <?php $selected = is_array($field['value']) && in_array($key, $field['value']['weekdays']); ?>
    334389
    335390                                    <label<?= ($selected ? ' class="selected"' : '') ?>>
    336                                         <input type="checkbox" name="<?= $field['name'] ?>[weekdays][]" value="<?= $key ?>" <?= ($selected ? ' checked' : '') ?>> <?= $value ?>
     391                                        <input type="checkbox" name="<?= $field['name'] ?>[weekdays][]" value="<?= $key ?>" <?= ($selected ? ' checked' : '') ?>>
     392                                        <?= $value ?>
    337393                                        </label>
    338394                                    <?php endforeach; ?>
     
    358414                                            <tr>
    359415                                                <?php foreach ($week as $day) : ?>
    360                                                     <?php $selected = is_array($field['value']) && in_array($day, $field['value']['monthdays'], true); ?>
     416                                                    <?php $selected = is_array($field['value']) && in_array($day, $field['value']['monthdays']); ?>
    361417
    362418                                                    <td>
     
    397453
    398454                                                    if (is_array($field['value']) && is_array($field['value']['bysetpos'])) {
    399                                                         $selected = in_array((string) $key, $field['value']['bysetpos'], true);
     455                                                        $selected = in_array((string) $key, $field['value']['bysetpos']);
    400456                                                    } ?>
    401457
     
    413469                                            <ul class="acf-checkbox-list">
    414470                                                <?php foreach ($weekdays as $key => $value) : ?>
    415                                                     <?php $selected = is_array($field['value']) && in_array($key, $field['value']['weekdays'], true); ?>
     471                                                    <?php $selected = is_array($field['value']) && in_array($key, $field['value']['weekdays']); ?>
    416472
    417473                                                    <li>
     
    436492
    437493                        <div class="acf-input">
    438                             <?php $months = array(
     494                            <?php $months = [
    439495                                '1' => __('January', 'acf-rrule-field'),
    440496                                '2' => __('February', 'acf-rrule-field'),
     
    449505                                '11' => __('November', 'acf-rrule-field'),
    450506                                '12' => __('December', 'acf-rrule-field'),
    451                             ); ?>
     507                            ]; ?>
    452508
    453509                            <input type="hidden" name="<?= $field['name'] ?>[months]">
     
    455511                            <ul class="acf-checkbox-list acf-hl">
    456512                                <?php foreach ($months as $key => $month) : ?>
    457                                     <?php $selected = is_array($field['value']) && in_array($key, $field['value']['months'], true); ?>
     513                                    <?php $selected = is_array($field['value']) && in_array($key, $field['value']['months']); ?>
    458514
    459515                                    <li>
     
    475531                        </div>
    476532                        <div class="acf-input">
    477                             <?php acf_select_input(array(
     533                            <?php acf_select_input([
    478534                                'id' => $field['id'] . '-end-type',
    479535                                'name' => $field['name'] . '[end_type]',
    480536                                'value' => $field['value'] ? $field['value']['end_type'] : null,
    481537                                'class' => 'end-type-select',
    482                                 'choices' => array(
     538                                'choices' => [
    483539                                    'date' => __('At a specific date', 'acf-rrule-field'),
    484540                                    'count' =>  __('After a number of occurrences', 'acf-rrule-field'),
    485                                     'none'    => __('Never', 'acf-rrule-field'),
    486                                 ),
    487                             )); ?>
     541                                    'none' => __('Never', 'acf-rrule-field'),
     542                                ],
     543                            ]); ?>
    488544                        </div>
    489545                    </div>
     
    491547                    <div class="acf-field" data-end-type="count">
    492548                        <?php
    493                         $occurrence_count = array(
     549                        $occurrence_count = [
    494550                            'id' => $field['id'] . '-occurrence-count',
    495551                            'name' => $field['name'] . '[occurrence_count]',
    496552                            'type' => 'number',
    497553                            'class' => 'acf-is-prepended acf-is-appended',
    498                             'value'    => is_array($field['value']) ? $field['value']['occurrence_count'] : null,
     554                            'value' => is_array($field['value']) ? $field['value']['occurrence_count'] : null,
    499555                            'min' => 1,
    500556                            'step' => 1,
    501                         ); ?>
     557                        ]; ?>
    502558
    503559                        <div class="acf-input">
    504                             <div class="acf-input-prepend"><?php _e('After', 'acf-rrule-field'); ?></div>
    505                             <div class="acf-input-append"><?php _e('occurrence(s)', 'acf-rrule-field'); ?></div>
     560                            <div class="acf-input-prepend">
     561                                <?php _e('After', 'acf-rrule-field'); ?>
     562                            </div>
     563                            <div class="acf-input-append">
     564                                <?php _e('occurrence(s)', 'acf-rrule-field'); ?>
     565                            </div>
    506566                            <div class="acf-input-wrap">
    507567                                <?php acf_text_input($occurrence_count); ?>
     
    523583
    524584                            <div class="acf-input">
    525                                 <div class="acf-input-prepend"><?php _e('Until', 'acf-rrule-field'); ?></div>
     585                                <div class="acf-input-prepend">
     586                                    <?php _e('Until', 'acf-rrule-field'); ?>
     587                                </div>
    526588                                <div class="acf-input-wrap">
    527                                     <?php acf_hidden_input(array(
     589                                    <?php acf_hidden_input([
    528590                                        'name' => $field['name'] . '[end_date]',
    529                                         'value'    => $end_date_hidden,
    530                                     )); ?>
    531                                     <?php acf_text_input(array(
     591                                        'value' => $end_date_hidden,
     592                                    ]); ?>
     593                                    <?php acf_text_input([
    532594                                        'id' => $unique_id . '-end-date',
    533595                                        'class' => 'acf-is-prepended',
    534                                         'value'    => $end_date_display,
    535                                     )); ?>
     596                                        'value' => $end_date_display,
     597                                    ]); ?>
    536598                                </div>
    537599                            </div>
     
    560622        public function input_admin_enqueue_scripts()
    561623        {
    562 
    563624            // Bail early if no enqueue
    564625            if (!acf_get_setting('enqueue_datepicker')) {
     
    569630            global $wp_locale;
    570631
    571             acf_localize_data(array(
    572                 'datePickerL10n'    => array(
    573                     'closeText'            => _x('Done', 'Date Picker JS closeText', 'acf-rrule-field'),
    574                     'currentText'        => _x('Today', 'Date Picker JS currentText', 'acf-rrule-field'),
    575                     'nextText'            => _x('Next', 'Date Picker JS nextText', 'acf-rrule-field'),
    576                     'prevText'            => _x('Prev', 'Date Picker JS prevText', 'acf-rrule-field'),
    577                     'weekHeader'        => _x('Wk', 'Date Picker JS weekHeader', 'acf-rrule-field'),
    578                     'monthNames'        => array_values($wp_locale->month),
    579                     'monthNamesShort'   => array_values($wp_locale->month_abbrev),
    580                     'dayNames'          => array_values($wp_locale->weekday),
    581                     'dayNamesMin'       => array_values($wp_locale->weekday_initial),
    582                     'dayNamesShort'     => array_values($wp_locale->weekday_abbrev)
    583                 )
    584             ));
     632            acf_localize_data([
     633                'datePickerL10n' => [
     634                    'closeText' => _x('Done', 'Date Picker JS closeText', 'acf-rrule-field'),
     635                    'currentText' => _x('Today', 'Date Picker JS currentText', 'acf-rrule-field'),
     636                    'nextText' => _x('Next', 'Date Picker JS nextText', 'acf-rrule-field'),
     637                    'prevText' => _x('Prev', 'Date Picker JS prevText', 'acf-rrule-field'),
     638                    'weekHeader' => _x('Wk', 'Date Picker JS weekHeader', 'acf-rrule-field'),
     639                    'monthNames' => array_values($wp_locale->month),
     640                    'monthNamesShort' => array_values($wp_locale->month_abbrev),
     641                    'dayNames' => array_values($wp_locale->weekday),
     642                    'dayNamesMin' => array_values($wp_locale->weekday_initial),
     643                    'dayNamesShort' => array_values($wp_locale->weekday_abbrev),
     644                ],
     645            ]);
    585646
    586647            // Enqueue scripts
     
    588649
    589650            // Enqueue style
    590             wp_enqueue_style('acf-datepicker', acf_get_url('assets/inc/datepicker/jquery-ui.min.css'), array(), '1.11.4');
     651            wp_enqueue_style('acf-datepicker', acf_get_url('assets/inc/datepicker/jquery-ui.min.css'), [], '1.11.4');
    591652
    592653            // Init vars
     
    595656
    596657            // Register & include JS
    597             wp_enqueue_script('acf-rrule-field', "{$url}assets/js/input.js", array('acf-input'), $version);
     658            wp_enqueue_script('acf-rrule-field', "{$url}assets/js/input.js", ['acf-input'], $version);
    598659
    599660            // Register & include CSS
    600             wp_enqueue_style('acf-rrule-field', "{$url}assets/css/input.css", array('acf-input'), $version);
     661            wp_enqueue_style('acf-rrule-field', "{$url}assets/css/input.css", ['acf-input'], $version);
    601662        }
    602663
     
    618679        public function load_value($value, $post_id, $field)
    619680        {
    620             $new_value = array(
     681            $new_value = [
    621682                'rrule' => null,
    622683                'start_date' => null,
     
    624685                'frequency' => 'WEEKLY',
    625686                'interval' => 1,
    626                 'weekdays' => array(),
    627                 'monthdays' => array(),
    628                 'months' => array(),
     687                'weekdays' => [],
     688                'monthdays' => [],
     689                'months' => [],
    629690                'monthly_by' => 'monthdays',
    630691                'bysetpos' => [],
     
    635696                'dates_collection' => null,
    636697                'text' => null,
    637             );
     698            ];
    638699
    639700            if ($value) {
     701                $timezoneString = get_option('timezone_string') ?: 'UTC';
     702
    640703                try {
    641704                    $rule = new Rule($value);
    642705
     706                    $rule->setTimezone($timezoneString);
     707
    643708                    $start_date = $rule->getStartDate();
    644709
    645710                    $new_value['rrule'] = $value;
    646                     $new_value['start_date'] = $start_date->format('Ymd');
    647                     $new_value['start_time'] = $start_date->format('H:i:s');
     711                    $new_value['start_date'] = $start_date?->format('Ymd');
     712                    $new_value['start_time'] = $start_date?->format('H:i:s');
    648713                    $new_value['frequency'] = $rule->getFreqAsText();
    649714                    $new_value['interval'] = $rule->getInterval();
    650                     $new_value['weekdays'] = $rule->getByDay() ?: array();
    651                     $new_value['monthdays'] = $rule->getByMonthDay() ?: array();
    652                     $new_value['months'] = $rule->getByMonth() ?: array();
     715                    $new_value['weekdays'] = $rule->getByDay() ?: [];
     716                    $new_value['monthdays'] = $rule->getByMonthDay() ?: [];
     717                    $new_value['months'] = $rule->getByMonth() ?: [];
    653718
    654719                    if ($new_value['frequency'] === 'MONTHLY') {
    655                         if (sizeof($new_value['weekdays']) > 0) {
     720                        if (count($new_value['weekdays']) > 0) {
    656721                            $new_value['monthly_by'] = 'setpos';
    657722                            $set_position = $rule->getBySetPosition();
     
    670735                    );
    671736
    672                     $new_value['dates_collection'] = array();
     737                    $new_value['dates_collection'] = [];
    673738
    674739                    foreach ($transformer->transform($rule) as $recurrence) {
     
    677742
    678743                    if ($rule->getUntil()) {
    679                         $end_date = $rule->getUntil();
     744                        $end_date = $rule->getEndDate() ?: $rule->getUntil();
    680745
    681746                        $new_value['end_type'] = 'date';
     
    720785        {
    721786            if (is_array($value)) {
    722                 $start_date = \DateTime::createFromFormat('Ymd', $value['start_date']);
     787                $timezoneString = get_option('timezone_string') ?: 'UTC';
     788                $timezone = new \DateTimeZone($timezoneString);
     789
     790                $start_date = \DateTime::createFromFormat('Ymd', $value['start_date'], $timezone);
    723791
    724792                // Bail early if the DateTime object is null
     
    736804                $rule = new Rule;
    737805
    738                 // Ensure timezone arg is never blank
    739                 $timezone = $field['timezone'] ?: $this->defaults['timezone'];
    740 
    741                 $rule->setTimezone($timezone)
     806                $rule->setTimezone($timezoneString)
    742807                    ->setStartDate($start_date, true)
    743808                    ->setFreq($value['frequency'])
     
    772837                    case 'date':
    773838                        if ($value['end_date']) {
    774                             $end_date = \DateTime::createFromFormat('Ymd', $value['end_date']);
     839                            $end_date = \DateTime::createFromFormat('Ymd', $value['end_date'], $timezone);
    775840                            $end_date->setTime(0, 0, 0);
    776841
    777842                            $rule->setUntil($end_date);
     843                            $rule->setEndDate($end_date);
    778844                        }
    779845
  • acf-rrule-field/trunk/readme.txt

    r2814099 r2980255  
    33Tags: acf, rrule, recurrence, date, calendar
    44Requires at least: 4.7
    5 Tested up to: 6.1
     5Tested up to: 6.3
    66Requires PHP: 5.6
    7 Stable tag: 1.2.5
     7Stable tag: 1.3.0
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3131
    3232== Changelog ==
     33
     34= 1.3.0 =
     35* Add time picker options
     36* Fix compatibility with ACF Extended plugin
     37* Fix selection not being reflected in the calendar
    3338
    3439= 1.2.5 =
  • acf-rrule-field/trunk/vendor/autoload.php

    r2628164 r2980255  
    33// autoload.php @generated by Composer
    44
     5if (PHP_VERSION_ID < 50600) {
     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    );
     21}
     22
    523require_once __DIR__ . '/composer/autoload_real.php';
    624
    7 return ComposerAutoloaderInitf113c85c4bf87a05ceb34ca0b0cd94c1::getLoader();
     25return ComposerAutoloaderInitc35fcbe54628f3a3a961b0147fa06c59::getLoader();
  • acf-rrule-field/trunk/vendor/composer/ClassLoader.php

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

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

    r2421882 r2980255  
    33// autoload_classmap.php @generated by Composer
    44
    5 $vendorDir = dirname(dirname(__FILE__));
     5$vendorDir = dirname(__DIR__);
    66$baseDir = dirname($vendorDir);
    77
  • acf-rrule-field/trunk/vendor/composer/autoload_namespaces.php

    r2421882 r2980255  
    33// autoload_namespaces.php @generated by Composer
    44
    5 $vendorDir = dirname(dirname(__FILE__));
     5$vendorDir = dirname(__DIR__);
    66$baseDir = dirname($vendorDir);
    77
  • acf-rrule-field/trunk/vendor/composer/autoload_psr4.php

    r2421882 r2980255  
    33// autoload_psr4.php @generated by Composer
    44
    5 $vendorDir = dirname(dirname(__FILE__));
     5$vendorDir = dirname(__DIR__);
    66$baseDir = dirname($vendorDir);
    77
    88return array(
    99    'Recurr\\' => array($vendorDir . '/simshaun/recurr/src/Recurr'),
    10     'Doctrine\\Common\\Collections\\' => array($vendorDir . '/doctrine/collections/lib/Doctrine/Common/Collections'),
     10    'Doctrine\\Deprecations\\' => array($vendorDir . '/doctrine/deprecations/lib/Doctrine/Deprecations'),
     11    'Doctrine\\Common\\Collections\\' => array($vendorDir . '/doctrine/collections/src'),
    1112    'Composer\\Installers\\' => array($vendorDir . '/composer/installers/src/Composer/Installers'),
    1213);
  • acf-rrule-field/trunk/vendor/composer/autoload_real.php

    r2628164 r2980255  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInitf113c85c4bf87a05ceb34ca0b0cd94c1
     5class ComposerAutoloaderInitc35fcbe54628f3a3a961b0147fa06c59
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInitf113c85c4bf87a05ceb34ca0b0cd94c1', 'loadClassLoader'), true, true);
    28         self::$loader = $loader = new \Composer\Autoload\ClassLoader();
    29         spl_autoload_unregister(array('ComposerAutoloaderInitf113c85c4bf87a05ceb34ca0b0cd94c1', 'loadClassLoader'));
     27        spl_autoload_register(array('ComposerAutoloaderInitc35fcbe54628f3a3a961b0147fa06c59', 'loadClassLoader'), true, true);
     28        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
     29        spl_autoload_unregister(array('ComposerAutoloaderInitc35fcbe54628f3a3a961b0147fa06c59', 'loadClassLoader'));
    3030
    31         $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
    32         if ($useStaticLoader) {
    33             require __DIR__ . '/autoload_static.php';
    34 
    35             call_user_func(\Composer\Autoload\ComposerStaticInitf113c85c4bf87a05ceb34ca0b0cd94c1::getInitializer($loader));
    36         } else {
    37             $map = require __DIR__ . '/autoload_namespaces.php';
    38             foreach ($map as $namespace => $path) {
    39                 $loader->set($namespace, $path);
    40             }
    41 
    42             $map = require __DIR__ . '/autoload_psr4.php';
    43             foreach ($map as $namespace => $path) {
    44                 $loader->setPsr4($namespace, $path);
    45             }
    46 
    47             $classMap = require __DIR__ . '/autoload_classmap.php';
    48             if ($classMap) {
    49                 $loader->addClassMap($classMap);
    50             }
    51         }
     31        require __DIR__ . '/autoload_static.php';
     32        call_user_func(\Composer\Autoload\ComposerStaticInitc35fcbe54628f3a3a961b0147fa06c59::getInitializer($loader));
    5233
    5334        $loader->register(true);
  • acf-rrule-field/trunk/vendor/composer/autoload_static.php

    r2628164 r2980255  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInitf113c85c4bf87a05ceb34ca0b0cd94c1
     7class ComposerStaticInitc35fcbe54628f3a3a961b0147fa06c59
    88{
    99    public static $prefixLengthsPsr4 = array (
     
    1414        'D' =>
    1515        array (
     16            'Doctrine\\Deprecations\\' => 22,
    1617            'Doctrine\\Common\\Collections\\' => 28,
    1718        ),
     
    2728            0 => __DIR__ . '/..' . '/simshaun/recurr/src/Recurr',
    2829        ),
     30        'Doctrine\\Deprecations\\' =>
     31        array (
     32            0 => __DIR__ . '/..' . '/doctrine/deprecations/lib/Doctrine/Deprecations',
     33        ),
    2934        'Doctrine\\Common\\Collections\\' =>
    3035        array (
    31             0 => __DIR__ . '/..' . '/doctrine/collections/lib/Doctrine/Common/Collections',
     36            0 => __DIR__ . '/..' . '/doctrine/collections/src',
    3237        ),
    3338        'Composer\\Installers\\' =>
     
    4449    {
    4550        return \Closure::bind(function () use ($loader) {
    46             $loader->prefixLengthsPsr4 = ComposerStaticInitf113c85c4bf87a05ceb34ca0b0cd94c1::$prefixLengthsPsr4;
    47             $loader->prefixDirsPsr4 = ComposerStaticInitf113c85c4bf87a05ceb34ca0b0cd94c1::$prefixDirsPsr4;
    48             $loader->classMap = ComposerStaticInitf113c85c4bf87a05ceb34ca0b0cd94c1::$classMap;
     51            $loader->prefixLengthsPsr4 = ComposerStaticInitc35fcbe54628f3a3a961b0147fa06c59::$prefixLengthsPsr4;
     52            $loader->prefixDirsPsr4 = ComposerStaticInitc35fcbe54628f3a3a961b0147fa06c59::$prefixDirsPsr4;
     53            $loader->classMap = ComposerStaticInitc35fcbe54628f3a3a961b0147fa06c59::$classMap;
    4954
    5055        }, null, ClassLoader::class);
  • acf-rrule-field/trunk/vendor/composer/installed.json

    r2628164 r2980255  
    157157        {
    158158            "name": "doctrine/collections",
    159             "version": "1.6.8",
    160             "version_normalized": "1.6.8.0",
     159            "version": "2.1.4",
     160            "version_normalized": "2.1.4.0",
    161161            "source": {
    162162                "type": "git",
    163163                "url": "https://github.com/doctrine/collections.git",
    164                 "reference": "1958a744696c6bb3bb0d28db2611dc11610e78af"
     164                "reference": "72328a11443a0de79967104ad36ba7b30bded134"
    165165            },
    166166            "dist": {
    167167                "type": "zip",
    168                 "url": "https://api.github.com/repos/doctrine/collections/zipball/1958a744696c6bb3bb0d28db2611dc11610e78af",
    169                 "reference": "1958a744696c6bb3bb0d28db2611dc11610e78af",
     168                "url": "https://api.github.com/repos/doctrine/collections/zipball/72328a11443a0de79967104ad36ba7b30bded134",
     169                "reference": "72328a11443a0de79967104ad36ba7b30bded134",
    170170                "shasum": ""
    171171            },
    172172            "require": {
    173                 "php": "^7.1.3 || ^8.0"
     173                "doctrine/deprecations": "^1",
     174                "php": "^8.1"
    174175            },
    175176            "require-dev": {
    176                 "doctrine/coding-standard": "^9.0",
    177                 "phpstan/phpstan": "^0.12",
    178                 "phpunit/phpunit": "^7.5 || ^8.5 || ^9.1.5",
    179                 "vimeo/psalm": "^4.2.1"
    180             },
    181             "time": "2021-08-10T18:51:53+00:00",
     177                "doctrine/coding-standard": "^12",
     178                "ext-json": "*",
     179                "phpstan/phpstan": "^1.8",
     180                "phpstan/phpstan-phpunit": "^1.0",
     181                "phpunit/phpunit": "^9.5",
     182                "vimeo/psalm": "^5.11"
     183            },
     184            "time": "2023-10-03T09:22:33+00:00",
    182185            "type": "library",
    183186            "installation-source": "dist",
    184187            "autoload": {
    185188                "psr-4": {
    186                     "Doctrine\\Common\\Collections\\": "lib/Doctrine/Common/Collections"
     189                    "Doctrine\\Common\\Collections\\": "src"
    187190                }
    188191            },
     
    223226            "support": {
    224227                "issues": "https://github.com/doctrine/collections/issues",
    225                 "source": "https://github.com/doctrine/collections/tree/1.6.8"
    226             },
     228                "source": "https://github.com/doctrine/collections/tree/2.1.4"
     229            },
     230            "funding": [
     231                {
     232                    "url": "https://www.doctrine-project.org/sponsorship.html",
     233                    "type": "custom"
     234                },
     235                {
     236                    "url": "https://www.patreon.com/phpdoctrine",
     237                    "type": "patreon"
     238                },
     239                {
     240                    "url": "https://tidelift.com/funding/github/packagist/doctrine%2Fcollections",
     241                    "type": "tidelift"
     242                }
     243            ],
    227244            "install-path": "../doctrine/collections"
    228245        },
    229246        {
     247            "name": "doctrine/deprecations",
     248            "version": "1.1.2",
     249            "version_normalized": "1.1.2.0",
     250            "source": {
     251                "type": "git",
     252                "url": "https://github.com/doctrine/deprecations.git",
     253                "reference": "4f2d4f2836e7ec4e7a8625e75c6aa916004db931"
     254            },
     255            "dist": {
     256                "type": "zip",
     257                "url": "https://api.github.com/repos/doctrine/deprecations/zipball/4f2d4f2836e7ec4e7a8625e75c6aa916004db931",
     258                "reference": "4f2d4f2836e7ec4e7a8625e75c6aa916004db931",
     259                "shasum": ""
     260            },
     261            "require": {
     262                "php": "^7.1 || ^8.0"
     263            },
     264            "require-dev": {
     265                "doctrine/coding-standard": "^9",
     266                "phpstan/phpstan": "1.4.10 || 1.10.15",
     267                "phpstan/phpstan-phpunit": "^1.0",
     268                "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5",
     269                "psalm/plugin-phpunit": "0.18.4",
     270                "psr/log": "^1 || ^2 || ^3",
     271                "vimeo/psalm": "4.30.0 || 5.12.0"
     272            },
     273            "suggest": {
     274                "psr/log": "Allows logging deprecations via PSR-3 logger implementation"
     275            },
     276            "time": "2023-09-27T20:04:15+00:00",
     277            "type": "library",
     278            "installation-source": "dist",
     279            "autoload": {
     280                "psr-4": {
     281                    "Doctrine\\Deprecations\\": "lib/Doctrine/Deprecations"
     282                }
     283            },
     284            "notification-url": "https://packagist.org/downloads/",
     285            "license": [
     286                "MIT"
     287            ],
     288            "description": "A small layer on top of trigger_error(E_USER_DEPRECATED) or PSR-3 logging with options to disable all deprecations or selectively for packages.",
     289            "homepage": "https://www.doctrine-project.org/",
     290            "support": {
     291                "issues": "https://github.com/doctrine/deprecations/issues",
     292                "source": "https://github.com/doctrine/deprecations/tree/1.1.2"
     293            },
     294            "install-path": "../doctrine/deprecations"
     295        },
     296        {
    230297            "name": "simshaun/recurr",
    231             "version": "v4.0.5",
    232             "version_normalized": "4.0.5.0",
     298            "version": "v5.0.2",
     299            "version_normalized": "5.0.2.0",
    233300            "source": {
    234301                "type": "git",
    235302                "url": "https://github.com/simshaun/recurr.git",
    236                 "reference": "08b0b46879f598cd11dd42b4c1a9c221a0562749"
     303                "reference": "1aff62e6e0ee875b3f2487352542605123ee9172"
    237304            },
    238305            "dist": {
    239306                "type": "zip",
    240                 "url": "https://api.github.com/repos/simshaun/recurr/zipball/08b0b46879f598cd11dd42b4c1a9c221a0562749",
    241                 "reference": "08b0b46879f598cd11dd42b4c1a9c221a0562749",
     307                "url": "https://api.github.com/repos/simshaun/recurr/zipball/1aff62e6e0ee875b3f2487352542605123ee9172",
     308                "reference": "1aff62e6e0ee875b3f2487352542605123ee9172",
    242309                "shasum": ""
    243310            },
    244311            "require": {
    245                 "doctrine/collections": "~1.3",
    246                 "php": ">=5.5.0"
     312                "doctrine/collections": "~1.6||^2.0",
     313                "php": "^7.2||^8.0"
    247314            },
    248315            "require-dev": {
    249                 "phpunit/phpunit": "~5.7"
    250             },
    251             "time": "2021-03-25T23:00:49+00:00",
     316                "phpunit/phpunit": "^8.5.16",
     317                "symfony/yaml": "^5.3"
     318            },
     319            "time": "2023-09-26T20:31:33+00:00",
    252320            "type": "library",
    253321            "extra": {
     
    284352            "support": {
    285353                "issues": "https://github.com/simshaun/recurr/issues",
    286                 "source": "https://github.com/simshaun/recurr/tree/v4.0.5"
     354                "source": "https://github.com/simshaun/recurr/tree/v5.0.2"
    287355            },
    288356            "install-path": "../simshaun/recurr"
  • acf-rrule-field/trunk/vendor/composer/installed.php

    r2628164 r2980255  
    1 <?php return array (
    2   'root' =>
    3   array (
    4     'pretty_version' => 'dev-master',
    5     'version' => 'dev-master',
    6     'aliases' =>
    7     array (
     1<?php return array(
     2    'root' => array(
     3        'name' => 'marcbelletre/acf-rrule',
     4        'pretty_version' => 'dev-master',
     5        'version' => 'dev-master',
     6        'reference' => '07070b0c9f2875e3824e47a17469651978c96d90',
     7        'type' => 'wordpress-plugin',
     8        'install_path' => __DIR__ . '/../../',
     9        'aliases' => array(),
     10        'dev' => true,
    811    ),
    9     'reference' => '24b8b8a05d665af4c26eeec158ee827e38e02af1',
    10     'name' => 'marcbelletre/acf-rrule',
    11   ),
    12   'versions' =>
    13   array (
    14     'composer/installers' =>
    15     array (
    16       'pretty_version' => 'v1.12.0',
    17       'version' => '1.12.0.0',
    18       'aliases' =>
    19       array (
    20       ),
    21       'reference' => 'd20a64ed3c94748397ff5973488761b22f6d3f19',
     12    'versions' => array(
     13        'composer/installers' => array(
     14            'pretty_version' => 'v1.12.0',
     15            'version' => '1.12.0.0',
     16            'reference' => 'd20a64ed3c94748397ff5973488761b22f6d3f19',
     17            'type' => 'composer-plugin',
     18            'install_path' => __DIR__ . '/./installers',
     19            'aliases' => array(),
     20            'dev_requirement' => false,
     21        ),
     22        'doctrine/collections' => array(
     23            'pretty_version' => '2.1.4',
     24            'version' => '2.1.4.0',
     25            'reference' => '72328a11443a0de79967104ad36ba7b30bded134',
     26            'type' => 'library',
     27            'install_path' => __DIR__ . '/../doctrine/collections',
     28            'aliases' => array(),
     29            'dev_requirement' => false,
     30        ),
     31        'doctrine/deprecations' => array(
     32            'pretty_version' => '1.1.2',
     33            'version' => '1.1.2.0',
     34            'reference' => '4f2d4f2836e7ec4e7a8625e75c6aa916004db931',
     35            'type' => 'library',
     36            'install_path' => __DIR__ . '/../doctrine/deprecations',
     37            'aliases' => array(),
     38            'dev_requirement' => false,
     39        ),
     40        'marcbelletre/acf-rrule' => array(
     41            'pretty_version' => 'dev-master',
     42            'version' => 'dev-master',
     43            'reference' => '07070b0c9f2875e3824e47a17469651978c96d90',
     44            'type' => 'wordpress-plugin',
     45            'install_path' => __DIR__ . '/../../',
     46            'aliases' => array(),
     47            'dev_requirement' => false,
     48        ),
     49        'roundcube/plugin-installer' => array(
     50            'dev_requirement' => false,
     51            'replaced' => array(
     52                0 => '*',
     53            ),
     54        ),
     55        'shama/baton' => array(
     56            'dev_requirement' => false,
     57            'replaced' => array(
     58                0 => '*',
     59            ),
     60        ),
     61        'simshaun/recurr' => array(
     62            'pretty_version' => 'v5.0.2',
     63            'version' => '5.0.2.0',
     64            'reference' => '1aff62e6e0ee875b3f2487352542605123ee9172',
     65            'type' => 'library',
     66            'install_path' => __DIR__ . '/../simshaun/recurr',
     67            'aliases' => array(),
     68            'dev_requirement' => false,
     69        ),
    2270    ),
    23     'doctrine/collections' =>
    24     array (
    25       'pretty_version' => '1.6.8',
    26       'version' => '1.6.8.0',
    27       'aliases' =>
    28       array (
    29       ),
    30       'reference' => '1958a744696c6bb3bb0d28db2611dc11610e78af',
    31     ),
    32     'marcbelletre/acf-rrule' =>
    33     array (
    34       'pretty_version' => 'dev-master',
    35       'version' => 'dev-master',
    36       'aliases' =>
    37       array (
    38       ),
    39       'reference' => '24b8b8a05d665af4c26eeec158ee827e38e02af1',
    40     ),
    41     'roundcube/plugin-installer' =>
    42     array (
    43       'replaced' =>
    44       array (
    45         0 => '*',
    46       ),
    47     ),
    48     'shama/baton' =>
    49     array (
    50       'replaced' =>
    51       array (
    52         0 => '*',
    53       ),
    54     ),
    55     'simshaun/recurr' =>
    56     array (
    57       'pretty_version' => 'v4.0.5',
    58       'version' => '4.0.5.0',
    59       'aliases' =>
    60       array (
    61       ),
    62       'reference' => '08b0b46879f598cd11dd42b4c1a9c221a0562749',
    63     ),
    64   ),
    6571);
  • acf-rrule-field/trunk/vendor/composer/platform_check.php

    r2489893 r2980255  
    55$issues = array();
    66
    7 if (!(PHP_VERSION_ID >= 70103)) {
    8     $issues[] = 'Your Composer dependencies require a PHP version ">= 7.1.3". You are running ' . PHP_VERSION . '.';
     7if (!(PHP_VERSION_ID >= 80100)) {
     8    $issues[] = 'Your Composer dependencies require a PHP version ">= 8.1.0". You are running ' . PHP_VERSION . '.';
    99}
    1010
  • acf-rrule-field/trunk/vendor/doctrine/collections/CONTRIBUTING.md

    r2581616 r2980255  
    66These guidelines exist not to annoy you, but to keep the code base clean,
    77unified and future proof.
    8 
    9 ## We only accept PRs  to "master"
    10 
    11 Our branching strategy is "everything to master first", even
    12 bugfixes and we then merge them into the stable branches. You should only
    13 open pull requests against the master branch. Otherwise we cannot accept the PR.
    14 
    15 There is one exception to the rule, when we merged a bug into some stable branches
    16 we do occasionally accept pull requests that merge the same bug fix into earlier
    17 branches.
    188
    199## Coding Standard
  • acf-rrule-field/trunk/vendor/doctrine/collections/README.md

    r2581616 r2980255  
    22
    33[![Build Status](https://github.com/doctrine/collections/workflows/Continuous%20Integration/badge.svg)](https://github.com/doctrine/collections/actions)
    4 [![Code Coverage](https://codecov.io/gh/doctrine/collections/branch/master/graph/badge.svg)](https://codecov.io/gh/doctrine/collections/branch/master)
     4[![Code Coverage](https://codecov.io/gh/doctrine/collections/branch/2.0.x/graph/badge.svg)](https://codecov.io/gh/doctrine/collections/branch/2.0.x)
    55
    66Collections Abstraction library
    7 
    8 ## Changelog
    9 
    10 ### v1.6.1
    11 
    12 This release, combined with the release of [`doctrine/collections` `v1.6.1`](https://github.com/doctrine/collections/releases/tag/v1.6.1),
    13 fixes an issue where parsing annotations was not possible
    14 for classes within `doctrine/collections`.
    15 
    16 Specifically, `v1.6.0` introduced Psalm-specific annotations
    17 such as (for example) `@template` and `@template-implements`,
    18 which were both incorrectly recognized as `@template`.
    19 
    20 `@template` has therefore been removed, and instead we use
    21 the prefixed `@psalm-template`, which is no longer parsed
    22 by `doctrine/collections` `v1.6.1`
    23 
    24 Total issues resolved: **1**
    25 
    26 - [186: Use `@psalm-template` annotation to avoid clashes](https://github.com/doctrine/collections/pull/186) thanks to @muglug
    27 
    28 ### v1.6.0
    29 
    30 This release bumps the minimum required PHP version to 7.1.3.
    31 
    32 Following improvements were introduced:
    33 
    34  * `ArrayCollection#filter()` now allows filtering by key, value or both.
    35  * When using the `ClosureExpressionVisitor` over objects with a defined
    36    accessor and property, the accessor is prioritised.
    37  * Updated testing tools and coding standards, autoloading, which also
    38    led to marginal performance improvements
    39  * Introduced generic type docblock declarations from [psalm](https://github.com/vimeo/psalm),
    40    which should allow users to declare `/** @var Collection<KeyType, ValueType> */`
    41    in their code, and leverage the type propagation deriving from that.
    42 
    43 Total issues resolved: **16**
    44 
    45 - [127: Use PSR-4](https://github.com/doctrine/collections/pull/127) thanks to @Nyholm
    46 - [129: Remove space in method declaration](https://github.com/doctrine/collections/pull/129) thanks to @bounoable
    47 - [130: Update build to add PHPCS and PHPStan](https://github.com/doctrine/collections/pull/130) thanks to @lcobucci
    48 - [131: ClosureExpressionVisitor &gt; Don't duplicate the accessor when the field already starts with it](https://github.com/doctrine/collections/pull/131) thanks to @ruudk
    49 - [139: Apply Doctrine CS 2.1](https://github.com/doctrine/collections/pull/139) thanks to @Majkl578
    50 - [142: CS 4.0, version composer.lock, merge stages](https://github.com/doctrine/collections/pull/142) thanks to @Majkl578
    51 - [144: Update to PHPUnit 7](https://github.com/doctrine/collections/pull/144) thanks to @carusogabriel
    52 - [146: Update changelog for v1.4.0 and v1.5.0](https://github.com/doctrine/collections/pull/146) thanks to @GromNaN
    53 - [154: Update index.rst](https://github.com/doctrine/collections/pull/154) thanks to @chraiet
    54 - [158: Extract Selectable method into own documentation section](https://github.com/doctrine/collections/pull/158) thanks to @SenseException
    55 - [160: Update homepage](https://github.com/doctrine/collections/pull/160) thanks to @Majkl578
    56 - [165: Allow `ArrayCollection#filter()` to filter by key, value or both](https://github.com/doctrine/collections/issues/165) thanks to @0x13a
    57 - [167: Allow `ArrayCollection#filter()` to filter by key and also value](https://github.com/doctrine/collections/pull/167) thanks to @0x13a
    58 - [175: CI: Test against PHP 7.4snapshot instead of nightly (8.0)](https://github.com/doctrine/collections/pull/175) thanks to @Majkl578
    59 - [177: Generify collections using Psalm](https://github.com/doctrine/collections/pull/177) thanks to @nschoellhorn
    60 - [178: Updated doctrine/coding-standard to 6.0](https://github.com/doctrine/collections/pull/178) thanks to @patrickjahns
    61 
    62 ### v1.5.0
    63 
    64 * [Require PHP 7.1+](https://github.com/doctrine/collections/pull/105)
    65 * [Drop HHVM support](https://github.com/doctrine/collections/pull/118)
    66 
    67 ### v1.4.0
    68 
    69 * [Require PHP 5.6+](https://github.com/doctrine/collections/pull/105)
    70 * [Add `ArrayCollection::createFrom()`](https://github.com/doctrine/collections/pull/91)
    71 * [Support non-camel-case naming](https://github.com/doctrine/collections/pull/57)
    72 * [Comparison `START_WITH`, `END_WITH`](https://github.com/doctrine/collections/pull/78)
    73 * [Comparison `MEMBER_OF`](https://github.com/doctrine/collections/pull/66)
    74 * [Add Contributing guide](https://github.com/doctrine/collections/pull/103)
    75 
    76 ### v1.3.0
    77 
    78 * [Explicit casting of first and max results in criteria API](https://github.com/doctrine/collections/pull/26)
    79 * [Keep keys when using `ArrayCollection#matching()` with sorting](https://github.com/doctrine/collections/pull/49)
    80 * [Made `AbstractLazyCollection#$initialized` protected for extensibility](https://github.com/doctrine/collections/pull/52)
    81 
    82 ### v1.2.0
    83 
    84 * Add a new ``AbstractLazyCollection``
    85 
    86 ### v1.1.0
    87 
    88 * Deprecated ``Comparison::IS``, because it's only there for SQL semantics.
    89   These are fixed in the ORM instead.
    90 * Add ``Comparison::CONTAINS`` to perform partial string matches:
    91 
    92         $criteria->andWhere($criteria->expr()->contains('property', 'Foo'));
  • acf-rrule-field/trunk/vendor/doctrine/collections/composer.json

    r2581616 r2980255  
    11{
    22    "name": "doctrine/collections",
     3    "description": "PHP Doctrine Collections library that adds additional functionality on top of PHP arrays.",
     4    "license": "MIT",
    35    "type": "library",
    4     "description": "PHP Doctrine Collections library that adds additional functionality on top of PHP arrays.",
    56    "keywords": [
    67        "php",
     
    910        "iterators"
    1011    ],
     12    "authors": [
     13        {
     14            "name": "Guilherme Blanco",
     15            "email": "[email protected]"
     16        },
     17        {
     18            "name": "Roman Borschel",
     19            "email": "[email protected]"
     20        },
     21        {
     22            "name": "Benjamin Eberlei",
     23            "email": "[email protected]"
     24        },
     25        {
     26            "name": "Jonathan Wage",
     27            "email": "[email protected]"
     28        },
     29        {
     30            "name": "Johannes Schmitt",
     31            "email": "[email protected]"
     32        }
     33    ],
    1134    "homepage": "https://www.doctrine-project.org/projects/collections.html",
    12     "license": "MIT",
    13     "authors": [
    14         {"name": "Guilherme Blanco", "email": "[email protected]"},
    15         {"name": "Roman Borschel", "email": "[email protected]"},
    16         {"name": "Benjamin Eberlei", "email": "[email protected]"},
    17         {"name": "Jonathan Wage", "email": "[email protected]"},
    18         {"name": "Johannes Schmitt", "email": "[email protected]"}
    19     ],
    2035    "require": {
    21         "php": "^7.1.3 || ^8.0"
     36        "php": "^8.1",
     37        "doctrine/deprecations": "^1"
    2238    },
    2339    "require-dev": {
    24         "phpunit/phpunit": "^7.5 || ^8.5 || ^9.1.5",
    25         "doctrine/coding-standard": "^9.0",
    26         "phpstan/phpstan": "^0.12",
    27         "vimeo/psalm": "^4.2.1"
     40        "ext-json": "*",
     41        "doctrine/coding-standard": "^12",
     42        "phpstan/phpstan": "^1.8",
     43        "phpstan/phpstan-phpunit": "^1.0",
     44        "phpunit/phpunit": "^9.5",
     45        "vimeo/psalm": "^5.11"
    2846    },
    2947    "autoload": {
    30         "psr-4": { "Doctrine\\Common\\Collections\\": "lib/Doctrine/Common/Collections" }
     48        "psr-4": {
     49            "Doctrine\\Common\\Collections\\": "src"
     50        }
    3151    },
    3252    "autoload-dev": {
    3353        "psr-4": {
    34             "Doctrine\\Tests\\": "tests/Doctrine/Tests"
     54            "Doctrine\\Tests\\": "tests"
     55        }
     56    },
     57    "config": {
     58        "allow-plugins": {
     59            "composer/package-versions-deprecated": true,
     60            "dealerdirect/phpcodesniffer-composer-installer": true
    3561        }
    3662    }
  • acf-rrule-field/trunk/vendor/doctrine/collections/docs/en/expression-builder.rst

    r2421882 r2980255  
    3939        $expressionBuilder->eq('foo', 1),
    4040        $expressionBuilder->eq('bar', 1)
     41    );
     42
     43    $collection->matching(new Criteria($expression));
     44
     45not
     46---
     47
     48.. code-block:: php
     49    $expressionBuilder = Criteria::expr();
     50
     51    $expression = $expressionBuilder->not(
     52        $expressionBuilder->eq('foo', 1)
    4153    );
    4254
  • acf-rrule-field/trunk/vendor/doctrine/collections/docs/en/expressions.rst

    r2421882 r2980255  
    33
    44The ``Doctrine\Common\Collections\Expr\Comparison`` class
    5 can be used to create expressions to be used with the
     5can be used to create comparison expressions to be used with the
    66``Doctrine\Common\Collections\Criteria`` class. It has the
    77following operator constants:
     
    2020- ``Comparison::STARTS_WITH``
    2121- ``Comparison::ENDS_WITH``
     22
     23The ``Doctrine\Common\Collections\Expr\CompositeExpression`` class
     24can be used to create composite expressions to be used with the
     25``Doctrine\Common\Collections\Criteria`` class. It has the
     26following operator constants:
     27
     28- ``CompositeExpression::TYPE_AND``
     29- ``CompositeExpression::TYPE_OR``
     30- ``CompositeExpression::TYPE_NOT``
     31
     32When using the ``TYPE_OR`` and ``TYPE_AND`` operators the
     33``CompositeExpression`` accepts multiple expressions as parameter
     34but only one expression can be provided when using the ``NOT`` operator.
    2235
    2336The ``Doctrine\Common\Collections\Criteria`` class has the following
  • acf-rrule-field/trunk/vendor/doctrine/collections/docs/en/index.rst

    r2581616 r2980255  
    3333of the collection being at a certain position unless you explicitly positioned it before.
    3434
     35Methods that do not alter the collection or have template types
     36appearing in invariant or contravariant positions are not directly
     37defined in ``Doctrine\Common\Collections\Collection``, but are inherited
     38from the ``Doctrine\Common\Collections\ReadableCollection`` interface.
     39
    3540The methods available on the interface are:
    3641
     
    149154    }); // true
    150155
     156findFirst
     157---------
     158
     159Returns the first element of this collection that satisfies the given predicate.
     160
     161.. code-block:: php
     162    $collection = new Collection([1, 2, 3, 2, 1]);
     163
     164    $one = $collection->findFirst(function(int $key, int $value): bool {
     165        return $value > 2 && $key > 1;
     166    }); // 3
     167
    151168filter
    152169------
     
    217234        return $value + 1;
    218235    }); // [2, 3, 4]
     236
     237reduce
     238------
     239
     240Applies iteratively the given function to each element in the collection, so as to reduce the collection to a single value.
     241
     242.. code-block:: php
     243    $collection = new ArrayCollection([1, 2, 3]);
     244
     245    $reduce = $collection->reduce(function(int $accumulator, int $value): int {
     246        return $accumulator + $value;
     247    }, 0); // 6
    219248
    220249next
     
    303332
    304333Selects all elements from a selectable that match the expression and
    305 returns a new collection containing these elements.
     334returns a new collection containing these elements and preserved keys.
    306335
    307336.. code-block:: php
     
    310339
    311340    $collection = new ArrayCollection([
    312         [
     341        'wage' => [
    313342            'name' => 'jwage',
    314343        ],
    315         [
     344        'roman' => [
    316345            'name' => 'romanb',
    317346        ],
     
    324353    $criteria->where($expr);
    325354
    326     $matched = $collection->matching($criteria); // ['jwage']
     355    $matchingCollection = $collection->matching($criteria); // [ 'wage' => [ 'name' => 'jwage' ]]
    327356
    328357You can read more about expressions :ref:`here <expressions>`.
  • acf-rrule-field/trunk/vendor/doctrine/collections/docs/en/sidebar.rst

    r2421882 r2980255  
    77    derived-collections
    88    lazy-collections
     9    serialization
  • acf-rrule-field/trunk/vendor/simshaun/recurr/README.md

    r2421882 r2980255  
    1 # Recurr [![Build Status](https://travis-ci.org/simshaun/recurr.png)](https://travis-ci.org/simshaun/recurr.png) [![Latest Stable Version](https://poser.pugx.org/simshaun/recurr/v/stable.svg)](https://packagist.org/packages/simshaun/recurr) [![Total Downloads](https://poser.pugx.org/simshaun/recurr/downloads.svg)](https://packagist.org/packages/simshaun/recurr) [![Latest Unstable Version](https://poser.pugx.org/simshaun/recurr/v/unstable.svg)](https://packagist.org/packages/simshaun/recurr) [![License](https://poser.pugx.org/simshaun/recurr/license.svg)](https://packagist.org/packages/simshaun/recurr)
     1# Recurr
     2
     3[![tests](https://github.com/simshaun/recurr/workflows/tests/badge.svg)](https://github.com/simshaun/recurr/actions)
     4[![Latest Stable Version](https://poser.pugx.org/simshaun/recurr/v/stable.svg)](https://packagist.org/packages/simshaun/recurr)
     5[![Total Downloads](https://poser.pugx.org/simshaun/recurr/downloads.svg)](https://packagist.org/packages/simshaun/recurr)
     6[![Latest Unstable Version](https://poser.pugx.org/simshaun/recurr/v/unstable.svg)](https://packagist.org/packages/simshaun/recurr)
     7[![License](https://poser.pugx.org/simshaun/recurr/license.svg)](https://packagist.org/packages/simshaun/recurr)
    28
    39Recurr is a PHP library for working with recurrence rules ([RRULE](https://tools.ietf.org/html/rfc5545)) and converting them in to DateTime objects.
     
    1016The recommended way to install Recurr is through [Composer](http://getcomposer.org).
    1117
    12 `composer require simshaun/recurr`
     18```bash
     19composer require simshaun/recurr
     20```
    1321
    1422Using Recurr
     
    154162-------
    155163
    156 Recurr is licensed under the MIT License. See the LICENSE file for details.
     164Recurr is licensed under the MIT License. See the [LICENSE](./LICENSE) file for details.
  • acf-rrule-field/trunk/vendor/simshaun/recurr/composer.json

    r2525762 r2980255  
    1414    ],
    1515    "require": {
    16         "php": ">=5.5.0",
    17         "doctrine/collections": "~1.3"
     16        "php": "^7.2||^8.0",
     17        "doctrine/collections": "~1.6||^2.0"
    1818    },
    1919    "require-dev": {
    20         "phpunit/phpunit": "~5.7"
     20        "phpunit/phpunit": "^8.5.16",
     21        "symfony/yaml": "^5.3"
    2122    },
    2223    "autoload": {
     
    3435            "dev-master": "0.x-dev"
    3536        }
     37    },
     38    "scripts": {
     39        "test": "./vendor/bin/phpunit --color=always"
    3640    }
    3741}
Note: See TracChangeset for help on using the changeset viewer.