remove abstract (#5736)

This commit is contained in:
Tomas Votruba 2021-03-03 09:49:57 +01:00 committed by GitHub
parent 3673e2182c
commit b7b6725364
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
264 changed files with 1011 additions and 919 deletions

View File

@ -22,7 +22,7 @@ jobs:
- run: composer require symfony/polyfill-php72 symfony/polyfill-php73 symfony/polyfill-php74 symfony/polyfill-php80 --no-install --no-update
# Execute the downgrade script
- run: ./.github/workflows/scripts/downgrade_packages.sh 7.1
- run: ./build/downgrade/downgrade_packages.sh 7.1
# Upload the artifact so we can download and review the downgraded code
- run: mkdir build

View File

@ -3,7 +3,7 @@
# This bash script downgrades the code to the selected PHP version
#
# Usage from within a GitHub workflow:
# .github/workflows/scripts/downgrade_packages.sh $target_php_version
# build/downgrade/downgrade_packages.sh $target_php_version
# where $target_php_version is one of the following values:
# - 7.0
# - 7.1
@ -15,7 +15,7 @@
# - 8.0
#
# Eg: To downgrade to PHP 7.1, execute:
# .github/workflows/scripts/downgrade_packages.sh 7.1
# build/downgrade/downgrade_packages.sh 7.1
########################################################################
# show errors
@ -204,7 +204,7 @@ then
config=ci/downgrade/rector-downgrade-rector
config="${config}-${rector_config}.php"
note "Running rector_config ${rector_config} for main package ${rootPackage} on path(s) ${path_to_downgrade}"
bin/rector process $path_to_downgrade --config=$config --ansi --no-diffs
bin/rector process $path_to_downgrade --config=$config --ansi --no-diffs --debug
#Downgrade all the dependencies then
packages_to_downgrade=$(join_by " " ${dependency_packages[@]})
@ -212,7 +212,7 @@ then
config=ci/downgrade/rector-downgrade-dependency
config="${config}-${rector_config}.php"
note "Running rector_config ${rector_config} for dependency packages ${packages_to_downgrade} on paths ${paths_to_downgrade}"
bin/rector process $paths_to_downgrade --config=$config --ansi --no-diffs
bin/rector process $paths_to_downgrade --config=$config --ansi --no-diffs --debug
# Success
exit 0
@ -316,7 +316,7 @@ do
note "Running rector_config ${rector_config} for package ${package_to_downgrade} on path(s) ${path_to_downgrade}"
# Execute the downgrade
bin/rector process $path_to_downgrade --config=$config --ansi
bin/rector process $path_to_downgrade --config=$config --ansi --debug
# If Rector fails, already exit
if [ "$?" -gt 0 ]; then
@ -355,7 +355,7 @@ do
paths_to_downgrade=$(join_by " " ${circular_paths_to_downgrade_for_rectorconfig[@]})
note "Running rector_config ${rector_config} for packages ${circular_packages_to_downgrade_for_rectorconfig[@]}"
config="ci/downgrade/rector-downgrade-dependency-${rector_config}.php"
bin/rector process $paths_to_downgrade --config=$config --ansi
bin/rector process $paths_to_downgrade --config=$config --ansi --debug
# If Rector fails, already exit
if [ "$?" -gt 0 ]; then

View File

@ -70,7 +70,6 @@ final class SomeClass
CODE_SAMPLE
),
]);
}

View File

@ -54,7 +54,6 @@ final class SomeClass
CODE_SAMPLE
),
]);
}

View File

@ -66,7 +66,6 @@ class SomeClass
}
CODE_SAMPLE
),
]);
}

View File

@ -66,7 +66,6 @@ if ($condition === null) {
}
CODE_SAMPLE
),
]);
}

View File

@ -82,7 +82,6 @@ class SomeClass
}
CODE_SAMPLE
),
]);
}

View File

@ -91,7 +91,6 @@ class SomeClass
}
CODE_SAMPLE
),
]);
}

View File

@ -48,7 +48,6 @@ final class SomeClass
}
CODE_SAMPLE
),
]);
}

View File

@ -47,7 +47,6 @@ $b = 10;
$result = $a <= 20 && $b > 50;
CODE_SAMPLE
),
]);
}

View File

@ -54,7 +54,6 @@ class SomeClass
}
CODE_SAMPLE
),
]);
}

View File

@ -48,7 +48,6 @@ class SomeClass
}
CODE_SAMPLE
),
]);
}

View File

@ -61,7 +61,6 @@ class SomeClass
}
CODE_SAMPLE
),
]);
}

View File

@ -68,7 +68,6 @@ class SomeClass
}
CODE_SAMPLE
),
]);
}

View File

@ -44,7 +44,6 @@ $possibleDirectories = [];
$directories = array_filter($possibleDirectories, 'file_exists');
CODE_SAMPLE
),
]);
}

View File

@ -63,7 +63,6 @@ CODE_SAMPLE
return $this->oldToNewFunctions[$currentFunction] ?? null;
CODE_SAMPLE
),
]);
}

View File

@ -51,7 +51,6 @@ class SomeClass
}
CODE_SAMPLE
),
]);
}

View File

@ -45,7 +45,6 @@ class SomeClass
}
CODE_SAMPLE
),
]);
}

View File

@ -53,7 +53,6 @@ class SomeClass
}
CODE_SAMPLE
),
]);
}

View File

@ -49,7 +49,6 @@ class SomeClass
}
CODE_SAMPLE
),
]);
}

View File

@ -45,7 +45,6 @@ class SomeClass
}
CODE_SAMPLE
),
]);
}

View File

@ -43,7 +43,6 @@ class SomeClass
}
CODE_SAMPLE
),
]);
}

View File

@ -49,7 +49,6 @@ class SomeClass
}
CODE_SAMPLE
),
]);
}

View File

@ -91,7 +91,6 @@ final class SomeClass
}
CODE_SAMPLE
),
]);
}

View File

@ -73,7 +73,6 @@ class SomeClass
}
CODE_SAMPLE
),
]);
}

View File

@ -47,7 +47,6 @@ class SomeClass
}
CODE_SAMPLE
),
]);
}

View File

@ -44,7 +44,6 @@ class SomeClass
}
CODE_SAMPLE
),
]);
}

View File

@ -55,7 +55,6 @@ class SomeClass
}
CODE_SAMPLE
),
]);
}

View File

@ -48,7 +48,6 @@ $newNode = 'something ;
return $newNode;
CODE_SAMPLE
),
]);
}

View File

@ -56,7 +56,6 @@ CODE_SAMPLE
,
'return strpos($docToken->getContent(), "\n") === false;'
),
]);
}

View File

@ -38,7 +38,6 @@ if (($f = false) || true) {
}
CODE_SAMPLE
),
]);
}

View File

@ -68,7 +68,6 @@ final class AnotherClass
}
CODE_SAMPLE
),
]);
}

View File

@ -43,7 +43,6 @@ final class SomeClass
}
CODE_SAMPLE
),
]);
}

View File

@ -46,7 +46,6 @@ class SomeClass
}
CODE_SAMPLE
),
]);
}

View File

@ -44,7 +44,6 @@ class SomeClass
}
CODE_SAMPLE
),
]);
}

View File

@ -46,7 +46,6 @@ class SomeClass
}
CODE_SAMPLE
),
]);
}

View File

@ -56,7 +56,6 @@ CODE_SAMPLE
$config = 5;
CODE_SAMPLE
),
]);
}

View File

@ -57,7 +57,6 @@ class SomeClass
}
CODE_SAMPLE
),
]);
}

View File

@ -54,7 +54,6 @@ class SomeClass
}
CODE_SAMPLE
),
]);
}

View File

@ -62,7 +62,6 @@ class SomeClass
}
CODE_SAMPLE
),
]);
}

View File

@ -54,7 +54,6 @@ class SomeClass
}
CODE_SAMPLE
),
]);
}

View File

@ -85,7 +85,6 @@ class SomeClass
}
CODE_SAMPLE
),
]);
}

View File

@ -63,7 +63,6 @@ final class SomeClass
}
CODE_SAMPLE
),
]);
}

View File

@ -62,7 +62,6 @@ class SomeClass
}
CODE_SAMPLE
),
]);
}

View File

@ -46,7 +46,6 @@ $array !== [];
$array === [];
CODE_SAMPLE
),
]);
}

View File

@ -45,7 +45,6 @@ class SomeClass
}
CODE_SAMPLE
),
]);
}

View File

@ -81,7 +81,6 @@ class SomeClass
}
CODE_SAMPLE
),
]);
}

View File

@ -42,7 +42,6 @@ function some_camel_case_function()
some_camel_case_function();
CODE_SAMPLE
),
]);
}

View File

@ -45,7 +45,6 @@ class SomeClass
}
CODE_SAMPLE
),
]);
}

View File

@ -42,7 +42,6 @@ class SomeClass
}
CODE_SAMPLE
),
]);
}

View File

@ -65,7 +65,6 @@ class AnotherClass
}
CODE_SAMPLE
),
]);
}

View File

@ -51,7 +51,6 @@ class SomeClass
}
CODE_SAMPLE
),
]);
}

View File

@ -38,7 +38,6 @@ function ternary($value)
}
CODE_SAMPLE
),
]);
}

View File

@ -44,7 +44,6 @@ class SomeClass
}
CODE_SAMPLE
),
]);
}

View File

@ -53,7 +53,6 @@ class SomeClass
}
CODE_SAMPLE
),
]);
}

View File

@ -63,7 +63,6 @@ class SomeClass
}
CODE_SAMPLE
),
]);
}

View File

@ -55,7 +55,6 @@ class SomeClass
}
CODE_SAMPLE
),
]);
}

View File

@ -58,7 +58,6 @@ class OrphanClass
}
CODE_SAMPLE
),
]);
}

View File

@ -94,7 +94,6 @@ class SomeClass
}
CODE_SAMPLE
),
]);
}

View File

@ -76,7 +76,6 @@ abstracst clas AnotherAbstractClass
}
CODE_SAMPLE
),
]);
}

View File

@ -101,7 +101,6 @@ class UserEntity
}
CODE_SAMPLE
),
]);
}

View File

@ -43,7 +43,6 @@ class SomeConcatingClass
}
CODE_SAMPLE
),
]);
}

View File

@ -60,7 +60,6 @@ class SomeClass
}
CODE_SAMPLE
),
]);
}

View File

@ -44,7 +44,6 @@ class SomeClass
}
CODE_SAMPLE
),
]);
}

View File

@ -54,7 +54,6 @@ class SomeClass
}
CODE_SAMPLE
),
]);
}

View File

@ -83,7 +83,6 @@ class SomeClass
}
CODE_SAMPLE
),
]);
}

View File

@ -76,7 +76,6 @@ final class SomeController
}
CODE_SAMPLE
),
]);
}

View File

@ -78,7 +78,6 @@ class SomeClass
}
CODE_SAMPLE
),
]);
}

View File

@ -69,7 +69,6 @@ class SomeClass
}
CODE_SAMPLE
),
]);
}

View File

@ -56,7 +56,6 @@ CODE_SAMPLE
return 'is PHP 7.2+';
CODE_SAMPLE
),
]);
}

View File

@ -57,7 +57,6 @@ class SomeClass
}
CODE_SAMPLE
),
]);
}

View File

@ -102,7 +102,6 @@ class ActiveOnlySetter
}
CODE_SAMPLE
),
]);
}

View File

@ -40,7 +40,6 @@ class SunshineCommand extends ParentClassWithNewConstructor
}
CODE_SAMPLE
),
]);
}

View File

@ -55,7 +55,6 @@ class OrphanClass
}
CODE_SAMPLE
),
]);
}

View File

@ -61,7 +61,6 @@ class SomeClass
}
CODE_SAMPLE
),
]);
}

View File

@ -66,7 +66,6 @@ class SomeClass
}
CODE_SAMPLE
),
]);
}

View File

@ -57,7 +57,6 @@ class SomeClass
}
CODE_SAMPLE
),
]);
}

View File

@ -94,7 +94,6 @@ class SomeClass
}
CODE_SAMPLE
),
]);
}

View File

@ -66,7 +66,6 @@ class SomeExampleClass
}
CODE_SAMPLE
),
]);
}

View File

@ -42,7 +42,6 @@ $someClass->someFunction();
$someClass->otherFunction();
CODE_SAMPLE
),
]);
}

View File

@ -77,7 +77,6 @@ class SomeClass
}
CODE_SAMPLE
),
]);
}

View File

@ -52,7 +52,6 @@ $someClass->someFunction();
$someClass->otherFunction();
CODE_SAMPLE
),
]);
}

View File

@ -40,7 +40,6 @@ $someClass->otherFunction();
return $someClass;
CODE_SAMPLE
),
]);
}

View File

@ -75,7 +75,6 @@ class SomeClass
}
CODE_SAMPLE
),
]);
}

View File

@ -121,7 +121,6 @@ class SomeRepository extends EntityRepository
}
CODE_SAMPLE
),
]);
}

View File

@ -74,7 +74,6 @@ class SomeEntity
}
CODE_SAMPLE
),
]);
}

View File

@ -61,7 +61,6 @@ class User
}
CODE_SAMPLE
),
]);
}

View File

@ -92,7 +92,6 @@ class SomeClass implements BlameableInterface
}
CODE_SAMPLE
),
]);
}

View File

@ -75,7 +75,6 @@ class SomeClass implements LoggableInterface
}
CODE_SAMPLE
),
]);
}

View File

@ -90,7 +90,6 @@ class SomeClass implements SluggableInterface
}
CODE_SAMPLE
),
]);
}

View File

@ -150,7 +150,6 @@ class SomeClassTranslation implements TranslationInterface
}
CODE_SAMPLE
),
]);
}

View File

@ -122,7 +122,6 @@ class SomeClass implements TreeNodeInterface
}
CODE_SAMPLE
),
]);
}

View File

@ -65,7 +65,6 @@ class GetId
}
CODE_SAMPLE
),
]);
}

View File

@ -70,7 +70,6 @@ class SetId
}
CODE_SAMPLE
),
]);
}

View File

@ -93,7 +93,6 @@ class AddUuidInit
}
CODE_SAMPLE
),
]);
}

View File

@ -107,7 +107,6 @@ class CustomRepository
}
CODE_SAMPLE
),
]);
}

View File

@ -44,7 +44,6 @@ class Product
}
CODE_SAMPLE
),
]);
}

Some files were not shown because too many files have changed in this diff Show More