Plugin Directory

Changeset 3309468


Ignore:
Timestamp:
06/11/2025 12:07:05 AM (10 months ago)
Author:
withflex
Message:

Add 3.1.1

Location:
pay-with-flex/trunk
Files:
1 added
20 edited

Legend:

Unmodified
Added
Removed
  • pay-with-flex/trunk/composer.lock

    r3308128 r3309468  
    452452        {
    453453            "name": "sentry/sentry",
    454             "version": "4.12.0",
     454            "version": "4.13.0",
    455455            "source": {
    456456                "type": "git",
    457457                "url": "https://github.com/getsentry/sentry-php.git",
    458                 "reference": "0173702ffcbe36ce7638f07f090271294866a7a0"
    459             },
    460             "dist": {
    461                 "type": "zip",
    462                 "url": "https://api.github.com/repos/getsentry/sentry-php/zipball/0173702ffcbe36ce7638f07f090271294866a7a0",
    463                 "reference": "0173702ffcbe36ce7638f07f090271294866a7a0",
     458                "reference": "b54a0eaedfc27fc2da587e64455a66cd29cd3c4d"
     459            },
     460            "dist": {
     461                "type": "zip",
     462                "url": "https://api.github.com/repos/getsentry/sentry-php/zipball/b54a0eaedfc27fc2da587e64455a66cd29cd3c4d",
     463                "reference": "b54a0eaedfc27fc2da587e64455a66cd29cd3c4d",
    464464                "shasum": ""
    465465            },
     
    525525            "support": {
    526526                "issues": "https://github.com/getsentry/sentry-php/issues",
    527                 "source": "https://github.com/getsentry/sentry-php/tree/4.12.0"
     527                "source": "https://github.com/getsentry/sentry-php/tree/4.13.0"
    528528            },
    529529            "funding": [
     
    537537                }
    538538            ],
    539             "time": "2025-06-07T08:37:56+00:00"
     539            "time": "2025-06-10T15:39:27+00:00"
    540540        },
    541541        {
  • pay-with-flex/trunk/pay-with-flex.php

    r3308128 r3309468  
    33 * Plugin Name:      Flex HSA/FSA Payments
    44 * Description:      Accept HSA/FSA payments directly in the checkout flow.
    5  * Version:          3.1.0
     5 * Version:          3.1.1
    66 * Plugin URI:       https://wordpress.org/plugins/pay-with-flex/
    77 * Author:           Flex
     
    4848
    4949/**
    50  * Flex Payment Gateway
     50 * Flex Payment Gateway.
     51 *
     52 * If WooCommerce has initialized the payment gateways, return that instance, if not, return a new instance.
    5153 */
    5254function payment_gateway(): PaymentGateway {
    53     return WC()->payment_gateways()->payment_gateways()['flex'] ?? new PaymentGateway( actions: false );
     55    if ( did_action( 'wc_payment_gateways_initialized' ) ) {
     56        return WC()->payment_gateways()->payment_gateways()['flex'];
     57    }
     58
     59    return new PaymentGateway( actions: false );
    5460}
    5561
     
    126132                $scope->setTags(
    127133                    array(
    128                         'site'           => get_bloginfo( 'name' ),
    129                         'site.url'       => home_url(),
    130                         'flex.test_mode' => wc_bool_to_string( payment_gateway()->is_in_test_mode() ),
     134                        'site'     => get_bloginfo( 'name' ),
     135                        'site.url' => home_url(),
    131136                    ),
    132137                );
     
    137142                         * Add the request information.
    138143                         *
    139                          * @see {@link https://github.com/getsentry/sentry-php/blob/4.11.1/src/Integration/RequestIntegration.php#L120-L166}
     144                         * @see https://github.com/getsentry/sentry-php/blob/4.11.1/src/Integration/RequestIntegration.php#L120-L166
    140145                         */
    141146                        if ( empty( $event->getRequest() ) ) {
     
    171176                         * Add the module information.
    172177                         *
    173                          * @see {@link https://github.com/getsentry/sentry-php/blob/master/src/Integration/ModulesIntegration.php#L36}
     178                         * @see https://github.com/getsentry/sentry-php/blob/4.11.1/src/Integration/ModulesIntegration.php#L36
    174179                         */
    175180                        if ( empty( $event->getModules() ) ) {
     
    196201                         * Add the runtime information.
    197202                         *
    198                          * @see {@link https://github.com/getsentry/sentry-php/blob/master/src/Integration/EnvironmentIntegration.php#L38-L53}
     203                         * @see https://github.com/getsentry/sentry-php/blob/4.11.1/src/Integration/EnvironmentIntegration.php#L38-L53
    199204                         */
    200205                        if ( null === $event->getRuntimeContext() ) {
     
    211216                         * Add the OS information
    212217                         *
    213                          * @see {@link https://github.com/getsentry/sentry-php/blob/master/src/Integration/EnvironmentIntegration.php#L55-L82}
     218                         * @see https://github.com/getsentry/sentry-php/blob/4.11.1/src/Integration/EnvironmentIntegration.php#L55-L82
    214219                         */
    215220                        if ( null === $event->getOsContext() && \function_exists( 'php_uname' ) ) {
     
    236241
    237242/**
    238  * Plugins Loaded hook.
    239  *
    240  * Performs actions after all of the plugins have loaded.
    241  */
    242 function plugins_loaded() {
    243     // Setup Sentry.
    244     sentry();
    245 }
    246 add_action(
    247     hook_name: 'plugins_loaded',
    248     callback: __NAMESPACE__ . '\plugins_loaded',
     243 * Add payment gateway tags.
     244 *
     245 * @param \WC_Payment_Gateways $gateways The payment gateways that were initialzed by WooCommerce.
     246 */
     247function payment_gateways_initialized( \WC_Payment_Gateways $gateways ) {
     248    $flex = $gateways->payment_gateways()['flex'] ?? null;
     249
     250    if ( ! $flex ) {
     251        return;
     252    }
     253
     254    sentry()->configureScope(
     255        fn ( $scope ) => $scope->setTag( 'flex.test_mode', wc_bool_to_string( $flex->is_in_test_mode() ) )
     256    );
     257}
     258add_action(
     259    hook_name: 'wc_payment_gateways_initialized',
     260    callback: __NAMESPACE__ . '\payment_gateways_initialized'
    249261);
    250262
  • pay-with-flex/trunk/readme.txt

    r3308128 r3309468  
    44Requires at least: 6.8
    55Tested up to: 6.8
    6 Stable tag: 3.1.0
     6Stable tag: 3.1.1
    77Requires PHP: 8.1
    88License: GPLv3 or later
     
    5656== Changelog ==
    5757
     58= 3.1.1 =
     59* Fixed a bug that would cause the [WooCommerce Stripe Payment Gateway](https://wordpress.org/plugins/woocommerce-gateway-stripe/) to crash.
     60* Changed the Product descriptions in Flex by removing the HTML before saving them.
     61* Changed the Price descriptions in Flex by removing the HTML before saving them.
     62
    5863= 3.1.0 =
    5964* Added support for [Coupons](https://woocommerce.com/document/coupon-management/).
  • pay-with-flex/trunk/src/Resource/Price.php

    r3308128 r3309468  
    9595        $price = $product->get_regular_price();
    9696
    97         $description = $product->get_short_description();
     97        /**
     98         * Product Description.
     99         *
     100         * @see https://github.com/woocommerce/woocommerce/blob/9.3.3/plugins/woocommerce/includes/class-wc-structured-data.php#L203
     101         */
     102        $short_description = $product->get_short_description();
     103        $description       = trim( wp_strip_all_tags( do_shortcode( $short_description ? $short_description : $product->get_description() ) ) );
    98104        if ( ! $description && ProductType::VARIATION === $product->get_type() ) {
    99105            $description = wc_get_formatted_variation( $product, true );
  • pay-with-flex/trunk/src/Resource/Product.php

    r3296637 r3309468  
    138138    public static function from_wc( \WC_Product $product ): self {
    139139        $meta_prefix = self::meta_prefix();
    140         $description = trim( $product->get_short_description() );
    141         $url         = get_permalink( $product->get_id() );
     140        /**
     141         * Product Description.
     142         *
     143         * @see https://github.com/woocommerce/woocommerce/blob/9.3.3/plugins/woocommerce/includes/class-wc-structured-data.php#L203
     144         */
     145        $short_description = $product->get_short_description();
     146        $description       = trim( wp_strip_all_tags( do_shortcode( $short_description ? $short_description : $product->get_description() ) ) );
     147        $url               = get_permalink( $product->get_id() );
    142148
    143149        $gtin = self::wc_gtin( $product );
  • pay-with-flex/trunk/vendor/composer/autoload_classmap.php

    r3308128 r3309468  
    212212    'Sentry\\Util\\PrefixStripper' => $vendorDir . '/sentry/sentry/src/Util/PrefixStripper.php',
    213213    'Sentry\\Util\\SentryUid' => $vendorDir . '/sentry/sentry/src/Util/SentryUid.php',
     214    'Sentry\\Util\\Str' => $vendorDir . '/sentry/sentry/src/Util/Str.php',
    214215    'Symfony\\Component\\OptionsResolver\\Debug\\OptionsResolverIntrospector' => $vendorDir . '/symfony/options-resolver/Debug/OptionsResolverIntrospector.php',
    215216    'Symfony\\Component\\OptionsResolver\\Exception\\AccessException' => $vendorDir . '/symfony/options-resolver/Exception/AccessException.php',
  • pay-with-flex/trunk/vendor/composer/autoload_static.php

    r3308128 r3309468  
    290290        'Sentry\\Util\\PrefixStripper' => __DIR__ . '/..' . '/sentry/sentry/src/Util/PrefixStripper.php',
    291291        'Sentry\\Util\\SentryUid' => __DIR__ . '/..' . '/sentry/sentry/src/Util/SentryUid.php',
     292        'Sentry\\Util\\Str' => __DIR__ . '/..' . '/sentry/sentry/src/Util/Str.php',
    292293        'Symfony\\Component\\OptionsResolver\\Debug\\OptionsResolverIntrospector' => __DIR__ . '/..' . '/symfony/options-resolver/Debug/OptionsResolverIntrospector.php',
    293294        'Symfony\\Component\\OptionsResolver\\Exception\\AccessException' => __DIR__ . '/..' . '/symfony/options-resolver/Exception/AccessException.php',
  • pay-with-flex/trunk/vendor/composer/installed.json

    r3308128 r3309468  
    467467        {
    468468            "name": "sentry/sentry",
    469             "version": "4.12.0",
    470             "version_normalized": "4.12.0.0",
     469            "version": "4.13.0",
     470            "version_normalized": "4.13.0.0",
    471471            "source": {
    472472                "type": "git",
    473473                "url": "https://github.com/getsentry/sentry-php.git",
    474                 "reference": "0173702ffcbe36ce7638f07f090271294866a7a0"
    475             },
    476             "dist": {
    477                 "type": "zip",
    478                 "url": "https://api.github.com/repos/getsentry/sentry-php/zipball/0173702ffcbe36ce7638f07f090271294866a7a0",
    479                 "reference": "0173702ffcbe36ce7638f07f090271294866a7a0",
     474                "reference": "b54a0eaedfc27fc2da587e64455a66cd29cd3c4d"
     475            },
     476            "dist": {
     477                "type": "zip",
     478                "url": "https://api.github.com/repos/getsentry/sentry-php/zipball/b54a0eaedfc27fc2da587e64455a66cd29cd3c4d",
     479                "reference": "b54a0eaedfc27fc2da587e64455a66cd29cd3c4d",
    480480                "shasum": ""
    481481            },
     
    507507                "monolog/monolog": "Allow sending log messages to Sentry by using the included Monolog handler."
    508508            },
    509             "time": "2025-06-07T08:37:56+00:00",
     509            "time": "2025-06-10T15:39:27+00:00",
    510510            "type": "library",
    511511            "installation-source": "dist",
     
    543543            "support": {
    544544                "issues": "https://github.com/getsentry/sentry-php/issues",
    545                 "source": "https://github.com/getsentry/sentry-php/tree/4.12.0"
     545                "source": "https://github.com/getsentry/sentry-php/tree/4.13.0"
    546546            },
    547547            "funding": [
  • pay-with-flex/trunk/vendor/composer/installed.php

    r3308128 r3309468  
    44        'pretty_version' => 'dev-main',
    55        'version' => 'dev-main',
    6         'reference' => '2beb32d234e288a9a5afa8a86de34e8d978774f9',
     6        'reference' => '2f968fc7c2e8501b942438a97232aebb434a0ad8',
    77        'type' => 'library',
    88        'install_path' => __DIR__ . '/../../',
     
    1414            'pretty_version' => 'dev-main',
    1515            'version' => 'dev-main',
    16             'reference' => '2beb32d234e288a9a5afa8a86de34e8d978774f9',
     16            'reference' => '2f968fc7c2e8501b942438a97232aebb434a0ad8',
    1717            'type' => 'library',
    1818            'install_path' => __DIR__ . '/../../',
     
    9696        ),
    9797        'sentry/sentry' => array(
    98             'pretty_version' => '4.12.0',
    99             'version' => '4.12.0.0',
    100             'reference' => '0173702ffcbe36ce7638f07f090271294866a7a0',
     98            'pretty_version' => '4.13.0',
     99            'version' => '4.13.0.0',
     100            'reference' => 'b54a0eaedfc27fc2da587e64455a66cd29cd3c4d',
    101101            'type' => 'library',
    102102            'install_path' => __DIR__ . '/../sentry/sentry',
  • pay-with-flex/trunk/vendor/composer/jetpack_autoload_classmap.php

    r3308128 r3309468  
    416416    ),
    417417    'Sentry\\Attributes\\Attribute' => array(
    418         'version' => '4.12.0.0',
     418        'version' => '4.13.0.0',
    419419        'path'    => $vendorDir . '/sentry/sentry/src/Attributes/Attribute.php'
    420420    ),
    421421    'Sentry\\Attributes\\AttributeBag' => array(
    422         'version' => '4.12.0.0',
     422        'version' => '4.13.0.0',
    423423        'path'    => $vendorDir . '/sentry/sentry/src/Attributes/AttributeBag.php'
    424424    ),
    425425    'Sentry\\Breadcrumb' => array(
    426         'version' => '4.12.0.0',
     426        'version' => '4.13.0.0',
    427427        'path'    => $vendorDir . '/sentry/sentry/src/Breadcrumb.php'
    428428    ),
    429429    'Sentry\\CheckIn' => array(
    430         'version' => '4.12.0.0',
     430        'version' => '4.13.0.0',
    431431        'path'    => $vendorDir . '/sentry/sentry/src/CheckIn.php'
    432432    ),
    433433    'Sentry\\CheckInStatus' => array(
    434         'version' => '4.12.0.0',
     434        'version' => '4.13.0.0',
    435435        'path'    => $vendorDir . '/sentry/sentry/src/CheckInStatus.php'
    436436    ),
    437437    'Sentry\\Client' => array(
    438         'version' => '4.12.0.0',
     438        'version' => '4.13.0.0',
    439439        'path'    => $vendorDir . '/sentry/sentry/src/Client.php'
    440440    ),
    441441    'Sentry\\ClientBuilder' => array(
    442         'version' => '4.12.0.0',
     442        'version' => '4.13.0.0',
    443443        'path'    => $vendorDir . '/sentry/sentry/src/ClientBuilder.php'
    444444    ),
    445445    'Sentry\\ClientInterface' => array(
    446         'version' => '4.12.0.0',
     446        'version' => '4.13.0.0',
    447447        'path'    => $vendorDir . '/sentry/sentry/src/ClientInterface.php'
    448448    ),
    449449    'Sentry\\Context\\OsContext' => array(
    450         'version' => '4.12.0.0',
     450        'version' => '4.13.0.0',
    451451        'path'    => $vendorDir . '/sentry/sentry/src/Context/OsContext.php'
    452452    ),
    453453    'Sentry\\Context\\RuntimeContext' => array(
    454         'version' => '4.12.0.0',
     454        'version' => '4.13.0.0',
    455455        'path'    => $vendorDir . '/sentry/sentry/src/Context/RuntimeContext.php'
    456456    ),
    457457    'Sentry\\Dsn' => array(
    458         'version' => '4.12.0.0',
     458        'version' => '4.13.0.0',
    459459        'path'    => $vendorDir . '/sentry/sentry/src/Dsn.php'
    460460    ),
    461461    'Sentry\\ErrorHandler' => array(
    462         'version' => '4.12.0.0',
     462        'version' => '4.13.0.0',
    463463        'path'    => $vendorDir . '/sentry/sentry/src/ErrorHandler.php'
    464464    ),
    465465    'Sentry\\Event' => array(
    466         'version' => '4.12.0.0',
     466        'version' => '4.13.0.0',
    467467        'path'    => $vendorDir . '/sentry/sentry/src/Event.php'
    468468    ),
    469469    'Sentry\\EventHint' => array(
    470         'version' => '4.12.0.0',
     470        'version' => '4.13.0.0',
    471471        'path'    => $vendorDir . '/sentry/sentry/src/EventHint.php'
    472472    ),
    473473    'Sentry\\EventId' => array(
    474         'version' => '4.12.0.0',
     474        'version' => '4.13.0.0',
    475475        'path'    => $vendorDir . '/sentry/sentry/src/EventId.php'
    476476    ),
    477477    'Sentry\\EventType' => array(
    478         'version' => '4.12.0.0',
     478        'version' => '4.13.0.0',
    479479        'path'    => $vendorDir . '/sentry/sentry/src/EventType.php'
    480480    ),
    481481    'Sentry\\ExceptionDataBag' => array(
    482         'version' => '4.12.0.0',
     482        'version' => '4.13.0.0',
    483483        'path'    => $vendorDir . '/sentry/sentry/src/ExceptionDataBag.php'
    484484    ),
    485485    'Sentry\\ExceptionMechanism' => array(
    486         'version' => '4.12.0.0',
     486        'version' => '4.13.0.0',
    487487        'path'    => $vendorDir . '/sentry/sentry/src/ExceptionMechanism.php'
    488488    ),
    489489    'Sentry\\Exception\\EventCreationException' => array(
    490         'version' => '4.12.0.0',
     490        'version' => '4.13.0.0',
    491491        'path'    => $vendorDir . '/sentry/sentry/src/Exception/EventCreationException.php'
    492492    ),
    493493    'Sentry\\Exception\\FatalErrorException' => array(
    494         'version' => '4.12.0.0',
     494        'version' => '4.13.0.0',
    495495        'path'    => $vendorDir . '/sentry/sentry/src/Exception/FatalErrorException.php'
    496496    ),
    497497    'Sentry\\Exception\\JsonException' => array(
    498         'version' => '4.12.0.0',
     498        'version' => '4.13.0.0',
    499499        'path'    => $vendorDir . '/sentry/sentry/src/Exception/JsonException.php'
    500500    ),
    501501    'Sentry\\Exception\\SilencedErrorException' => array(
    502         'version' => '4.12.0.0',
     502        'version' => '4.13.0.0',
    503503        'path'    => $vendorDir . '/sentry/sentry/src/Exception/SilencedErrorException.php'
    504504    ),
    505505    'Sentry\\Frame' => array(
    506         'version' => '4.12.0.0',
     506        'version' => '4.13.0.0',
    507507        'path'    => $vendorDir . '/sentry/sentry/src/Frame.php'
    508508    ),
    509509    'Sentry\\FrameBuilder' => array(
    510         'version' => '4.12.0.0',
     510        'version' => '4.13.0.0',
    511511        'path'    => $vendorDir . '/sentry/sentry/src/FrameBuilder.php'
    512512    ),
    513513    'Sentry\\HttpClient\\HttpClient' => array(
    514         'version' => '4.12.0.0',
     514        'version' => '4.13.0.0',
    515515        'path'    => $vendorDir . '/sentry/sentry/src/HttpClient/HttpClient.php'
    516516    ),
    517517    'Sentry\\HttpClient\\HttpClientInterface' => array(
    518         'version' => '4.12.0.0',
     518        'version' => '4.13.0.0',
    519519        'path'    => $vendorDir . '/sentry/sentry/src/HttpClient/HttpClientInterface.php'
    520520    ),
    521521    'Sentry\\HttpClient\\Request' => array(
    522         'version' => '4.12.0.0',
     522        'version' => '4.13.0.0',
    523523        'path'    => $vendorDir . '/sentry/sentry/src/HttpClient/Request.php'
    524524    ),
    525525    'Sentry\\HttpClient\\Response' => array(
    526         'version' => '4.12.0.0',
     526        'version' => '4.13.0.0',
    527527        'path'    => $vendorDir . '/sentry/sentry/src/HttpClient/Response.php'
    528528    ),
    529529    'Sentry\\Integration\\AbstractErrorListenerIntegration' => array(
    530         'version' => '4.12.0.0',
     530        'version' => '4.13.0.0',
    531531        'path'    => $vendorDir . '/sentry/sentry/src/Integration/AbstractErrorListenerIntegration.php'
    532532    ),
    533533    'Sentry\\Integration\\EnvironmentIntegration' => array(
    534         'version' => '4.12.0.0',
     534        'version' => '4.13.0.0',
    535535        'path'    => $vendorDir . '/sentry/sentry/src/Integration/EnvironmentIntegration.php'
    536536    ),
    537537    'Sentry\\Integration\\ErrorListenerIntegration' => array(
    538         'version' => '4.12.0.0',
     538        'version' => '4.13.0.0',
    539539        'path'    => $vendorDir . '/sentry/sentry/src/Integration/ErrorListenerIntegration.php'
    540540    ),
    541541    'Sentry\\Integration\\ExceptionListenerIntegration' => array(
    542         'version' => '4.12.0.0',
     542        'version' => '4.13.0.0',
    543543        'path'    => $vendorDir . '/sentry/sentry/src/Integration/ExceptionListenerIntegration.php'
    544544    ),
    545545    'Sentry\\Integration\\FatalErrorListenerIntegration' => array(
    546         'version' => '4.12.0.0',
     546        'version' => '4.13.0.0',
    547547        'path'    => $vendorDir . '/sentry/sentry/src/Integration/FatalErrorListenerIntegration.php'
    548548    ),
    549549    'Sentry\\Integration\\FrameContextifierIntegration' => array(
    550         'version' => '4.12.0.0',
     550        'version' => '4.13.0.0',
    551551        'path'    => $vendorDir . '/sentry/sentry/src/Integration/FrameContextifierIntegration.php'
    552552    ),
    553553    'Sentry\\Integration\\IntegrationInterface' => array(
    554         'version' => '4.12.0.0',
     554        'version' => '4.13.0.0',
    555555        'path'    => $vendorDir . '/sentry/sentry/src/Integration/IntegrationInterface.php'
    556556    ),
    557557    'Sentry\\Integration\\IntegrationRegistry' => array(
    558         'version' => '4.12.0.0',
     558        'version' => '4.13.0.0',
    559559        'path'    => $vendorDir . '/sentry/sentry/src/Integration/IntegrationRegistry.php'
    560560    ),
    561561    'Sentry\\Integration\\ModulesIntegration' => array(
    562         'version' => '4.12.0.0',
     562        'version' => '4.13.0.0',
    563563        'path'    => $vendorDir . '/sentry/sentry/src/Integration/ModulesIntegration.php'
    564564    ),
    565565    'Sentry\\Integration\\OptionAwareIntegrationInterface' => array(
    566         'version' => '4.12.0.0',
     566        'version' => '4.13.0.0',
    567567        'path'    => $vendorDir . '/sentry/sentry/src/Integration/OptionAwareIntegrationInterface.php'
    568568    ),
    569569    'Sentry\\Integration\\RequestFetcher' => array(
    570         'version' => '4.12.0.0',
     570        'version' => '4.13.0.0',
    571571        'path'    => $vendorDir . '/sentry/sentry/src/Integration/RequestFetcher.php'
    572572    ),
    573573    'Sentry\\Integration\\RequestFetcherInterface' => array(
    574         'version' => '4.12.0.0',
     574        'version' => '4.13.0.0',
    575575        'path'    => $vendorDir . '/sentry/sentry/src/Integration/RequestFetcherInterface.php'
    576576    ),
    577577    'Sentry\\Integration\\RequestIntegration' => array(
    578         'version' => '4.12.0.0',
     578        'version' => '4.13.0.0',
    579579        'path'    => $vendorDir . '/sentry/sentry/src/Integration/RequestIntegration.php'
    580580    ),
    581581    'Sentry\\Integration\\TransactionIntegration' => array(
    582         'version' => '4.12.0.0',
     582        'version' => '4.13.0.0',
    583583        'path'    => $vendorDir . '/sentry/sentry/src/Integration/TransactionIntegration.php'
    584584    ),
    585585    'Sentry\\Logger\\DebugFileLogger' => array(
    586         'version' => '4.12.0.0',
     586        'version' => '4.13.0.0',
    587587        'path'    => $vendorDir . '/sentry/sentry/src/Logger/DebugFileLogger.php'
    588588    ),
    589589    'Sentry\\Logger\\DebugLogger' => array(
    590         'version' => '4.12.0.0',
     590        'version' => '4.13.0.0',
    591591        'path'    => $vendorDir . '/sentry/sentry/src/Logger/DebugLogger.php'
    592592    ),
    593593    'Sentry\\Logger\\DebugStdOutLogger' => array(
    594         'version' => '4.12.0.0',
     594        'version' => '4.13.0.0',
    595595        'path'    => $vendorDir . '/sentry/sentry/src/Logger/DebugStdOutLogger.php'
    596596    ),
    597597    'Sentry\\Logs\\Log' => array(
    598         'version' => '4.12.0.0',
     598        'version' => '4.13.0.0',
    599599        'path'    => $vendorDir . '/sentry/sentry/src/Logs/Log.php'
    600600    ),
    601601    'Sentry\\Logs\\LogLevel' => array(
    602         'version' => '4.12.0.0',
     602        'version' => '4.13.0.0',
    603603        'path'    => $vendorDir . '/sentry/sentry/src/Logs/LogLevel.php'
    604604    ),
    605605    'Sentry\\Logs\\Logs' => array(
    606         'version' => '4.12.0.0',
     606        'version' => '4.13.0.0',
    607607        'path'    => $vendorDir . '/sentry/sentry/src/Logs/Logs.php'
    608608    ),
    609609    'Sentry\\Logs\\LogsAggregator' => array(
    610         'version' => '4.12.0.0',
     610        'version' => '4.13.0.0',
    611611        'path'    => $vendorDir . '/sentry/sentry/src/Logs/LogsAggregator.php'
    612612    ),
    613613    'Sentry\\Metrics\\Metrics' => array(
    614         'version' => '4.12.0.0',
     614        'version' => '4.13.0.0',
    615615        'path'    => $vendorDir . '/sentry/sentry/src/Metrics/Metrics.php'
    616616    ),
    617617    'Sentry\\Metrics\\MetricsUnit' => array(
    618         'version' => '4.12.0.0',
     618        'version' => '4.13.0.0',
    619619        'path'    => $vendorDir . '/sentry/sentry/src/Metrics/MetricsUnit.php'
    620620    ),
    621621    'Sentry\\MonitorConfig' => array(
    622         'version' => '4.12.0.0',
     622        'version' => '4.13.0.0',
    623623        'path'    => $vendorDir . '/sentry/sentry/src/MonitorConfig.php'
    624624    ),
    625625    'Sentry\\MonitorSchedule' => array(
    626         'version' => '4.12.0.0',
     626        'version' => '4.13.0.0',
    627627        'path'    => $vendorDir . '/sentry/sentry/src/MonitorSchedule.php'
    628628    ),
    629629    'Sentry\\MonitorScheduleUnit' => array(
    630         'version' => '4.12.0.0',
     630        'version' => '4.13.0.0',
    631631        'path'    => $vendorDir . '/sentry/sentry/src/MonitorScheduleUnit.php'
    632632    ),
    633633    'Sentry\\Monolog\\BreadcrumbHandler' => array(
    634         'version' => '4.12.0.0',
     634        'version' => '4.13.0.0',
    635635        'path'    => $vendorDir . '/sentry/sentry/src/Monolog/BreadcrumbHandler.php'
    636636    ),
    637637    'Sentry\\Monolog\\CompatibilityProcessingHandlerTrait' => array(
    638         'version' => '4.12.0.0',
     638        'version' => '4.13.0.0',
    639639        'path'    => $vendorDir . '/sentry/sentry/src/Monolog/CompatibilityProcessingHandlerTrait.php'
    640640    ),
    641641    'Sentry\\Monolog\\Handler' => array(
    642         'version' => '4.12.0.0',
     642        'version' => '4.13.0.0',
    643643        'path'    => $vendorDir . '/sentry/sentry/src/Monolog/Handler.php'
    644644    ),
    645645    'Sentry\\Options' => array(
    646         'version' => '4.12.0.0',
     646        'version' => '4.13.0.0',
    647647        'path'    => $vendorDir . '/sentry/sentry/src/Options.php'
    648648    ),
    649649    'Sentry\\Profiling\\Profile' => array(
    650         'version' => '4.12.0.0',
     650        'version' => '4.13.0.0',
    651651        'path'    => $vendorDir . '/sentry/sentry/src/Profiling/Profile.php'
    652652    ),
    653653    'Sentry\\Profiling\\Profiler' => array(
    654         'version' => '4.12.0.0',
     654        'version' => '4.13.0.0',
    655655        'path'    => $vendorDir . '/sentry/sentry/src/Profiling/Profiler.php'
    656656    ),
    657657    'Sentry\\SentrySdk' => array(
    658         'version' => '4.12.0.0',
     658        'version' => '4.13.0.0',
    659659        'path'    => $vendorDir . '/sentry/sentry/src/SentrySdk.php'
    660660    ),
    661661    'Sentry\\Serializer\\AbstractSerializer' => array(
    662         'version' => '4.12.0.0',
     662        'version' => '4.13.0.0',
    663663        'path'    => $vendorDir . '/sentry/sentry/src/Serializer/AbstractSerializer.php'
    664664    ),
    665665    'Sentry\\Serializer\\EnvelopItems\\CheckInItem' => array(
    666         'version' => '4.12.0.0',
     666        'version' => '4.13.0.0',
    667667        'path'    => $vendorDir . '/sentry/sentry/src/Serializer/EnvelopItems/CheckInItem.php'
    668668    ),
    669669    'Sentry\\Serializer\\EnvelopItems\\EnvelopeItemInterface' => array(
    670         'version' => '4.12.0.0',
     670        'version' => '4.13.0.0',
    671671        'path'    => $vendorDir . '/sentry/sentry/src/Serializer/EnvelopItems/EnvelopeItemInterface.php'
    672672    ),
    673673    'Sentry\\Serializer\\EnvelopItems\\EventItem' => array(
    674         'version' => '4.12.0.0',
     674        'version' => '4.13.0.0',
    675675        'path'    => $vendorDir . '/sentry/sentry/src/Serializer/EnvelopItems/EventItem.php'
    676676    ),
    677677    'Sentry\\Serializer\\EnvelopItems\\LogsItem' => array(
    678         'version' => '4.12.0.0',
     678        'version' => '4.13.0.0',
    679679        'path'    => $vendorDir . '/sentry/sentry/src/Serializer/EnvelopItems/LogsItem.php'
    680680    ),
    681681    'Sentry\\Serializer\\EnvelopItems\\ProfileItem' => array(
    682         'version' => '4.12.0.0',
     682        'version' => '4.13.0.0',
    683683        'path'    => $vendorDir . '/sentry/sentry/src/Serializer/EnvelopItems/ProfileItem.php'
    684684    ),
    685685    'Sentry\\Serializer\\EnvelopItems\\TransactionItem' => array(
    686         'version' => '4.12.0.0',
     686        'version' => '4.13.0.0',
    687687        'path'    => $vendorDir . '/sentry/sentry/src/Serializer/EnvelopItems/TransactionItem.php'
    688688    ),
    689689    'Sentry\\Serializer\\PayloadSerializer' => array(
    690         'version' => '4.12.0.0',
     690        'version' => '4.13.0.0',
    691691        'path'    => $vendorDir . '/sentry/sentry/src/Serializer/PayloadSerializer.php'
    692692    ),
    693693    'Sentry\\Serializer\\PayloadSerializerInterface' => array(
    694         'version' => '4.12.0.0',
     694        'version' => '4.13.0.0',
    695695        'path'    => $vendorDir . '/sentry/sentry/src/Serializer/PayloadSerializerInterface.php'
    696696    ),
    697697    'Sentry\\Serializer\\RepresentationSerializer' => array(
    698         'version' => '4.12.0.0',
     698        'version' => '4.13.0.0',
    699699        'path'    => $vendorDir . '/sentry/sentry/src/Serializer/RepresentationSerializer.php'
    700700    ),
    701701    'Sentry\\Serializer\\RepresentationSerializerInterface' => array(
    702         'version' => '4.12.0.0',
     702        'version' => '4.13.0.0',
    703703        'path'    => $vendorDir . '/sentry/sentry/src/Serializer/RepresentationSerializerInterface.php'
    704704    ),
    705705    'Sentry\\Serializer\\SerializableInterface' => array(
    706         'version' => '4.12.0.0',
     706        'version' => '4.13.0.0',
    707707        'path'    => $vendorDir . '/sentry/sentry/src/Serializer/SerializableInterface.php'
    708708    ),
    709709    'Sentry\\Serializer\\Serializer' => array(
    710         'version' => '4.12.0.0',
     710        'version' => '4.13.0.0',
    711711        'path'    => $vendorDir . '/sentry/sentry/src/Serializer/Serializer.php'
    712712    ),
    713713    'Sentry\\Serializer\\SerializerInterface' => array(
    714         'version' => '4.12.0.0',
     714        'version' => '4.13.0.0',
    715715        'path'    => $vendorDir . '/sentry/sentry/src/Serializer/SerializerInterface.php'
    716716    ),
    717717    'Sentry\\Serializer\\Traits\\BreadcrumbSeralizerTrait' => array(
    718         'version' => '4.12.0.0',
     718        'version' => '4.13.0.0',
    719719        'path'    => $vendorDir . '/sentry/sentry/src/Serializer/Traits/BreadcrumbSeralizerTrait.php'
    720720    ),
    721721    'Sentry\\Serializer\\Traits\\StacktraceFrameSeralizerTrait' => array(
    722         'version' => '4.12.0.0',
     722        'version' => '4.13.0.0',
    723723        'path'    => $vendorDir . '/sentry/sentry/src/Serializer/Traits/StacktraceFrameSeralizerTrait.php'
    724724    ),
    725725    'Sentry\\Severity' => array(
    726         'version' => '4.12.0.0',
     726        'version' => '4.13.0.0',
    727727        'path'    => $vendorDir . '/sentry/sentry/src/Severity.php'
    728728    ),
    729729    'Sentry\\Spotlight\\SpotlightClient' => array(
    730         'version' => '4.12.0.0',
     730        'version' => '4.13.0.0',
    731731        'path'    => $vendorDir . '/sentry/sentry/src/Spotlight/SpotlightClient.php'
    732732    ),
    733733    'Sentry\\Stacktrace' => array(
    734         'version' => '4.12.0.0',
     734        'version' => '4.13.0.0',
    735735        'path'    => $vendorDir . '/sentry/sentry/src/Stacktrace.php'
    736736    ),
    737737    'Sentry\\StacktraceBuilder' => array(
    738         'version' => '4.12.0.0',
     738        'version' => '4.13.0.0',
    739739        'path'    => $vendorDir . '/sentry/sentry/src/StacktraceBuilder.php'
    740740    ),
    741741    'Sentry\\State\\Hub' => array(
    742         'version' => '4.12.0.0',
     742        'version' => '4.13.0.0',
    743743        'path'    => $vendorDir . '/sentry/sentry/src/State/Hub.php'
    744744    ),
    745745    'Sentry\\State\\HubAdapter' => array(
    746         'version' => '4.12.0.0',
     746        'version' => '4.13.0.0',
    747747        'path'    => $vendorDir . '/sentry/sentry/src/State/HubAdapter.php'
    748748    ),
    749749    'Sentry\\State\\HubInterface' => array(
    750         'version' => '4.12.0.0',
     750        'version' => '4.13.0.0',
    751751        'path'    => $vendorDir . '/sentry/sentry/src/State/HubInterface.php'
    752752    ),
    753753    'Sentry\\State\\Layer' => array(
    754         'version' => '4.12.0.0',
     754        'version' => '4.13.0.0',
    755755        'path'    => $vendorDir . '/sentry/sentry/src/State/Layer.php'
    756756    ),
    757757    'Sentry\\State\\Scope' => array(
    758         'version' => '4.12.0.0',
     758        'version' => '4.13.0.0',
    759759        'path'    => $vendorDir . '/sentry/sentry/src/State/Scope.php'
    760760    ),
    761761    'Sentry\\Tracing\\DynamicSamplingContext' => array(
    762         'version' => '4.12.0.0',
     762        'version' => '4.13.0.0',
    763763        'path'    => $vendorDir . '/sentry/sentry/src/Tracing/DynamicSamplingContext.php'
    764764    ),
    765765    'Sentry\\Tracing\\GuzzleTracingMiddleware' => array(
    766         'version' => '4.12.0.0',
     766        'version' => '4.13.0.0',
    767767        'path'    => $vendorDir . '/sentry/sentry/src/Tracing/GuzzleTracingMiddleware.php'
    768768    ),
    769769    'Sentry\\Tracing\\PropagationContext' => array(
    770         'version' => '4.12.0.0',
     770        'version' => '4.13.0.0',
    771771        'path'    => $vendorDir . '/sentry/sentry/src/Tracing/PropagationContext.php'
    772772    ),
    773773    'Sentry\\Tracing\\SamplingContext' => array(
    774         'version' => '4.12.0.0',
     774        'version' => '4.13.0.0',
    775775        'path'    => $vendorDir . '/sentry/sentry/src/Tracing/SamplingContext.php'
    776776    ),
    777777    'Sentry\\Tracing\\Span' => array(
    778         'version' => '4.12.0.0',
     778        'version' => '4.13.0.0',
    779779        'path'    => $vendorDir . '/sentry/sentry/src/Tracing/Span.php'
    780780    ),
    781781    'Sentry\\Tracing\\SpanContext' => array(
    782         'version' => '4.12.0.0',
     782        'version' => '4.13.0.0',
    783783        'path'    => $vendorDir . '/sentry/sentry/src/Tracing/SpanContext.php'
    784784    ),
    785785    'Sentry\\Tracing\\SpanId' => array(
    786         'version' => '4.12.0.0',
     786        'version' => '4.13.0.0',
    787787        'path'    => $vendorDir . '/sentry/sentry/src/Tracing/SpanId.php'
    788788    ),
    789789    'Sentry\\Tracing\\SpanRecorder' => array(
    790         'version' => '4.12.0.0',
     790        'version' => '4.13.0.0',
    791791        'path'    => $vendorDir . '/sentry/sentry/src/Tracing/SpanRecorder.php'
    792792    ),
    793793    'Sentry\\Tracing\\SpanStatus' => array(
    794         'version' => '4.12.0.0',
     794        'version' => '4.13.0.0',
    795795        'path'    => $vendorDir . '/sentry/sentry/src/Tracing/SpanStatus.php'
    796796    ),
    797797    'Sentry\\Tracing\\TraceId' => array(
    798         'version' => '4.12.0.0',
     798        'version' => '4.13.0.0',
    799799        'path'    => $vendorDir . '/sentry/sentry/src/Tracing/TraceId.php'
    800800    ),
    801801    'Sentry\\Tracing\\Transaction' => array(
    802         'version' => '4.12.0.0',
     802        'version' => '4.13.0.0',
    803803        'path'    => $vendorDir . '/sentry/sentry/src/Tracing/Transaction.php'
    804804    ),
    805805    'Sentry\\Tracing\\TransactionContext' => array(
    806         'version' => '4.12.0.0',
     806        'version' => '4.13.0.0',
    807807        'path'    => $vendorDir . '/sentry/sentry/src/Tracing/TransactionContext.php'
    808808    ),
    809809    'Sentry\\Tracing\\TransactionMetadata' => array(
    810         'version' => '4.12.0.0',
     810        'version' => '4.13.0.0',
    811811        'path'    => $vendorDir . '/sentry/sentry/src/Tracing/TransactionMetadata.php'
    812812    ),
    813813    'Sentry\\Tracing\\TransactionSource' => array(
    814         'version' => '4.12.0.0',
     814        'version' => '4.13.0.0',
    815815        'path'    => $vendorDir . '/sentry/sentry/src/Tracing/TransactionSource.php'
    816816    ),
    817817    'Sentry\\Transport\\HttpTransport' => array(
    818         'version' => '4.12.0.0',
     818        'version' => '4.13.0.0',
    819819        'path'    => $vendorDir . '/sentry/sentry/src/Transport/HttpTransport.php'
    820820    ),
    821821    'Sentry\\Transport\\RateLimiter' => array(
    822         'version' => '4.12.0.0',
     822        'version' => '4.13.0.0',
    823823        'path'    => $vendorDir . '/sentry/sentry/src/Transport/RateLimiter.php'
    824824    ),
    825825    'Sentry\\Transport\\Result' => array(
    826         'version' => '4.12.0.0',
     826        'version' => '4.13.0.0',
    827827        'path'    => $vendorDir . '/sentry/sentry/src/Transport/Result.php'
    828828    ),
    829829    'Sentry\\Transport\\ResultStatus' => array(
    830         'version' => '4.12.0.0',
     830        'version' => '4.13.0.0',
    831831        'path'    => $vendorDir . '/sentry/sentry/src/Transport/ResultStatus.php'
    832832    ),
    833833    'Sentry\\Transport\\TransportInterface' => array(
    834         'version' => '4.12.0.0',
     834        'version' => '4.13.0.0',
    835835        'path'    => $vendorDir . '/sentry/sentry/src/Transport/TransportInterface.php'
    836836    ),
    837837    'Sentry\\UserDataBag' => array(
    838         'version' => '4.12.0.0',
     838        'version' => '4.13.0.0',
    839839        'path'    => $vendorDir . '/sentry/sentry/src/UserDataBag.php'
    840840    ),
    841841    'Sentry\\Util\\Arr' => array(
    842         'version' => '4.12.0.0',
     842        'version' => '4.13.0.0',
    843843        'path'    => $vendorDir . '/sentry/sentry/src/Util/Arr.php'
    844844    ),
    845845    'Sentry\\Util\\Http' => array(
    846         'version' => '4.12.0.0',
     846        'version' => '4.13.0.0',
    847847        'path'    => $vendorDir . '/sentry/sentry/src/Util/Http.php'
    848848    ),
    849849    'Sentry\\Util\\JSON' => array(
    850         'version' => '4.12.0.0',
     850        'version' => '4.13.0.0',
    851851        'path'    => $vendorDir . '/sentry/sentry/src/Util/JSON.php'
    852852    ),
    853853    'Sentry\\Util\\PHPConfiguration' => array(
    854         'version' => '4.12.0.0',
     854        'version' => '4.13.0.0',
    855855        'path'    => $vendorDir . '/sentry/sentry/src/Util/PHPConfiguration.php'
    856856    ),
    857857    'Sentry\\Util\\PHPVersion' => array(
    858         'version' => '4.12.0.0',
     858        'version' => '4.13.0.0',
    859859        'path'    => $vendorDir . '/sentry/sentry/src/Util/PHPVersion.php'
    860860    ),
    861861    'Sentry\\Util\\PrefixStripper' => array(
    862         'version' => '4.12.0.0',
     862        'version' => '4.13.0.0',
    863863        'path'    => $vendorDir . '/sentry/sentry/src/Util/PrefixStripper.php'
    864864    ),
    865865    'Sentry\\Util\\SentryUid' => array(
    866         'version' => '4.12.0.0',
     866        'version' => '4.13.0.0',
    867867        'path'    => $vendorDir . '/sentry/sentry/src/Util/SentryUid.php'
     868    ),
     869    'Sentry\\Util\\Str' => array(
     870        'version' => '4.13.0.0',
     871        'path'    => $vendorDir . '/sentry/sentry/src/Util/Str.php'
    868872    ),
    869873    'Shutdown_Handler' => array(
  • pay-with-flex/trunk/vendor/composer/jetpack_autoload_filemap.php

    r3308128 r3309468  
    1616    ),
    1717    'fb4ca2d97fe7ba6af750497425204e70' => array(
    18         'version' => '4.12.0.0',
     18        'version' => '4.13.0.0',
    1919        'path'    => $vendorDir . '/sentry/sentry/src/functions.php'
    2020    ),
  • pay-with-flex/trunk/vendor/sentry/sentry/CHANGELOG.md

    r3308128 r3309468  
    11# CHANGELOG
     2
     3## 4.13.0
     4
     5The Sentry SDK team is happy to announce the immediate availability of Sentry PHP SDK v4.13.0.
     6
     7### Features
     8
     9- Add regex support for `ignore_exceptions` and `ignore_transactions` [(#1850)](https://github.com/getsentry/sentry-php/pull/1850)
     10
     11  You can now use regular expressions to ignore exceptions and transactions:
     12
     13  ```php
     14  Sentry\init([
     15      'ignore_exceptions' => [
     16          '/.*ArgumentException$/',
     17      ],
     18      'ignore_transactions' => [
     19          '/^GET \/api\/users\/\d+$/',
     20      ],
     21  ]);
     22  ```
     23
     24- Add support for variadic parameters and null values [(#1849)](https://github.com/getsentry/sentry-php/pull/1849)
     25
     26### Bug Fixes
     27
     28- Fix `Options::setEnableLogs` [(#1852)](https://github.com/getsentry/sentry-php/pull/1852)
     29- Fix `vsprintf` not handling errors [(#1855)](https://github.com/getsentry/sentry-php/pull/1855)
    230
    331## 4.12.0
     
    87115### Features
    88116
    89 - Allow retrieving a single piece of data from the span by its key [(#1767)](https://github.com/getsentry/sentry-php/pull/1767)
     117- Allow retrieving a single piece of data from the span by it's key [(#1767)](https://github.com/getsentry/sentry-php/pull/1767)
    90118
    91119  ```php
  • pay-with-flex/trunk/vendor/sentry/sentry/src/Client.php

    r3308128 r3309468  
    3333     * The version of the SDK.
    3434     */
    35     public const SDK_VERSION = '4.12.0';
     35    public const SDK_VERSION = '4.13.0';
     36
     37    /**
     38     * Regex pattern to detect if a string is a regex pattern (starts and ends with / optionally followed by flags).
     39     * Supported flags: i (case-insensitive), m (multiline), s (dotall), u (unicode).
     40     */
     41    private const REGEX_PATTERN_DETECTION = '/^\/.*\/[imsu]*$/';
    3642
    3743    /**
     
    150156    {
    151157        $className = \get_class($exception);
    152         if ($this->isIgnoredException($className)) {
     158        if ($this->shouldIgnoreException($className)) {
    153159            $this->logger->info(
    154160                'The exception will be discarded because it matches an entry in "ignore_exceptions".',
     
    360366    }
    361367
    362     private function isIgnoredException(string $className): bool
    363     {
    364         foreach ($this->options->getIgnoreExceptions() as $ignoredException) {
    365             if (is_a($className, $ignoredException, true)) {
    366                 return true;
     368    /**
     369     * Checks if an exception should be ignored based on configured patterns.
     370     * Supports both class hierarchy matching and regex patterns.
     371     * Patterns starting and ending with '/' are treated as regex patterns.
     372     */
     373    private function shouldIgnoreException(string $className): bool
     374    {
     375        foreach ($this->options->getIgnoreExceptions() as $pattern) {
     376            // Check for regex pattern (starts with / and ends with / optionally followed by flags)
     377            if (preg_match(self::REGEX_PATTERN_DETECTION, $pattern)) {
     378                try {
     379                    if (preg_match($pattern, $className)) {
     380                        return true;
     381                    }
     382                } catch (\Throwable $e) {
     383                    // Invalid regex pattern, log and skip
     384                    $this->logger->warning(
     385                        \sprintf('Invalid regex pattern in ignore_exceptions: "%s". Error: %s', $pattern, $e->getMessage())
     386                    );
     387                    continue;
     388                }
     389            } else {
     390                // Class hierarchy check
     391                if (is_a($className, $pattern, true)) {
     392                    return true;
     393                }
     394            }
     395        }
     396
     397        return false;
     398    }
     399
     400    /**
     401     * Checks if a transaction should be ignored based on configured patterns.
     402     * Supports both exact string matching and regex patterns.
     403     * Patterns starting and ending with '/' are treated as regex patterns.
     404     */
     405    private function shouldIgnoreTransaction(string $transactionName): bool
     406    {
     407        foreach ($this->options->getIgnoreTransactions() as $pattern) {
     408            // Check for regex pattern (starts with / and ends with / optionally followed by flags)
     409            if (preg_match(self::REGEX_PATTERN_DETECTION, $pattern)) {
     410                try {
     411                    if (preg_match($pattern, $transactionName)) {
     412                        return true;
     413                    }
     414                } catch (\Throwable $e) {
     415                    // Invalid regex pattern, log and skip
     416                    $this->logger->warning(
     417                        \sprintf('Invalid regex pattern in ignore_transactions: "%s". Error: %s', $pattern, $e->getMessage())
     418                    );
     419                    continue;
     420                }
     421            } else {
     422                // Exact string match
     423                if ($transactionName === $pattern) {
     424                    return true;
     425                }
    367426            }
    368427        }
     
    381440
    382441            foreach ($exceptions as $exception) {
    383                 if ($this->isIgnoredException($exception->getType())) {
     442                if ($this->shouldIgnoreException($exception->getType())) {
    384443                    $this->logger->info(
    385444                        \sprintf('The %s will be discarded because it matches an entry in "ignore_exceptions".', $eventDescription),
     
    399458            }
    400459
    401             if (\in_array($transactionName, $this->options->getIgnoreTransactions(), true)) {
     460            if ($this->shouldIgnoreTransaction($transactionName)) {
    402461                $this->logger->info(
    403462                    \sprintf('The %s will be discarded because it matches a entry in "ignore_transactions".', $eventDescription),
  • pay-with-flex/trunk/vendor/sentry/sentry/src/FrameBuilder.php

    r3299085 r3309468  
    220220            $parameterPosition = $reflectionParameter->getPosition();
    221221
    222             if (!isset($backtraceFrameArgs[$parameterPosition])) {
     222            if ($reflectionParameter->isVariadic()) {
     223                // For variadic parameters, collect all remaining arguments into an array
     224                $variadicArgs = [];
     225                for ($i = $parameterPosition; $i < \count($backtraceFrameArgs); ++$i) {
     226                    $variadicArgs[] = $backtraceFrameArgs[$i];
     227                }
     228                $argumentValues[$reflectionParameter->getName()] = $variadicArgs;
     229                // Variadic parameter is always the last one, so we can break
     230                break;
     231            }
     232
     233            if (!\array_key_exists($parameterPosition, $backtraceFrameArgs)) {
    223234                continue;
    224235            }
  • pay-with-flex/trunk/vendor/sentry/sentry/src/HttpClient/Request.php

    r3299085 r3309468  
    55namespace Sentry\HttpClient;
    66
    7 /**
    8  * @internal
    9  */
    107final class Request
    118{
  • pay-with-flex/trunk/vendor/sentry/sentry/src/HttpClient/Response.php

    r3299085 r3309468  
    55namespace Sentry\HttpClient;
    66
    7 /**
    8  * @internal
    9  */
    107final class Response
    118{
  • pay-with-flex/trunk/vendor/sentry/sentry/src/Logs/LogsAggregator.php

    r3308128 r3309468  
    1313use Sentry\State\Scope;
    1414use Sentry\Util\Arr;
     15use Sentry\Util\Str;
    1516
    1617/**
     
    5859        }
    5960
    60         $log = (new Log($timestamp, $this->getTraceId($hub), $level, vsprintf($message, $values)))
     61        $formattedMessage = Str::vsprintfOrNull($message, $values);
     62
     63        if ($formattedMessage === null) {
     64            // If formatting fails we don't format the message and log the error
     65            if ($sdkLogger !== null) {
     66                $sdkLogger->warning('Failed to format log message with values.', [
     67                    'message' => $message,
     68                    'values' => $values,
     69                ]);
     70            }
     71
     72            $formattedMessage = $message;
     73        }
     74
     75        $log = (new Log($timestamp, $this->getTraceId($hub), $level, $formattedMessage))
    6176            ->setAttribute('sentry.release', $options->getRelease())
    6277            ->setAttribute('sentry.environment', $options->getEnvironment() ?? Event::DEFAULT_ENVIRONMENT)
     
    125140    }
    126141
     142    /**
     143     * @return Log[]
     144     */
     145    public function all(): array
     146    {
     147        return $this->logs;
     148    }
     149
    127150    private function getTraceId(HubInterface $hub): string
    128151    {
  • pay-with-flex/trunk/vendor/sentry/sentry/src/Options.php

    r3308128 r3309468  
    157157
    158158    /**
     159     * Sets if logs should be enabled or not.
     160     *
     161     * @param bool|null $enableLogs Boolean if logs should be enabled or not
     162     */
     163    public function setEnableLogs(?bool $enableLogs): self
     164    {
     165        $options = array_merge($this->options, ['enable_logs' => $enableLogs]);
     166
     167        $this->options = $this->resolver->resolve($options);
     168
     169        return $this;
     170    }
     171
     172    /**
     173     * Gets if logs is enabled or not.
     174     */
     175    public function getEnableLogs(): bool
     176    {
     177        return $this->options['enable_logs'] ?? false;
     178    }
     179
     180    /**
    159181     * Sets the sampling factor to apply to transactions. A value of 0 will deny
    160182     * sending any transactions, and a value of 1 will send 100% of transactions.
     
    608630    {
    609631        $options = array_merge($this->options, ['before_send_check_in' => $callback]);
     632
     633        $this->options = $this->resolver->resolve($options);
     634
     635        return $this;
     636    }
     637
     638    /**
     639     * Gets a callback that will be invoked before an log is sent to the server.
     640     * If `null` is returned it won't be sent.
     641     *
     642     * @psalm-return callable(Log): ?Log
     643     */
     644    public function getBeforeSendLogCallback(): callable
     645    {
     646        return $this->options['before_send_log'];
     647    }
     648
     649    /**
     650     * Sets a callable to be called to decide whether a log should
     651     * be captured or not.
     652     *
     653     * @param callable $callback The callable
     654     *
     655     * @psalm-param callable(Log): ?Log $callback
     656     */
     657    public function setBeforeSendLogCallback(callable $callback): self
     658    {
     659        $options = array_merge($this->options, ['before_send_log' => $callback]);
    610660
    611661        $this->options = $this->resolver->resolve($options);
     
    11551205
    11561206    /**
    1157      * Sets if logs should be enabled or not.
    1158      *
    1159      * @param bool|null $enableLogs Boolean if logs should be enabled or not
    1160      */
    1161     public function setEnableLogs(?bool $enableLogs): self
    1162     {
    1163         $options = array_merge($this->options, ['enable_tracing' => $enableLogs]);
    1164 
    1165         $this->options = $this->resolver->resolve($options);
    1166 
    1167         return $this;
    1168     }
    1169 
    1170     /**
    1171      * Gets if logs is enabled or not.
    1172      */
    1173     public function getEnableLogs(): bool
    1174     {
    1175         return $this->options['enable_logs'] ?? false;
    1176     }
    1177 
    1178     /**
    1179      * Gets a callback that will be invoked before an log is sent to the server.
    1180      * If `null` is returned it won't be sent.
    1181      *
    1182      * @psalm-return callable(Log): ?Log
    1183      */
    1184     public function getBeforeSendLogCallback(): callable
    1185     {
    1186         return $this->options['before_send_log'];
    1187     }
    1188 
    1189     /**
    11901207     * Configures the options of the client.
    11911208     *
     
    12031220            'sample_rate' => 1,
    12041221            'enable_tracing' => null,
     1222            'enable_logs' => false,
    12051223            'traces_sample_rate' => null,
    12061224            'traces_sampler' => null,
     
    12341252                return $checkIn;
    12351253            },
     1254            'before_send_log' => static function (Log $log): Log {
     1255                return $log;
     1256            },
    12361257            /**
    12371258             * @deprecated Metrics are no longer supported. Metrics API is a no-op and will be removed in 5.x.
     
    12641285            'max_request_body_size' => 'medium',
    12651286            'class_serializers' => [],
    1266             'enable_logs' => false,
    1267             'before_send_log' => static function (Log $log): Log {
    1268                 return $log;
    1269             },
    12701287        ]);
    12711288
     
    12731290        $resolver->setAllowedTypes('sample_rate', ['int', 'float']);
    12741291        $resolver->setAllowedTypes('enable_tracing', ['null', 'bool']);
     1292        $resolver->setAllowedTypes('enable_logs', 'bool');
    12751293        $resolver->setAllowedTypes('traces_sample_rate', ['null', 'int', 'float']);
    12761294        $resolver->setAllowedTypes('traces_sampler', ['null', 'callable']);
     
    12911309        $resolver->setAllowedTypes('before_send', ['callable']);
    12921310        $resolver->setAllowedTypes('before_send_transaction', ['callable']);
     1311        $resolver->setAllowedTypes('before_send_log', 'callable');
    12931312        $resolver->setAllowedTypes('ignore_exceptions', 'string[]');
    12941313        $resolver->setAllowedTypes('ignore_transactions', 'string[]');
     
    13141333        $resolver->setAllowedTypes('max_request_body_size', 'string');
    13151334        $resolver->setAllowedTypes('class_serializers', 'array');
    1316         $resolver->setAllowedTypes('enable_logs', 'bool');
    1317         $resolver->setAllowedTypes('before_send_log', 'callable');
    13181335
    13191336        $resolver->setAllowedValues('max_request_body_size', ['none', 'never', 'small', 'medium', 'always']);
  • pay-with-flex/trunk/vendor/sentry/sentry/src/Serializer/EnvelopItems/EventItem.php

    r3299085 r3309468  
    1010use Sentry\Serializer\Traits\StacktraceFrameSeralizerTrait;
    1111use Sentry\Util\JSON;
     12use Sentry\Util\Str;
    1213
    1314/**
     
    125126                    'message' => $event->getMessage(),
    126127                    'params' => $event->getMessageParams(),
    127                     'formatted' => $event->getMessageFormatted() ?? vsprintf($event->getMessage(), $event->getMessageParams()),
     128                    'formatted' => $event->getMessageFormatted() ?? Str::vsprintfOrNull($event->getMessage(), $event->getMessageParams()) ?? $event->getMessage(),
    128129                ];
    129130            }
  • pay-with-flex/trunk/vendor/sentry/sentry/src/functions.php

    r3308128 r3309468  
    5858 *     send_default_pii?: bool,
    5959 *     server_name?: string,
    60  *     server_name?: string,
    6160 *     spotlight?: bool,
    6261 *     spotlight_url?: string,
Note: See TracChangeset for help on using the changeset viewer.