try back to check PrettyVersions only (#5856)

This commit is contained in:
Abdul Malik Ikhsan 2021-03-15 02:49:55 +07:00 committed by GitHub
parent 52d94dd8d5
commit a2f1ac1c09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 4 deletions

View File

@ -30,8 +30,6 @@ jobs:
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build images
env:
IMAGES: docker
run: |
DOCKER_TAGS=""

View File

@ -32,11 +32,10 @@ return [
// 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 (getenv('IMAGES') !== 'docker') {
if (! Strings::endsWith($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');
},