TomasVotruba
9a9f777513
[DeadCode] Add RemoveDeadRecursiveClassMethodRector
2020-03-31 15:17:42 +02:00
TomasVotruba
9466680a6d
move constant privatization to privatization set
2020-03-29 20:02:47 +02:00
TomasVotruba
144f8cad12
apply rules
2020-03-29 19:09:04 +02:00
TomasVotruba
cbb50de280
[Privatization] Add PrivatizeLocalPropertyToPrivatePropertyRector
2020-03-29 19:07:26 +02:00
Tomas Votruba
d3e5960dc2
Merge pull request #3089 from paslandau/run_fixtures_in_tests
...
Add RunnableTestCase to run fixed code in a test
2020-03-29 18:49:34 +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
TomasVotruba
058f1c7932
[Privatization] Add PrivatizeLocalGetterToPropertyRector
2020-03-29 03:58:00 +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
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
TomasVotruba
7474518b96
use just one type of printing
2020-03-28 16:27:26 +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
TomasVotruba
74416461bb
use array_key_exists instead of isset
2020-03-28 15:12:29 +01:00
TomasVotruba
22487811b3
[CodeQuality] Add ArrayKeysAndInArrayToIssetRector
2020-03-28 00:26:41 +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
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
TomasVotruba
8f1208d18b
drop preg_match support from StrContains, too vague
2020-03-27 15:20:20 +01:00
Den Girnyk
30c337e82c
Fix 'auto_import_names' tests fixtures path
2020-03-27 14:47:52 +02:00
TomasVotruba
3c3aa39f14
[PHP 80] Add StrContainsRector
2020-03-26 23:57:53 +01:00
TomasVotruba
9d4be977c4
remove ctor dependency on property/assign removal
2020-03-26 22:58:28 +01:00
TomasVotruba
5995db8262
add else case
2020-03-26 22:14:10 +01:00
TomasVotruba
6a8aa9b017
add count() > 0 case
2020-03-26 22:09:35 +01:00
TomasVotruba
0fe761f8ff
Add empty() check to RemoveUnusedNonEmptyArrayBeforeForeachRector
2020-03-26 21:37:37 +01:00
Tomas Votruba
8406192dca
[DeadCode] Add RemoveAssignOfVoidReturnFunctionRector ( #3068 )
2020-03-25 22:51:12 +01:00
Tomas Votruba
5204ce1523
[DeadCode] Add RemoveUnusedNonEmptyArrayBeforeForeachRector ( #3066 )
2020-03-25 19:00:26 +01:00
Tomas Votruba
8492af2af1
[PHP 7.4] Fix ChangeReflectionTypeToStringToGetNameRector ( #3064 )
...
* [PHP 7.4] Fix ChangeReflectionTypeToStringToGetNameRector
* fixup! [Rector CI] Fixed Rector issues
* fixup! [Rector CI] Fixed CS issues
Co-authored-by: rector-bot <tomas@getrector.org>
2020-03-25 15:53:26 +01:00
TomasVotruba
e9cf6e1544
Add basic concat support to PregReplaceEModifierRector
2020-03-25 14:19:37 +01:00
TomasVotruba
9827f7ec07
refactoring
2020-03-25 13:50:03 +01:00
TomasVotruba
b113c38670
[PHP 5.5] Prevent error on non-string value in PregReplaceEModifierRector
2020-03-25 13:42:33 +01:00
TomasVotruba
6a0551f004
[DeadCode] Add RemoveUnusedFunctionRector
2020-03-25 12:50:51 +01:00
TomasVotruba
f5d8804c20
improve PhpVersionFeature autocomplete by PHPStorm
2020-03-24 23:49:19 +01:00
TomasVotruba
ff6a3d3140
[PHP 7.4] Add RestoreDefaultNullToNullableTypePropertyRector
2020-03-24 23:45:15 +01:00
TomasVotruba
d608507f2e
rename PHP sets to comply with standard
2020-03-24 23:44:42 +01:00
TomasVotruba
90044b30bc
[PHP 7.4] Add default null type on properties
2020-03-24 23:07:33 +01:00
TomasVotruba
35ef3a0217
[PHP 7.4] Add id tag support + remove default array on collection
2020-03-24 22:49:41 +01:00
TomasVotruba
aa9588f261
[PHP 7.4] Improve TypedProeprtyRector for Doctrine collection
2020-03-24 21:41:19 +01:00
Florian Dorn
f0aca87c6a
skip if not used with the array []
operator
2020-03-24 09:54:03 +01:00
TomasVotruba
070c41d7c9
fix union type on ReturnTypeDeclarationRector
2020-03-23 19:33:31 +01:00
TomasVotruba
eb88378488
improve chain method call resolutuin
2020-03-23 17:33:04 +01:00
TomasVotruba
0c3359e217
add variable to method call traverser
2020-03-23 17:16:10 +01:00