Changeset 3309468
- Timestamp:
- 06/11/2025 12:07:05 AM (10 months ago)
- Location:
- pay-with-flex/trunk
- Files:
-
- 1 added
- 20 edited
-
composer.lock (modified) (3 diffs)
-
pay-with-flex.php (modified) (8 diffs)
-
readme.txt (modified) (2 diffs)
-
src/Resource/Price.php (modified) (1 diff)
-
src/Resource/Product.php (modified) (1 diff)
-
vendor/composer/autoload_classmap.php (modified) (1 diff)
-
vendor/composer/autoload_static.php (modified) (1 diff)
-
vendor/composer/installed.json (modified) (3 diffs)
-
vendor/composer/installed.php (modified) (3 diffs)
-
vendor/composer/jetpack_autoload_classmap.php (modified) (1 diff)
-
vendor/composer/jetpack_autoload_filemap.php (modified) (1 diff)
-
vendor/sentry/sentry/CHANGELOG.md (modified) (2 diffs)
-
vendor/sentry/sentry/src/Client.php (modified) (5 diffs)
-
vendor/sentry/sentry/src/FrameBuilder.php (modified) (1 diff)
-
vendor/sentry/sentry/src/HttpClient/Request.php (modified) (1 diff)
-
vendor/sentry/sentry/src/HttpClient/Response.php (modified) (1 diff)
-
vendor/sentry/sentry/src/Logs/LogsAggregator.php (modified) (3 diffs)
-
vendor/sentry/sentry/src/Options.php (modified) (9 diffs)
-
vendor/sentry/sentry/src/Serializer/EnvelopItems/EventItem.php (modified) (2 diffs)
-
vendor/sentry/sentry/src/Util/Str.php (added)
-
vendor/sentry/sentry/src/functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
pay-with-flex/trunk/composer.lock
r3308128 r3309468 452 452 { 453 453 "name": "sentry/sentry", 454 "version": "4.1 2.0",454 "version": "4.13.0", 455 455 "source": { 456 456 "type": "git", 457 457 "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", 464 464 "shasum": "" 465 465 }, … … 525 525 "support": { 526 526 "issues": "https://github.com/getsentry/sentry-php/issues", 527 "source": "https://github.com/getsentry/sentry-php/tree/4.1 2.0"527 "source": "https://github.com/getsentry/sentry-php/tree/4.13.0" 528 528 }, 529 529 "funding": [ … … 537 537 } 538 538 ], 539 "time": "2025-06- 07T08:37:56+00:00"539 "time": "2025-06-10T15:39:27+00:00" 540 540 }, 541 541 { -
pay-with-flex/trunk/pay-with-flex.php
r3308128 r3309468 3 3 * Plugin Name: Flex HSA/FSA Payments 4 4 * Description: Accept HSA/FSA payments directly in the checkout flow. 5 * Version: 3.1. 05 * Version: 3.1.1 6 6 * Plugin URI: https://wordpress.org/plugins/pay-with-flex/ 7 7 * Author: Flex … … 48 48 49 49 /** 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. 51 53 */ 52 54 function 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 ); 54 60 } 55 61 … … 126 132 $scope->setTags( 127 133 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(), 131 136 ), 132 137 ); … … 137 142 * Add the request information. 138 143 * 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 140 145 */ 141 146 if ( empty( $event->getRequest() ) ) { … … 171 176 * Add the module information. 172 177 * 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 174 179 */ 175 180 if ( empty( $event->getModules() ) ) { … … 196 201 * Add the runtime information. 197 202 * 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 199 204 */ 200 205 if ( null === $event->getRuntimeContext() ) { … … 211 216 * Add the OS information 212 217 * 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 214 219 */ 215 220 if ( null === $event->getOsContext() && \function_exists( 'php_uname' ) ) { … … 236 241 237 242 /** 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 */ 247 function 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 } 258 add_action( 259 hook_name: 'wc_payment_gateways_initialized', 260 callback: __NAMESPACE__ . '\payment_gateways_initialized' 249 261 ); 250 262 -
pay-with-flex/trunk/readme.txt
r3308128 r3309468 4 4 Requires at least: 6.8 5 5 Tested up to: 6.8 6 Stable tag: 3.1. 06 Stable tag: 3.1.1 7 7 Requires PHP: 8.1 8 8 License: GPLv3 or later … … 56 56 == Changelog == 57 57 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 58 63 = 3.1.0 = 59 64 * Added support for [Coupons](https://woocommerce.com/document/coupon-management/). -
pay-with-flex/trunk/src/Resource/Price.php
r3308128 r3309468 95 95 $price = $product->get_regular_price(); 96 96 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() ) ) ); 98 104 if ( ! $description && ProductType::VARIATION === $product->get_type() ) { 99 105 $description = wc_get_formatted_variation( $product, true ); -
pay-with-flex/trunk/src/Resource/Product.php
r3296637 r3309468 138 138 public static function from_wc( \WC_Product $product ): self { 139 139 $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() ); 142 148 143 149 $gtin = self::wc_gtin( $product ); -
pay-with-flex/trunk/vendor/composer/autoload_classmap.php
r3308128 r3309468 212 212 'Sentry\\Util\\PrefixStripper' => $vendorDir . '/sentry/sentry/src/Util/PrefixStripper.php', 213 213 'Sentry\\Util\\SentryUid' => $vendorDir . '/sentry/sentry/src/Util/SentryUid.php', 214 'Sentry\\Util\\Str' => $vendorDir . '/sentry/sentry/src/Util/Str.php', 214 215 'Symfony\\Component\\OptionsResolver\\Debug\\OptionsResolverIntrospector' => $vendorDir . '/symfony/options-resolver/Debug/OptionsResolverIntrospector.php', 215 216 'Symfony\\Component\\OptionsResolver\\Exception\\AccessException' => $vendorDir . '/symfony/options-resolver/Exception/AccessException.php', -
pay-with-flex/trunk/vendor/composer/autoload_static.php
r3308128 r3309468 290 290 'Sentry\\Util\\PrefixStripper' => __DIR__ . '/..' . '/sentry/sentry/src/Util/PrefixStripper.php', 291 291 'Sentry\\Util\\SentryUid' => __DIR__ . '/..' . '/sentry/sentry/src/Util/SentryUid.php', 292 'Sentry\\Util\\Str' => __DIR__ . '/..' . '/sentry/sentry/src/Util/Str.php', 292 293 'Symfony\\Component\\OptionsResolver\\Debug\\OptionsResolverIntrospector' => __DIR__ . '/..' . '/symfony/options-resolver/Debug/OptionsResolverIntrospector.php', 293 294 'Symfony\\Component\\OptionsResolver\\Exception\\AccessException' => __DIR__ . '/..' . '/symfony/options-resolver/Exception/AccessException.php', -
pay-with-flex/trunk/vendor/composer/installed.json
r3308128 r3309468 467 467 { 468 468 "name": "sentry/sentry", 469 "version": "4.1 2.0",470 "version_normalized": "4.1 2.0.0",469 "version": "4.13.0", 470 "version_normalized": "4.13.0.0", 471 471 "source": { 472 472 "type": "git", 473 473 "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", 480 480 "shasum": "" 481 481 }, … … 507 507 "monolog/monolog": "Allow sending log messages to Sentry by using the included Monolog handler." 508 508 }, 509 "time": "2025-06- 07T08:37:56+00:00",509 "time": "2025-06-10T15:39:27+00:00", 510 510 "type": "library", 511 511 "installation-source": "dist", … … 543 543 "support": { 544 544 "issues": "https://github.com/getsentry/sentry-php/issues", 545 "source": "https://github.com/getsentry/sentry-php/tree/4.1 2.0"545 "source": "https://github.com/getsentry/sentry-php/tree/4.13.0" 546 546 }, 547 547 "funding": [ -
pay-with-flex/trunk/vendor/composer/installed.php
r3308128 r3309468 4 4 'pretty_version' => 'dev-main', 5 5 'version' => 'dev-main', 6 'reference' => '2 beb32d234e288a9a5afa8a86de34e8d978774f9',6 'reference' => '2f968fc7c2e8501b942438a97232aebb434a0ad8', 7 7 'type' => 'library', 8 8 'install_path' => __DIR__ . '/../../', … … 14 14 'pretty_version' => 'dev-main', 15 15 'version' => 'dev-main', 16 'reference' => '2 beb32d234e288a9a5afa8a86de34e8d978774f9',16 'reference' => '2f968fc7c2e8501b942438a97232aebb434a0ad8', 17 17 'type' => 'library', 18 18 'install_path' => __DIR__ . '/../../', … … 96 96 ), 97 97 'sentry/sentry' => array( 98 'pretty_version' => '4.1 2.0',99 'version' => '4.1 2.0.0',100 'reference' => ' 0173702ffcbe36ce7638f07f090271294866a7a0',98 'pretty_version' => '4.13.0', 99 'version' => '4.13.0.0', 100 'reference' => 'b54a0eaedfc27fc2da587e64455a66cd29cd3c4d', 101 101 'type' => 'library', 102 102 'install_path' => __DIR__ . '/../sentry/sentry', -
pay-with-flex/trunk/vendor/composer/jetpack_autoload_classmap.php
r3308128 r3309468 416 416 ), 417 417 'Sentry\\Attributes\\Attribute' => array( 418 'version' => '4.1 2.0.0',418 'version' => '4.13.0.0', 419 419 'path' => $vendorDir . '/sentry/sentry/src/Attributes/Attribute.php' 420 420 ), 421 421 'Sentry\\Attributes\\AttributeBag' => array( 422 'version' => '4.1 2.0.0',422 'version' => '4.13.0.0', 423 423 'path' => $vendorDir . '/sentry/sentry/src/Attributes/AttributeBag.php' 424 424 ), 425 425 'Sentry\\Breadcrumb' => array( 426 'version' => '4.1 2.0.0',426 'version' => '4.13.0.0', 427 427 'path' => $vendorDir . '/sentry/sentry/src/Breadcrumb.php' 428 428 ), 429 429 'Sentry\\CheckIn' => array( 430 'version' => '4.1 2.0.0',430 'version' => '4.13.0.0', 431 431 'path' => $vendorDir . '/sentry/sentry/src/CheckIn.php' 432 432 ), 433 433 'Sentry\\CheckInStatus' => array( 434 'version' => '4.1 2.0.0',434 'version' => '4.13.0.0', 435 435 'path' => $vendorDir . '/sentry/sentry/src/CheckInStatus.php' 436 436 ), 437 437 'Sentry\\Client' => array( 438 'version' => '4.1 2.0.0',438 'version' => '4.13.0.0', 439 439 'path' => $vendorDir . '/sentry/sentry/src/Client.php' 440 440 ), 441 441 'Sentry\\ClientBuilder' => array( 442 'version' => '4.1 2.0.0',442 'version' => '4.13.0.0', 443 443 'path' => $vendorDir . '/sentry/sentry/src/ClientBuilder.php' 444 444 ), 445 445 'Sentry\\ClientInterface' => array( 446 'version' => '4.1 2.0.0',446 'version' => '4.13.0.0', 447 447 'path' => $vendorDir . '/sentry/sentry/src/ClientInterface.php' 448 448 ), 449 449 'Sentry\\Context\\OsContext' => array( 450 'version' => '4.1 2.0.0',450 'version' => '4.13.0.0', 451 451 'path' => $vendorDir . '/sentry/sentry/src/Context/OsContext.php' 452 452 ), 453 453 'Sentry\\Context\\RuntimeContext' => array( 454 'version' => '4.1 2.0.0',454 'version' => '4.13.0.0', 455 455 'path' => $vendorDir . '/sentry/sentry/src/Context/RuntimeContext.php' 456 456 ), 457 457 'Sentry\\Dsn' => array( 458 'version' => '4.1 2.0.0',458 'version' => '4.13.0.0', 459 459 'path' => $vendorDir . '/sentry/sentry/src/Dsn.php' 460 460 ), 461 461 'Sentry\\ErrorHandler' => array( 462 'version' => '4.1 2.0.0',462 'version' => '4.13.0.0', 463 463 'path' => $vendorDir . '/sentry/sentry/src/ErrorHandler.php' 464 464 ), 465 465 'Sentry\\Event' => array( 466 'version' => '4.1 2.0.0',466 'version' => '4.13.0.0', 467 467 'path' => $vendorDir . '/sentry/sentry/src/Event.php' 468 468 ), 469 469 'Sentry\\EventHint' => array( 470 'version' => '4.1 2.0.0',470 'version' => '4.13.0.0', 471 471 'path' => $vendorDir . '/sentry/sentry/src/EventHint.php' 472 472 ), 473 473 'Sentry\\EventId' => array( 474 'version' => '4.1 2.0.0',474 'version' => '4.13.0.0', 475 475 'path' => $vendorDir . '/sentry/sentry/src/EventId.php' 476 476 ), 477 477 'Sentry\\EventType' => array( 478 'version' => '4.1 2.0.0',478 'version' => '4.13.0.0', 479 479 'path' => $vendorDir . '/sentry/sentry/src/EventType.php' 480 480 ), 481 481 'Sentry\\ExceptionDataBag' => array( 482 'version' => '4.1 2.0.0',482 'version' => '4.13.0.0', 483 483 'path' => $vendorDir . '/sentry/sentry/src/ExceptionDataBag.php' 484 484 ), 485 485 'Sentry\\ExceptionMechanism' => array( 486 'version' => '4.1 2.0.0',486 'version' => '4.13.0.0', 487 487 'path' => $vendorDir . '/sentry/sentry/src/ExceptionMechanism.php' 488 488 ), 489 489 'Sentry\\Exception\\EventCreationException' => array( 490 'version' => '4.1 2.0.0',490 'version' => '4.13.0.0', 491 491 'path' => $vendorDir . '/sentry/sentry/src/Exception/EventCreationException.php' 492 492 ), 493 493 'Sentry\\Exception\\FatalErrorException' => array( 494 'version' => '4.1 2.0.0',494 'version' => '4.13.0.0', 495 495 'path' => $vendorDir . '/sentry/sentry/src/Exception/FatalErrorException.php' 496 496 ), 497 497 'Sentry\\Exception\\JsonException' => array( 498 'version' => '4.1 2.0.0',498 'version' => '4.13.0.0', 499 499 'path' => $vendorDir . '/sentry/sentry/src/Exception/JsonException.php' 500 500 ), 501 501 'Sentry\\Exception\\SilencedErrorException' => array( 502 'version' => '4.1 2.0.0',502 'version' => '4.13.0.0', 503 503 'path' => $vendorDir . '/sentry/sentry/src/Exception/SilencedErrorException.php' 504 504 ), 505 505 'Sentry\\Frame' => array( 506 'version' => '4.1 2.0.0',506 'version' => '4.13.0.0', 507 507 'path' => $vendorDir . '/sentry/sentry/src/Frame.php' 508 508 ), 509 509 'Sentry\\FrameBuilder' => array( 510 'version' => '4.1 2.0.0',510 'version' => '4.13.0.0', 511 511 'path' => $vendorDir . '/sentry/sentry/src/FrameBuilder.php' 512 512 ), 513 513 'Sentry\\HttpClient\\HttpClient' => array( 514 'version' => '4.1 2.0.0',514 'version' => '4.13.0.0', 515 515 'path' => $vendorDir . '/sentry/sentry/src/HttpClient/HttpClient.php' 516 516 ), 517 517 'Sentry\\HttpClient\\HttpClientInterface' => array( 518 'version' => '4.1 2.0.0',518 'version' => '4.13.0.0', 519 519 'path' => $vendorDir . '/sentry/sentry/src/HttpClient/HttpClientInterface.php' 520 520 ), 521 521 'Sentry\\HttpClient\\Request' => array( 522 'version' => '4.1 2.0.0',522 'version' => '4.13.0.0', 523 523 'path' => $vendorDir . '/sentry/sentry/src/HttpClient/Request.php' 524 524 ), 525 525 'Sentry\\HttpClient\\Response' => array( 526 'version' => '4.1 2.0.0',526 'version' => '4.13.0.0', 527 527 'path' => $vendorDir . '/sentry/sentry/src/HttpClient/Response.php' 528 528 ), 529 529 'Sentry\\Integration\\AbstractErrorListenerIntegration' => array( 530 'version' => '4.1 2.0.0',530 'version' => '4.13.0.0', 531 531 'path' => $vendorDir . '/sentry/sentry/src/Integration/AbstractErrorListenerIntegration.php' 532 532 ), 533 533 'Sentry\\Integration\\EnvironmentIntegration' => array( 534 'version' => '4.1 2.0.0',534 'version' => '4.13.0.0', 535 535 'path' => $vendorDir . '/sentry/sentry/src/Integration/EnvironmentIntegration.php' 536 536 ), 537 537 'Sentry\\Integration\\ErrorListenerIntegration' => array( 538 'version' => '4.1 2.0.0',538 'version' => '4.13.0.0', 539 539 'path' => $vendorDir . '/sentry/sentry/src/Integration/ErrorListenerIntegration.php' 540 540 ), 541 541 'Sentry\\Integration\\ExceptionListenerIntegration' => array( 542 'version' => '4.1 2.0.0',542 'version' => '4.13.0.0', 543 543 'path' => $vendorDir . '/sentry/sentry/src/Integration/ExceptionListenerIntegration.php' 544 544 ), 545 545 'Sentry\\Integration\\FatalErrorListenerIntegration' => array( 546 'version' => '4.1 2.0.0',546 'version' => '4.13.0.0', 547 547 'path' => $vendorDir . '/sentry/sentry/src/Integration/FatalErrorListenerIntegration.php' 548 548 ), 549 549 'Sentry\\Integration\\FrameContextifierIntegration' => array( 550 'version' => '4.1 2.0.0',550 'version' => '4.13.0.0', 551 551 'path' => $vendorDir . '/sentry/sentry/src/Integration/FrameContextifierIntegration.php' 552 552 ), 553 553 'Sentry\\Integration\\IntegrationInterface' => array( 554 'version' => '4.1 2.0.0',554 'version' => '4.13.0.0', 555 555 'path' => $vendorDir . '/sentry/sentry/src/Integration/IntegrationInterface.php' 556 556 ), 557 557 'Sentry\\Integration\\IntegrationRegistry' => array( 558 'version' => '4.1 2.0.0',558 'version' => '4.13.0.0', 559 559 'path' => $vendorDir . '/sentry/sentry/src/Integration/IntegrationRegistry.php' 560 560 ), 561 561 'Sentry\\Integration\\ModulesIntegration' => array( 562 'version' => '4.1 2.0.0',562 'version' => '4.13.0.0', 563 563 'path' => $vendorDir . '/sentry/sentry/src/Integration/ModulesIntegration.php' 564 564 ), 565 565 'Sentry\\Integration\\OptionAwareIntegrationInterface' => array( 566 'version' => '4.1 2.0.0',566 'version' => '4.13.0.0', 567 567 'path' => $vendorDir . '/sentry/sentry/src/Integration/OptionAwareIntegrationInterface.php' 568 568 ), 569 569 'Sentry\\Integration\\RequestFetcher' => array( 570 'version' => '4.1 2.0.0',570 'version' => '4.13.0.0', 571 571 'path' => $vendorDir . '/sentry/sentry/src/Integration/RequestFetcher.php' 572 572 ), 573 573 'Sentry\\Integration\\RequestFetcherInterface' => array( 574 'version' => '4.1 2.0.0',574 'version' => '4.13.0.0', 575 575 'path' => $vendorDir . '/sentry/sentry/src/Integration/RequestFetcherInterface.php' 576 576 ), 577 577 'Sentry\\Integration\\RequestIntegration' => array( 578 'version' => '4.1 2.0.0',578 'version' => '4.13.0.0', 579 579 'path' => $vendorDir . '/sentry/sentry/src/Integration/RequestIntegration.php' 580 580 ), 581 581 'Sentry\\Integration\\TransactionIntegration' => array( 582 'version' => '4.1 2.0.0',582 'version' => '4.13.0.0', 583 583 'path' => $vendorDir . '/sentry/sentry/src/Integration/TransactionIntegration.php' 584 584 ), 585 585 'Sentry\\Logger\\DebugFileLogger' => array( 586 'version' => '4.1 2.0.0',586 'version' => '4.13.0.0', 587 587 'path' => $vendorDir . '/sentry/sentry/src/Logger/DebugFileLogger.php' 588 588 ), 589 589 'Sentry\\Logger\\DebugLogger' => array( 590 'version' => '4.1 2.0.0',590 'version' => '4.13.0.0', 591 591 'path' => $vendorDir . '/sentry/sentry/src/Logger/DebugLogger.php' 592 592 ), 593 593 'Sentry\\Logger\\DebugStdOutLogger' => array( 594 'version' => '4.1 2.0.0',594 'version' => '4.13.0.0', 595 595 'path' => $vendorDir . '/sentry/sentry/src/Logger/DebugStdOutLogger.php' 596 596 ), 597 597 'Sentry\\Logs\\Log' => array( 598 'version' => '4.1 2.0.0',598 'version' => '4.13.0.0', 599 599 'path' => $vendorDir . '/sentry/sentry/src/Logs/Log.php' 600 600 ), 601 601 'Sentry\\Logs\\LogLevel' => array( 602 'version' => '4.1 2.0.0',602 'version' => '4.13.0.0', 603 603 'path' => $vendorDir . '/sentry/sentry/src/Logs/LogLevel.php' 604 604 ), 605 605 'Sentry\\Logs\\Logs' => array( 606 'version' => '4.1 2.0.0',606 'version' => '4.13.0.0', 607 607 'path' => $vendorDir . '/sentry/sentry/src/Logs/Logs.php' 608 608 ), 609 609 'Sentry\\Logs\\LogsAggregator' => array( 610 'version' => '4.1 2.0.0',610 'version' => '4.13.0.0', 611 611 'path' => $vendorDir . '/sentry/sentry/src/Logs/LogsAggregator.php' 612 612 ), 613 613 'Sentry\\Metrics\\Metrics' => array( 614 'version' => '4.1 2.0.0',614 'version' => '4.13.0.0', 615 615 'path' => $vendorDir . '/sentry/sentry/src/Metrics/Metrics.php' 616 616 ), 617 617 'Sentry\\Metrics\\MetricsUnit' => array( 618 'version' => '4.1 2.0.0',618 'version' => '4.13.0.0', 619 619 'path' => $vendorDir . '/sentry/sentry/src/Metrics/MetricsUnit.php' 620 620 ), 621 621 'Sentry\\MonitorConfig' => array( 622 'version' => '4.1 2.0.0',622 'version' => '4.13.0.0', 623 623 'path' => $vendorDir . '/sentry/sentry/src/MonitorConfig.php' 624 624 ), 625 625 'Sentry\\MonitorSchedule' => array( 626 'version' => '4.1 2.0.0',626 'version' => '4.13.0.0', 627 627 'path' => $vendorDir . '/sentry/sentry/src/MonitorSchedule.php' 628 628 ), 629 629 'Sentry\\MonitorScheduleUnit' => array( 630 'version' => '4.1 2.0.0',630 'version' => '4.13.0.0', 631 631 'path' => $vendorDir . '/sentry/sentry/src/MonitorScheduleUnit.php' 632 632 ), 633 633 'Sentry\\Monolog\\BreadcrumbHandler' => array( 634 'version' => '4.1 2.0.0',634 'version' => '4.13.0.0', 635 635 'path' => $vendorDir . '/sentry/sentry/src/Monolog/BreadcrumbHandler.php' 636 636 ), 637 637 'Sentry\\Monolog\\CompatibilityProcessingHandlerTrait' => array( 638 'version' => '4.1 2.0.0',638 'version' => '4.13.0.0', 639 639 'path' => $vendorDir . '/sentry/sentry/src/Monolog/CompatibilityProcessingHandlerTrait.php' 640 640 ), 641 641 'Sentry\\Monolog\\Handler' => array( 642 'version' => '4.1 2.0.0',642 'version' => '4.13.0.0', 643 643 'path' => $vendorDir . '/sentry/sentry/src/Monolog/Handler.php' 644 644 ), 645 645 'Sentry\\Options' => array( 646 'version' => '4.1 2.0.0',646 'version' => '4.13.0.0', 647 647 'path' => $vendorDir . '/sentry/sentry/src/Options.php' 648 648 ), 649 649 'Sentry\\Profiling\\Profile' => array( 650 'version' => '4.1 2.0.0',650 'version' => '4.13.0.0', 651 651 'path' => $vendorDir . '/sentry/sentry/src/Profiling/Profile.php' 652 652 ), 653 653 'Sentry\\Profiling\\Profiler' => array( 654 'version' => '4.1 2.0.0',654 'version' => '4.13.0.0', 655 655 'path' => $vendorDir . '/sentry/sentry/src/Profiling/Profiler.php' 656 656 ), 657 657 'Sentry\\SentrySdk' => array( 658 'version' => '4.1 2.0.0',658 'version' => '4.13.0.0', 659 659 'path' => $vendorDir . '/sentry/sentry/src/SentrySdk.php' 660 660 ), 661 661 'Sentry\\Serializer\\AbstractSerializer' => array( 662 'version' => '4.1 2.0.0',662 'version' => '4.13.0.0', 663 663 'path' => $vendorDir . '/sentry/sentry/src/Serializer/AbstractSerializer.php' 664 664 ), 665 665 'Sentry\\Serializer\\EnvelopItems\\CheckInItem' => array( 666 'version' => '4.1 2.0.0',666 'version' => '4.13.0.0', 667 667 'path' => $vendorDir . '/sentry/sentry/src/Serializer/EnvelopItems/CheckInItem.php' 668 668 ), 669 669 'Sentry\\Serializer\\EnvelopItems\\EnvelopeItemInterface' => array( 670 'version' => '4.1 2.0.0',670 'version' => '4.13.0.0', 671 671 'path' => $vendorDir . '/sentry/sentry/src/Serializer/EnvelopItems/EnvelopeItemInterface.php' 672 672 ), 673 673 'Sentry\\Serializer\\EnvelopItems\\EventItem' => array( 674 'version' => '4.1 2.0.0',674 'version' => '4.13.0.0', 675 675 'path' => $vendorDir . '/sentry/sentry/src/Serializer/EnvelopItems/EventItem.php' 676 676 ), 677 677 'Sentry\\Serializer\\EnvelopItems\\LogsItem' => array( 678 'version' => '4.1 2.0.0',678 'version' => '4.13.0.0', 679 679 'path' => $vendorDir . '/sentry/sentry/src/Serializer/EnvelopItems/LogsItem.php' 680 680 ), 681 681 'Sentry\\Serializer\\EnvelopItems\\ProfileItem' => array( 682 'version' => '4.1 2.0.0',682 'version' => '4.13.0.0', 683 683 'path' => $vendorDir . '/sentry/sentry/src/Serializer/EnvelopItems/ProfileItem.php' 684 684 ), 685 685 'Sentry\\Serializer\\EnvelopItems\\TransactionItem' => array( 686 'version' => '4.1 2.0.0',686 'version' => '4.13.0.0', 687 687 'path' => $vendorDir . '/sentry/sentry/src/Serializer/EnvelopItems/TransactionItem.php' 688 688 ), 689 689 'Sentry\\Serializer\\PayloadSerializer' => array( 690 'version' => '4.1 2.0.0',690 'version' => '4.13.0.0', 691 691 'path' => $vendorDir . '/sentry/sentry/src/Serializer/PayloadSerializer.php' 692 692 ), 693 693 'Sentry\\Serializer\\PayloadSerializerInterface' => array( 694 'version' => '4.1 2.0.0',694 'version' => '4.13.0.0', 695 695 'path' => $vendorDir . '/sentry/sentry/src/Serializer/PayloadSerializerInterface.php' 696 696 ), 697 697 'Sentry\\Serializer\\RepresentationSerializer' => array( 698 'version' => '4.1 2.0.0',698 'version' => '4.13.0.0', 699 699 'path' => $vendorDir . '/sentry/sentry/src/Serializer/RepresentationSerializer.php' 700 700 ), 701 701 'Sentry\\Serializer\\RepresentationSerializerInterface' => array( 702 'version' => '4.1 2.0.0',702 'version' => '4.13.0.0', 703 703 'path' => $vendorDir . '/sentry/sentry/src/Serializer/RepresentationSerializerInterface.php' 704 704 ), 705 705 'Sentry\\Serializer\\SerializableInterface' => array( 706 'version' => '4.1 2.0.0',706 'version' => '4.13.0.0', 707 707 'path' => $vendorDir . '/sentry/sentry/src/Serializer/SerializableInterface.php' 708 708 ), 709 709 'Sentry\\Serializer\\Serializer' => array( 710 'version' => '4.1 2.0.0',710 'version' => '4.13.0.0', 711 711 'path' => $vendorDir . '/sentry/sentry/src/Serializer/Serializer.php' 712 712 ), 713 713 'Sentry\\Serializer\\SerializerInterface' => array( 714 'version' => '4.1 2.0.0',714 'version' => '4.13.0.0', 715 715 'path' => $vendorDir . '/sentry/sentry/src/Serializer/SerializerInterface.php' 716 716 ), 717 717 'Sentry\\Serializer\\Traits\\BreadcrumbSeralizerTrait' => array( 718 'version' => '4.1 2.0.0',718 'version' => '4.13.0.0', 719 719 'path' => $vendorDir . '/sentry/sentry/src/Serializer/Traits/BreadcrumbSeralizerTrait.php' 720 720 ), 721 721 'Sentry\\Serializer\\Traits\\StacktraceFrameSeralizerTrait' => array( 722 'version' => '4.1 2.0.0',722 'version' => '4.13.0.0', 723 723 'path' => $vendorDir . '/sentry/sentry/src/Serializer/Traits/StacktraceFrameSeralizerTrait.php' 724 724 ), 725 725 'Sentry\\Severity' => array( 726 'version' => '4.1 2.0.0',726 'version' => '4.13.0.0', 727 727 'path' => $vendorDir . '/sentry/sentry/src/Severity.php' 728 728 ), 729 729 'Sentry\\Spotlight\\SpotlightClient' => array( 730 'version' => '4.1 2.0.0',730 'version' => '4.13.0.0', 731 731 'path' => $vendorDir . '/sentry/sentry/src/Spotlight/SpotlightClient.php' 732 732 ), 733 733 'Sentry\\Stacktrace' => array( 734 'version' => '4.1 2.0.0',734 'version' => '4.13.0.0', 735 735 'path' => $vendorDir . '/sentry/sentry/src/Stacktrace.php' 736 736 ), 737 737 'Sentry\\StacktraceBuilder' => array( 738 'version' => '4.1 2.0.0',738 'version' => '4.13.0.0', 739 739 'path' => $vendorDir . '/sentry/sentry/src/StacktraceBuilder.php' 740 740 ), 741 741 'Sentry\\State\\Hub' => array( 742 'version' => '4.1 2.0.0',742 'version' => '4.13.0.0', 743 743 'path' => $vendorDir . '/sentry/sentry/src/State/Hub.php' 744 744 ), 745 745 'Sentry\\State\\HubAdapter' => array( 746 'version' => '4.1 2.0.0',746 'version' => '4.13.0.0', 747 747 'path' => $vendorDir . '/sentry/sentry/src/State/HubAdapter.php' 748 748 ), 749 749 'Sentry\\State\\HubInterface' => array( 750 'version' => '4.1 2.0.0',750 'version' => '4.13.0.0', 751 751 'path' => $vendorDir . '/sentry/sentry/src/State/HubInterface.php' 752 752 ), 753 753 'Sentry\\State\\Layer' => array( 754 'version' => '4.1 2.0.0',754 'version' => '4.13.0.0', 755 755 'path' => $vendorDir . '/sentry/sentry/src/State/Layer.php' 756 756 ), 757 757 'Sentry\\State\\Scope' => array( 758 'version' => '4.1 2.0.0',758 'version' => '4.13.0.0', 759 759 'path' => $vendorDir . '/sentry/sentry/src/State/Scope.php' 760 760 ), 761 761 'Sentry\\Tracing\\DynamicSamplingContext' => array( 762 'version' => '4.1 2.0.0',762 'version' => '4.13.0.0', 763 763 'path' => $vendorDir . '/sentry/sentry/src/Tracing/DynamicSamplingContext.php' 764 764 ), 765 765 'Sentry\\Tracing\\GuzzleTracingMiddleware' => array( 766 'version' => '4.1 2.0.0',766 'version' => '4.13.0.0', 767 767 'path' => $vendorDir . '/sentry/sentry/src/Tracing/GuzzleTracingMiddleware.php' 768 768 ), 769 769 'Sentry\\Tracing\\PropagationContext' => array( 770 'version' => '4.1 2.0.0',770 'version' => '4.13.0.0', 771 771 'path' => $vendorDir . '/sentry/sentry/src/Tracing/PropagationContext.php' 772 772 ), 773 773 'Sentry\\Tracing\\SamplingContext' => array( 774 'version' => '4.1 2.0.0',774 'version' => '4.13.0.0', 775 775 'path' => $vendorDir . '/sentry/sentry/src/Tracing/SamplingContext.php' 776 776 ), 777 777 'Sentry\\Tracing\\Span' => array( 778 'version' => '4.1 2.0.0',778 'version' => '4.13.0.0', 779 779 'path' => $vendorDir . '/sentry/sentry/src/Tracing/Span.php' 780 780 ), 781 781 'Sentry\\Tracing\\SpanContext' => array( 782 'version' => '4.1 2.0.0',782 'version' => '4.13.0.0', 783 783 'path' => $vendorDir . '/sentry/sentry/src/Tracing/SpanContext.php' 784 784 ), 785 785 'Sentry\\Tracing\\SpanId' => array( 786 'version' => '4.1 2.0.0',786 'version' => '4.13.0.0', 787 787 'path' => $vendorDir . '/sentry/sentry/src/Tracing/SpanId.php' 788 788 ), 789 789 'Sentry\\Tracing\\SpanRecorder' => array( 790 'version' => '4.1 2.0.0',790 'version' => '4.13.0.0', 791 791 'path' => $vendorDir . '/sentry/sentry/src/Tracing/SpanRecorder.php' 792 792 ), 793 793 'Sentry\\Tracing\\SpanStatus' => array( 794 'version' => '4.1 2.0.0',794 'version' => '4.13.0.0', 795 795 'path' => $vendorDir . '/sentry/sentry/src/Tracing/SpanStatus.php' 796 796 ), 797 797 'Sentry\\Tracing\\TraceId' => array( 798 'version' => '4.1 2.0.0',798 'version' => '4.13.0.0', 799 799 'path' => $vendorDir . '/sentry/sentry/src/Tracing/TraceId.php' 800 800 ), 801 801 'Sentry\\Tracing\\Transaction' => array( 802 'version' => '4.1 2.0.0',802 'version' => '4.13.0.0', 803 803 'path' => $vendorDir . '/sentry/sentry/src/Tracing/Transaction.php' 804 804 ), 805 805 'Sentry\\Tracing\\TransactionContext' => array( 806 'version' => '4.1 2.0.0',806 'version' => '4.13.0.0', 807 807 'path' => $vendorDir . '/sentry/sentry/src/Tracing/TransactionContext.php' 808 808 ), 809 809 'Sentry\\Tracing\\TransactionMetadata' => array( 810 'version' => '4.1 2.0.0',810 'version' => '4.13.0.0', 811 811 'path' => $vendorDir . '/sentry/sentry/src/Tracing/TransactionMetadata.php' 812 812 ), 813 813 'Sentry\\Tracing\\TransactionSource' => array( 814 'version' => '4.1 2.0.0',814 'version' => '4.13.0.0', 815 815 'path' => $vendorDir . '/sentry/sentry/src/Tracing/TransactionSource.php' 816 816 ), 817 817 'Sentry\\Transport\\HttpTransport' => array( 818 'version' => '4.1 2.0.0',818 'version' => '4.13.0.0', 819 819 'path' => $vendorDir . '/sentry/sentry/src/Transport/HttpTransport.php' 820 820 ), 821 821 'Sentry\\Transport\\RateLimiter' => array( 822 'version' => '4.1 2.0.0',822 'version' => '4.13.0.0', 823 823 'path' => $vendorDir . '/sentry/sentry/src/Transport/RateLimiter.php' 824 824 ), 825 825 'Sentry\\Transport\\Result' => array( 826 'version' => '4.1 2.0.0',826 'version' => '4.13.0.0', 827 827 'path' => $vendorDir . '/sentry/sentry/src/Transport/Result.php' 828 828 ), 829 829 'Sentry\\Transport\\ResultStatus' => array( 830 'version' => '4.1 2.0.0',830 'version' => '4.13.0.0', 831 831 'path' => $vendorDir . '/sentry/sentry/src/Transport/ResultStatus.php' 832 832 ), 833 833 'Sentry\\Transport\\TransportInterface' => array( 834 'version' => '4.1 2.0.0',834 'version' => '4.13.0.0', 835 835 'path' => $vendorDir . '/sentry/sentry/src/Transport/TransportInterface.php' 836 836 ), 837 837 'Sentry\\UserDataBag' => array( 838 'version' => '4.1 2.0.0',838 'version' => '4.13.0.0', 839 839 'path' => $vendorDir . '/sentry/sentry/src/UserDataBag.php' 840 840 ), 841 841 'Sentry\\Util\\Arr' => array( 842 'version' => '4.1 2.0.0',842 'version' => '4.13.0.0', 843 843 'path' => $vendorDir . '/sentry/sentry/src/Util/Arr.php' 844 844 ), 845 845 'Sentry\\Util\\Http' => array( 846 'version' => '4.1 2.0.0',846 'version' => '4.13.0.0', 847 847 'path' => $vendorDir . '/sentry/sentry/src/Util/Http.php' 848 848 ), 849 849 'Sentry\\Util\\JSON' => array( 850 'version' => '4.1 2.0.0',850 'version' => '4.13.0.0', 851 851 'path' => $vendorDir . '/sentry/sentry/src/Util/JSON.php' 852 852 ), 853 853 'Sentry\\Util\\PHPConfiguration' => array( 854 'version' => '4.1 2.0.0',854 'version' => '4.13.0.0', 855 855 'path' => $vendorDir . '/sentry/sentry/src/Util/PHPConfiguration.php' 856 856 ), 857 857 'Sentry\\Util\\PHPVersion' => array( 858 'version' => '4.1 2.0.0',858 'version' => '4.13.0.0', 859 859 'path' => $vendorDir . '/sentry/sentry/src/Util/PHPVersion.php' 860 860 ), 861 861 'Sentry\\Util\\PrefixStripper' => array( 862 'version' => '4.1 2.0.0',862 'version' => '4.13.0.0', 863 863 'path' => $vendorDir . '/sentry/sentry/src/Util/PrefixStripper.php' 864 864 ), 865 865 'Sentry\\Util\\SentryUid' => array( 866 'version' => '4.1 2.0.0',866 'version' => '4.13.0.0', 867 867 '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' 868 872 ), 869 873 'Shutdown_Handler' => array( -
pay-with-flex/trunk/vendor/composer/jetpack_autoload_filemap.php
r3308128 r3309468 16 16 ), 17 17 'fb4ca2d97fe7ba6af750497425204e70' => array( 18 'version' => '4.1 2.0.0',18 'version' => '4.13.0.0', 19 19 'path' => $vendorDir . '/sentry/sentry/src/functions.php' 20 20 ), -
pay-with-flex/trunk/vendor/sentry/sentry/CHANGELOG.md
r3308128 r3309468 1 1 # CHANGELOG 2 3 ## 4.13.0 4 5 The 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) 2 30 3 31 ## 4.12.0 … … 87 115 ### Features 88 116 89 - Allow retrieving a single piece of data from the span by it ’s 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) 90 118 91 119 ```php -
pay-with-flex/trunk/vendor/sentry/sentry/src/Client.php
r3308128 r3309468 33 33 * The version of the SDK. 34 34 */ 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]*$/'; 36 42 37 43 /** … … 150 156 { 151 157 $className = \get_class($exception); 152 if ($this-> isIgnoredException($className)) {158 if ($this->shouldIgnoreException($className)) { 153 159 $this->logger->info( 154 160 'The exception will be discarded because it matches an entry in "ignore_exceptions".', … … 360 366 } 361 367 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 } 367 426 } 368 427 } … … 381 440 382 441 foreach ($exceptions as $exception) { 383 if ($this-> isIgnoredException($exception->getType())) {442 if ($this->shouldIgnoreException($exception->getType())) { 384 443 $this->logger->info( 385 444 \sprintf('The %s will be discarded because it matches an entry in "ignore_exceptions".', $eventDescription), … … 399 458 } 400 459 401 if ( \in_array($transactionName, $this->options->getIgnoreTransactions(), true)) {460 if ($this->shouldIgnoreTransaction($transactionName)) { 402 461 $this->logger->info( 403 462 \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 220 220 $parameterPosition = $reflectionParameter->getPosition(); 221 221 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)) { 223 234 continue; 224 235 } -
pay-with-flex/trunk/vendor/sentry/sentry/src/HttpClient/Request.php
r3299085 r3309468 5 5 namespace Sentry\HttpClient; 6 6 7 /**8 * @internal9 */10 7 final class Request 11 8 { -
pay-with-flex/trunk/vendor/sentry/sentry/src/HttpClient/Response.php
r3299085 r3309468 5 5 namespace Sentry\HttpClient; 6 6 7 /**8 * @internal9 */10 7 final class Response 11 8 { -
pay-with-flex/trunk/vendor/sentry/sentry/src/Logs/LogsAggregator.php
r3308128 r3309468 13 13 use Sentry\State\Scope; 14 14 use Sentry\Util\Arr; 15 use Sentry\Util\Str; 15 16 16 17 /** … … 58 59 } 59 60 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)) 61 76 ->setAttribute('sentry.release', $options->getRelease()) 62 77 ->setAttribute('sentry.environment', $options->getEnvironment() ?? Event::DEFAULT_ENVIRONMENT) … … 125 140 } 126 141 142 /** 143 * @return Log[] 144 */ 145 public function all(): array 146 { 147 return $this->logs; 148 } 149 127 150 private function getTraceId(HubInterface $hub): string 128 151 { -
pay-with-flex/trunk/vendor/sentry/sentry/src/Options.php
r3308128 r3309468 157 157 158 158 /** 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 /** 159 181 * Sets the sampling factor to apply to transactions. A value of 0 will deny 160 182 * sending any transactions, and a value of 1 will send 100% of transactions. … … 608 630 { 609 631 $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]); 610 660 611 661 $this->options = $this->resolver->resolve($options); … … 1155 1205 1156 1206 /** 1157 * Sets if logs should be enabled or not.1158 *1159 * @param bool|null $enableLogs Boolean if logs should be enabled or not1160 */1161 public function setEnableLogs(?bool $enableLogs): self1162 {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(): bool1174 {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): ?Log1183 */1184 public function getBeforeSendLogCallback(): callable1185 {1186 return $this->options['before_send_log'];1187 }1188 1189 /**1190 1207 * Configures the options of the client. 1191 1208 * … … 1203 1220 'sample_rate' => 1, 1204 1221 'enable_tracing' => null, 1222 'enable_logs' => false, 1205 1223 'traces_sample_rate' => null, 1206 1224 'traces_sampler' => null, … … 1234 1252 return $checkIn; 1235 1253 }, 1254 'before_send_log' => static function (Log $log): Log { 1255 return $log; 1256 }, 1236 1257 /** 1237 1258 * @deprecated Metrics are no longer supported. Metrics API is a no-op and will be removed in 5.x. … … 1264 1285 'max_request_body_size' => 'medium', 1265 1286 'class_serializers' => [], 1266 'enable_logs' => false,1267 'before_send_log' => static function (Log $log): Log {1268 return $log;1269 },1270 1287 ]); 1271 1288 … … 1273 1290 $resolver->setAllowedTypes('sample_rate', ['int', 'float']); 1274 1291 $resolver->setAllowedTypes('enable_tracing', ['null', 'bool']); 1292 $resolver->setAllowedTypes('enable_logs', 'bool'); 1275 1293 $resolver->setAllowedTypes('traces_sample_rate', ['null', 'int', 'float']); 1276 1294 $resolver->setAllowedTypes('traces_sampler', ['null', 'callable']); … … 1291 1309 $resolver->setAllowedTypes('before_send', ['callable']); 1292 1310 $resolver->setAllowedTypes('before_send_transaction', ['callable']); 1311 $resolver->setAllowedTypes('before_send_log', 'callable'); 1293 1312 $resolver->setAllowedTypes('ignore_exceptions', 'string[]'); 1294 1313 $resolver->setAllowedTypes('ignore_transactions', 'string[]'); … … 1314 1333 $resolver->setAllowedTypes('max_request_body_size', 'string'); 1315 1334 $resolver->setAllowedTypes('class_serializers', 'array'); 1316 $resolver->setAllowedTypes('enable_logs', 'bool');1317 $resolver->setAllowedTypes('before_send_log', 'callable');1318 1335 1319 1336 $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 10 10 use Sentry\Serializer\Traits\StacktraceFrameSeralizerTrait; 11 11 use Sentry\Util\JSON; 12 use Sentry\Util\Str; 12 13 13 14 /** … … 125 126 'message' => $event->getMessage(), 126 127 'params' => $event->getMessageParams(), 127 'formatted' => $event->getMessageFormatted() ?? vsprintf($event->getMessage(), $event->getMessageParams()),128 'formatted' => $event->getMessageFormatted() ?? Str::vsprintfOrNull($event->getMessage(), $event->getMessageParams()) ?? $event->getMessage(), 128 129 ]; 129 130 } -
pay-with-flex/trunk/vendor/sentry/sentry/src/functions.php
r3308128 r3309468 58 58 * send_default_pii?: bool, 59 59 * server_name?: string, 60 * server_name?: string,61 60 * spotlight?: bool, 62 61 * spotlight_url?: string,
Note: See TracChangeset
for help on using the changeset viewer.