From 9cec23389eed1a8c40f300abbe461e3d39d907f2 Mon Sep 17 00:00:00 2001 From: TomasVotruba Date: Sat, 13 Mar 2021 23:15:43 +0100 Subject: [PATCH] comments --- scoper.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scoper.php b/scoper.php index 71d4b3e5364..53f6900a982 100644 --- a/scoper.php +++ b/scoper.php @@ -30,12 +30,14 @@ return [ // [BEWARE] $filePath is absolute! // fixes https://github.com/rectorphp/rector-prefixed/runs/2103759172 + // and https://github.com/rectorphp/rector-prefixed/blob/0cc433e746b645df5f905fa038573c3a1a9634f0/vendor/jean85/pretty-package-versions/src/PrettyVersions.php#L6 function (string $filePath, string $prefix, string $content): string { if (! Strings::contains($filePath, 'vendor/jean85/pretty-package-versions/src/PrettyVersions.php')) { return $content; } // return Composer\InstalledVersions; + // see https://regex101.com/r/v8zRMm/1 return Strings::replace($content, '#' . $prefix . '\\Composer\\InstalledVersions#', 'Composer\InstalledVersions'); },