2542 Commits

Author SHA1 Message Date
Jeroen Smit
c41737e3a2 Merge branch 'master' of github.com:rectorphp/rector into previousStatementRewrite 2019-11-01 15:55:46 +01:00
Jeroen Smit
05de1ccd96 Fixed for statements in parentless node 2019-11-01 15:54:17 +01:00
Tomáš Votruba
5783fe4de6
Merge pull request #2223 from stedekay/without-base-class
Add AbstractController as base class if no one exists
2019-10-31 15:02:27 +01:00
Stefan Blanke
1b23cb059a Check if class has at least one template annotation 2019-10-31 10:00:45 +01:00
Tomas Votruba
099fdcc05b fix phpstan false positive 2019-10-30 23:33:11 +01:00
Tomas Votruba
ced5f813aa add dead-code set to CI, make NameResolver exception on method call more verbose 2019-10-30 23:33:11 +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
9b3cf927b1 fix virtual node 2019-10-30 21:46:36 +01:00
Tomas Votruba
617f2cd5d7 simplify isName() 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
Stefan Blanke
2ed8b1049e Add AbstractController as base class if no one exists 2019-10-30 17:04:28 +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
89f62fe98a use interface for AnnotationReader 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
Dave Liddament
d61d175178 FIX AddDoesNotPerformAssertionToNonAssertingTest
Fix bug where rector added @doesNotPerformAssertion when using
2019-10-29 16:18:13 +00:00
Jeroen Smit
d9d2af5058 Rename variables 2019-10-27 18:40:59 +01:00
Jeroen Smit
752625af68 PHPStan and CS 2019-10-27 18:34:31 +01:00
Jeroen Smit
1daf62af25 Fixes after merging master
Fix for false positive while
2019-10-27 18:25:04 +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
3295debab3 Added extra test 2019-10-27 18:11:58 +01:00
Jeroen Smit
10391ae7f2 Rewrite of expression to previous statement 2019-10-27 17:50:26 +01:00
Tomas Votruba
848c43dc6d [PHPUnit] Add WithConsecutiveArgToArrayRector 2019-10-27 14:29:28 +01:00
Tomas Votruba
55826c1432 add ternary operator 2019-10-26 12:41:01 +02:00
Tomas Votruba
340e38e5f6 optimize AssertComparisonToSpecificMethodRector 2019-10-26 12:14:39 +02:00
Tomas Votruba
07413334f7 optimize ConsoleExecuteReturnIntRector 2019-10-26 12:11:49 +02:00
Jonas Elfering
8e19132c7b Fix ConsoleExecuteReturnIntRector if target class not directly extends Command
Fixes: https://github.com/rectorphp/rector/pull/2200#issuecomment-546327783
2019-10-25 14:45:54 +02:00
Jonas Elfering
cb3ef10aef Fix ConsoleExecuteReturnIntRector for non console commands
Fixes: https://github.com/rectorphp/rector/pull/2197
2019-10-25 12:39:01 +02:00
Fran Moreno
a4099eb99b Add test to ConsoleExecuteReturnIntRector for a not command class 2019-10-25 10:53:33 +02:00
Tomas Votruba
99d30f3f17 fix locatoin 2019-10-24 11:56:55 +02:00
Tomas Votruba
8d1b732d0f use ->name on method call 2019-10-24 11:54:47 +02:00
Tomas Votruba
8c4a7ce958 Add MethodCallToReturnRector 2019-10-24 11:14:07 +02:00
Tomas Votruba
4dfd0a6331 [PHP 74] Add ChangeReflectionTypeToStringToGetNameRector 2019-10-24 01:49:34 +02:00
Tomas Votruba
de875ab00d fix for Template and Route annotatoin 2019-10-24 00:36:34 +02:00
Tomáš Votruba
da47c3145f
fix union too many types (#2193)
fix union too many types
2019-10-24 00:18:58 +02:00
Tomas Votruba
1ea9bd1fe6 fix union too many types 2019-10-24 00:10:28 +02:00
Tomáš Votruba
f9618a499e
Merge pull request #2192 from stedekay/with-route-options
Add test case for route annotation with optional parameters
2019-10-23 16:21:03 +02:00
Stefan Blanke
9edff1852a Add test case for route annotation with optional parameters 2019-10-23 14:30:23 +02:00
Tomas Votruba
ccac8ab13e prevent mixed of specific override 2019-10-23 14:26:48 +02:00
Tomas Votruba
d308da40b7 skip closure override 2019-10-23 14:08:36 +02:00
Tomas Votruba
813b78925a make sure commander has right current file info after the run 2019-10-23 14:08:36 +02:00
Tomas Votruba
c7e9d4d549 fix importing of freshly added node 2019-10-23 14:08:36 +02:00
Tomas Votruba
5a690b03b3 skip to many types in array Typedeclaration 2019-10-23 13:12:31 +02:00
Sebastian Schreiber
2f230f0a4a
[FEATURE] Possibility to add custom phpstan.neon configuration 2019-10-19 20:20:07 +02:00
Sebastian Schreiber
1c9a51b8d9
[FEATURE] Possibility to add custom phpstan.neon configuration 2019-10-19 19:53:56 +02:00