diff --git a/readme.txt b/readme.txt index e0a361d..df1a180 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Tags: rollbar, full stack, error, tracking, error tracking, error reporting, rep Requires at least: 6.5.0 Tested up to: 6.9 Requires PHP: 8.1 -Stable tag: 3.1.0 +Stable tag: 3.1.1 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -150,6 +150,9 @@ using composer. == Changelog == += Version 3.1.1 (December 22nd 2025) = +* Fixed composer autoload ClassLoader namespace not replaced by PHPScoper in v3.1.0. + = Version 3.1.0 (December 18th 2025) = * Fixed settings values not being saved correctly when they match the default. * Added `rollbar_js_nonce` filter to allow customizing the nonce used in the Rollbar JS snippet. diff --git a/rollbar.php b/rollbar.php index ecc8cff..8b79903 100755 --- a/rollbar.php +++ b/rollbar.php @@ -4,7 +4,7 @@ * Plugin Name: Rollbar * Plugin URI: https://wordpress.org/plugins/rollbar * Description: Rollbar full-stack error tracking for WordPress. - * Version: 3.1.0 + * Version: 3.1.1 * Author: Rollbar * Author URI: https://rollbar.com * Text Domain: rollbar diff --git a/scoper.inc.php b/scoper.inc.php index 777ba70..d6e239e 100644 --- a/scoper.inc.php +++ b/scoper.inc.php @@ -50,7 +50,7 @@ static function (string $filePath, string $prefix, string $content): string { // Fix ClassLoader in string not being prefixed. if ($filePath === __DIR__ . '/build/vendor/composer/autoload_real.php') { $content = str_replace( - '(\'Composer\Autoload\ClassLoader\' === $class)', + '(\'Composer\\\\Autoload\\\\ClassLoader\' === $class)', '(\'RollbarWP\Composer\Autoload\ClassLoader\' === $class)', $content, ); diff --git a/src/Plugin.php b/src/Plugin.php index fa1dff6..a10acc7 100644 --- a/src/Plugin.php +++ b/src/Plugin.php @@ -24,7 +24,7 @@ */ final class Plugin extends AbstractSingleton { - public const VERSION = '3.1.0'; + public const VERSION = '3.1.1'; /** * Configuration array for Rollbar.