8141 Commits

Author SHA1 Message Date
TomasVotruba
f823903560 move run_all_sets to ValidateSetsCommand 2020-03-29 15:37:46 +02:00
Tomas Votruba
773ac10f9c
Merge pull request #3094 from paslandau/add_parallel_execution
Add parallel execution to ci/run_all_sets
2020-03-29 15:00:56 +02:00
Pascal Landau
cc18c9a52a Add parallel execution to ci/run_all_sets 2020-03-29 14:45:54 +02:00
Tomas Votruba
7da1e0a9ea
Merge pull request #3096 from rectorphp/fix-array-routes
Fix @Route localized paths
2020-03-29 13:28:07 +02:00
TomasVotruba
8b88afcc66 Fix @Route localized paths 2020-03-29 13:10:47 +02:00
Pascal Landau
016124b215 Add RunnableTestCase to run fixed code in a test
- added RunnableTestCase::assertOriginalAndFixedFileYieldSameResult($file)
that takes a fixture file and expects fixture classes that implement the
new RunnableInterface which exposes a run() method
- the fixture class is dynamically renamed to avoid naming conflicts
and loaded via eval()
- fixtures that don't implement the RunnableInterface are ignored
otherwise the run() method is called on the original class as well
as on the fixed one and the output is expected to be equal
(via assertSame)
2020-03-29 13:09:09 +02:00
Tomas Votruba
96d1f219dc
Merge pull request #3093 from rectorphp/privatize-getter
[Privatization] Add PrivatizeLocalGetterToPropertyRector
2020-03-29 12:06:59 +02:00
TomasVotruba
058f1c7932 [Privatization] Add PrivatizeLocalGetterToPropertyRector 2020-03-29 03:58:00 +02:00
TomasVotruba
f0c2c79b61 fix property path for sonar 2020-03-29 03:21:29 +02:00
Tomas Votruba
c3d5b83bd6
Merge pull request #3092 from rectorphp/cleanup
Cleanup
2020-03-29 03:19:33 +02:00
TomasVotruba
17f9efc223 fix PregFunctionToNetteUtilsStringsRector for preg_match with non-assign 2020-03-29 01:05:18 +01:00
TomasVotruba
58034ac5fa decouple ClassMethodVisibilityVendorLockResolver 2020-03-29 00:58:12 +01:00
TomasVotruba
15945fc1bc move Legacy to rules 2020-03-29 00:58:12 +01:00
TomasVotruba
fea734ab61 composer: update complete-check 2020-03-29 00:35:40 +01:00
TomasVotruba
13d9e5665e cleanup 2020-03-29 00:35:40 +01:00
Tomas Votruba
e9b6a8f58a
Merge pull request #3084 from rectorphp/privatize-methods
[Privatization] Privatize methods that are used only locally
2020-03-29 00:11:33 +01:00
TomasVotruba
626287ec76 apply privatization 2020-03-29 00:06:05 +01:00
TomasVotruba
91d1a1e397 [Privatization] Add PrivatizeLocalOnlyMethodRector 2020-03-29 00:06:01 +01:00
Tomas Votruba
23b08fc2b1
Merge pull request #3087 from paslandau/fix_array_key_exists_rector
Fix ArrayKeysAndInArrayToArrayKeyExistsRectorTest
2020-03-28 17:40:03 +01:00
Pascal Landau
1513ee16cd Fix ArrayKeysAndInArrayToArrayKeyExistsRectorTest
- fixed typo in RectorDefinition code sample
- fixed argument order of array_key_exists
- renamed test folder from ArrayKeysAndInArrayToIssetRector
  to ArrayKeysAndInArrayToArrayKeyExistsRector
2020-03-28 17:35:14 +01:00
Tomas Votruba
4f3256e569
Merge pull request #3083 from rectorphp/printing
use just one type of printing
2020-03-28 16:36:58 +01:00
TomasVotruba
7474518b96 use just one type of printing 2020-03-28 16:27:26 +01:00
Tomas Votruba
a89785df64
Merge pull request #3081 from rectorphp/param-return-by-property
[TypeDeclaration] Add class method param type resolving by property
2020-03-28 16:24:01 +01:00
TomasVotruba
5df24b4087 decouple ChildParamPopulator 2020-03-28 16:16:29 +01:00
TomasVotruba
442e2abac5 [TypeDeclaratoin] Add class method param type resolving by property 2020-03-28 16:16:04 +01:00
Tomas Votruba
d0ca8a63f0
Merge pull request #3082 from rectorphp/array-keys-better
[CodeQuality] use array_key_exists instead of isset
2020-03-28 15:31:04 +01:00
TomasVotruba
74416461bb use array_key_exists instead of isset 2020-03-28 15:12:29 +01:00
Tomas Votruba
ac29fa42ed
Merge pull request #3080 from rectorphp/array-keys-in-arra
[CodeQuality] Add ArrayKeysAndInArrayToIssetRector
2020-03-28 00:35:37 +01:00
TomasVotruba
22487811b3 [CodeQuality] Add ArrayKeysAndInArrayToIssetRector 2020-03-28 00:26:41 +01:00
Tomas Votruba
cdd04a9270
Merge pull request #3079 from rectorphp/fix-annota
Fix annotation in requirements of @Route
2020-03-27 22:59:13 +01:00
TomasVotruba
8338004d4e test = 2020-03-27 22:53:40 +01:00
TomasVotruba
c00b8d4b75 fix bracket mallform in annotations 2020-03-27 22:51:44 +01:00
Tomas Votruba
062c323802
Merge pull request #3078 from rectorphp/safe
Add Safe 0.7 set
2020-03-27 16:54:21 +01:00
TomasVotruba
ee15a89095 add safe 07 set 2020-03-27 16:51:44 +01:00
Tomas Votruba
0899c2527f
Merge pull request #3077 from rectorphp/fix-auto-import
Fix auto import
2020-03-27 16:49:00 +01:00
TomasVotruba
6521583a40 fix importing of non-existing classes 2020-03-27 16:43:42 +01:00
TomasVotruba
31023ee27b # This is a combination of 2 commits.
# This is the 1st commit message:

fix importing of non-existing classes

# The commit message #2 will be skipped:

# fixup! fix importing of non-existing classes
2020-03-27 16:42:50 +01:00
TomasVotruba
557c2521df unused import is responsibility of coding standard 2020-03-27 16:40:52 +01:00
TomasVotruba
6fba2c610c cannot work with non-existing class 2020-03-27 16:40:52 +01:00
Tomas Votruba
8220e5ce12
Merge pull request #3076 from rectorphp/php80-less-regex
[PHP 8.0] drop preg_match support from StrContains, too vague
2020-03-27 15:24:28 +01:00
TomasVotruba
8f1208d18b drop preg_match support from StrContains, too vague 2020-03-27 15:20:20 +01:00
Tomas Votruba
2e9c303447
Merge pull request #3074 from Great-Antique/fix_auto_import_names
Fix 'auto_import_names' tests fixtures path
2020-03-27 14:18:55 +01:00
Den Girnyk
30c337e82c
Fix 'auto_import_names' tests fixtures path 2020-03-27 14:47:52 +02:00
Tomas Votruba
f9a42a2f75
Merge pull request #3072 from rectorphp/php80-str-contains
[PHP 8.0] Add StrContainsRector
2020-03-27 00:02:41 +01:00
TomasVotruba
3c3aa39f14 [PHP 80] Add StrContainsRector 2020-03-26 23:57:53 +01:00
Tomas Votruba
7087a55630
Merge pull request #3071 from rectorphp/fix-ctor
remove ctor dependency on property/assign removal
2020-03-26 23:04:13 +01:00
TomasVotruba
9d4be977c4 remove ctor dependency on property/assign removal 2020-03-26 22:58:28 +01:00
Tomas Votruba
47c8666088
Merge pull request #2836 from Great-Antique/2753_fix_auto_import_names
WIP: #2753 Fix Auto Import Names
2020-03-26 22:27:57 +01:00
Tomas Votruba
32ce46eed2
Merge pull request #3070 from rectorphp/fix-foreach
[DeadCode] Add empty() + count($values) > 0 checks to RemoveUnusedNonEmptyArrayBeforeForeachRector
2020-03-26 22:25:39 +01:00
TomasVotruba
5995db8262 add else case 2020-03-26 22:14:10 +01:00