246 Commits

Author SHA1 Message Date
TomasVotruba
182da30324 [Phalcon] Add AddRequestToHandleMethodCallRector 2019-12-16 00:46:00 +01:00
TomasVotruba
9075363fef bump to PHPStan 0.12 2019-12-09 00:57:53 +01:00
TomasVotruba
ae073206d4 Add SwapClassMethodArgumentsRector 2019-12-08 11:10:26 +01:00
Jeroen Smit
15974ee857 Added check for correct delimiter to use in preg_quote 2019-12-07 08:27:57 +01:00
TomasVotruba
cad84c0acb Fix CompleteDynamicPropertiesRector to add parent property 2019-12-04 23:23:50 +01:00
TomasVotruba
5f523b5727 [PHPUnit][Symfony] Add jakzal-injetor Rector 2019-11-18 16:21:11 +01:00
TomasVotruba
a9cd107fb9 [PHP 8.0] Add Union Types 2019-11-17 02:05:07 +01:00
TomasVotruba
f18fb76dcb [CodeQuality] Fix ThrowWithPreviousExceptionRector for different exception location [closes #2303] 2019-11-11 14:09:20 +01:00
TomasVotruba
251efe73b8 improve stmt count check 2019-11-11 13:33:25 +01:00
TomasVotruba
0fbdcdd0b0 do not resolve name for method name or property fetch variable 2019-11-09 00:45:07 +01:00
TomasVotruba
79b1738529 cleanup 2019-11-09 00:14:18 +01:00
TomasVotruba
3fa0848731 [CodeQuality] Fix return type copy 2019-11-07 21:47:04 +01:00
Tomas Votruba
41b37a07ff fix false static type of Symfony\SplFileInfo getRealPath() 2019-11-06 20:51:58 +01:00
Tomas Votruba
05ec417a40 fix various PHP version yield provider 2019-11-05 19:25:57 +01:00
Tomas Votruba
8d57420bd6 use yieldFilesFromDirectory() in tests instead of explicid fixture naming 2019-11-05 18:02:26 +01:00
Tomas Votruba
e4bf0e923c add coding-style set + apply 2019-11-05 13:05:14 +01:00
Tomas Votruba
b3a6c0154a skip extra spaces in tests output 2019-11-05 11:16:30 +01:00
Tomas Votruba
a82ea5af5f fixup! Fix else in SimplifyForeachToArrayFilterRector 2019-11-04 18:25:55 +01:00
Tomas Votruba
b9759f321d Fix else in SimplifyForeachToArrayFilterRector 2019-11-04 18:23:19 +01:00
Tomas Votruba
38afd6a996 [CodeQuality] Fix SimplifyIfReturnBoolRector for nullable scalar value 2019-11-04 18:01:49 +01:00
Tomas Votruba
0f47fa2379 [CodeQuality] Add property assigns to RemoveAlwaysTrueConditionSetInConstructorRector 2019-11-04 17:13:38 +01:00
Jeroen Smit
c41737e3a2 Merge branch 'master' of github.com:rectorphp/rector into previousStatementRewrite 2019-11-01 15:55:46 +01:00
Tomas Votruba
18ac9a4514 fix dynamic property outside anonymous class scope 2019-10-30 22:25:07 +01:00
Tomas Votruba
cbe41dc497 apply 2019-10-30 21:46:36 +01:00
Tomas Votruba
40f998ca90 add test case for auto_import_names + Rector rule 2019-10-30 21:46:36 +01:00
Tomas Votruba
a6ccb11cd6 fix default value type 2019-10-30 18:41:33 +01:00
Tomas Votruba
7606da42be add failing test case 2019-10-30 15:45:47 +01:00
Tomas Votruba
1620cf0211 apply code-quality 2019-10-30 15:38:30 +01:00
Tomas Votruba
6f667830fd Fix JoinStringConcatRector for too long lines 2019-10-30 14:38:43 +01:00
Tomas Votruba
e57526e4e4 Fix RemoveAlwaysTrueConditionSetInConstructorRector for nullable 2019-10-30 14:20:18 +01:00
Tomas Votruba
8dc4336ce8 add SetOptinosResolver and ConfigResolver 2019-10-30 12:17:26 +01:00
Tomas Votruba
40c49710e9 [cs] reoder private methods by call order 2019-10-30 10:49:07 +01:00
Jeroen Smit
44db1271cb Merge branch 'master' of github.com:rectorphp/rector into previousStatementRewrite 2019-10-27 18:14:00 +01:00
Jeroen Smit
10391ae7f2 Rewrite of expression to previous statement 2019-10-27 17:50:26 +01:00
Tomas Votruba
55826c1432 add ternary operator 2019-10-26 12:41:01 +02:00
Tomas Votruba
f2298600aa apply 2019-10-18 16:17:12 +02:00
Tomas Votruba
e91e8ea2c1 [CodeQuality] Add ArrayMergeOfNonArraysToSimpleArrayRector 2019-10-18 16:05:59 +02:00
Tomas Votruba
495ace61c6 apply on self 2019-10-17 18:48:03 +02:00
Tomas Votruba
42e4454b48 [CodeQuality] Add AddPregQuoteDelimiterRector 2019-10-17 18:47:07 +02:00
lapetr
a5151baaec [code-quality] RemoveAlwaysTrueConditionSetInConstructorRector - test for trait
#2162
2019-10-15 10:25:00 +02:00
Tomas Votruba
acfd930f54 apply PSR-12 2019-10-13 08:09:08 +02:00
Tomas Votruba
4bfbc18fbd cleanup 2019-10-04 19:31:24 +02:00
Tomáš Votruba
b1891bb057
Do not apply SimplifyIfReturnBoolRector when there are comments… (#2083)
Do not apply SimplifyIfReturnBoolRector when there are comments in between the if statements
2019-10-04 16:38:21 +02:00
Dorian Villet
a599a374dd Change implementation to keep the comments and stack them. 2019-10-04 15:26:55 +02:00
Jonas Elfering
c751fbe533 Clearify recursion 2019-10-04 15:08:10 +02:00
Jonas Elfering
3f509a2dd4 Add not refactorable testCases; clearify recursion 2019-10-04 14:36:48 +02:00
Jonas Elfering
0196d1efee Add ShortenElseIfRector
Fixes https://github.com/rectorphp/rector/issues/1945
2019-10-04 14:18:31 +02:00
Tomas Votruba
f04a602d47 apply 2019-10-03 11:59:58 +02:00
Dorian Villet
bbfa7b9f76 Add a failing test case. 2019-10-03 01:15:18 +02:00
Tomas Votruba
0da741a9a3 drop @return type from Iterator in tests 2019-09-27 14:40:09 +02:00