Skip to content

Commit 5062253

Browse files
authored
Merge pull request #146 from rollbar/fixed/issue-145-incorrect-classloader-namespace-replacement
2 parents 1831bbf + 1405dcf commit 5062253

4 files changed

Lines changed: 7 additions & 4 deletions

File tree

readme.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Tags: rollbar, full stack, error, tracking, error tracking, error reporting, rep
44
Requires at least: 6.5.0
55
Tested up to: 6.9
66
Requires PHP: 8.1
7-
Stable tag: 3.1.0
7+
Stable tag: 3.1.1
88
License: GPLv2 or later
99
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1010

@@ -150,6 +150,9 @@ using composer.
150150

151151
== Changelog ==
152152

153+
= Version 3.1.1 (December 22nd 2025) =
154+
* Fixed composer autoload ClassLoader namespace not replaced by PHPScoper in v3.1.0.
155+
153156
= Version 3.1.0 (December 18th 2025) =
154157
* Fixed settings values not being saved correctly when they match the default.
155158
* Added `rollbar_js_nonce` filter to allow customizing the nonce used in the Rollbar JS snippet.

rollbar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Plugin Name: Rollbar
55
* Plugin URI: https://wordpress.org/plugins/rollbar
66
* Description: Rollbar full-stack error tracking for WordPress.
7-
* Version: 3.1.0
7+
* Version: 3.1.1
88
* Author: Rollbar
99
* Author URI: https://rollbar.com
1010
* Text Domain: rollbar

scoper.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ static function (string $filePath, string $prefix, string $content): string {
5050
// Fix ClassLoader in string not being prefixed.
5151
if ($filePath === __DIR__ . '/build/vendor/composer/autoload_real.php') {
5252
$content = str_replace(
53-
'(\'Composer\Autoload\ClassLoader\' === $class)',
53+
'(\'Composer\\\\Autoload\\\\ClassLoader\' === $class)',
5454
'(\'RollbarWP\Composer\Autoload\ClassLoader\' === $class)',
5555
$content,
5656
);

src/Plugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
*/
2525
final class Plugin extends AbstractSingleton
2626
{
27-
public const VERSION = '3.1.0';
27+
public const VERSION = '3.1.1';
2828

2929
/**
3030
* Configuration array for Rollbar.

0 commit comments

Comments
 (0)