From ed57c9f286eaa9bad90a27e772572486736f7119 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Fri, 10 Jul 2026 18:37:54 +0700 Subject: [PATCH 1/4] Fix scoper to clean up prefix under getRuleDefinition() method (part 3) --- scoper.php | 9 +++++---- tests/Scoper/ScoperPatchersTest.php | 28 +++++++++++++++++++++------- 2 files changed, 26 insertions(+), 11 deletions(-) diff --git a/scoper.php b/scoper.php index 2dcf08eb98f..71caf13d743 100644 --- a/scoper.php +++ b/scoper.php @@ -119,12 +119,13 @@ static function (string $filePath, string $prefix, string $content): string { return Strings::replace( $content, - '#(public function getRuleDefinition\(\): RuleDefinition\s+\{\R)(.*?)(\R\s*\);\R\s*\})#s', + "#(<<<'?(?