2569 Commits

Author SHA1 Message Date
Tomas Votruba
19ae2e99ca set auto_import_names to true 2019-11-05 10:25:16 +01:00
Tomas Votruba
0bb23e888b fix standalone run to symfony demo 2019-11-05 10:15:50 +01:00
Tomas Votruba
bf42f8e9af fix cs 2019-11-05 00:18:50 +01:00
Tomáš Votruba
6968f8172a
Merge pull request #2250 from jeroensmit/removeDeadStmtRector
Fixed edge cases of RemoveDeadStmtRector
2019-11-04 23:48:35 +01:00
Tomáš Votruba
1c54fa9dd0
Merge pull request #2247 from jeroensmit/RemoveSetterOnlyPropertyAndMethodCallRectorFixes
Fixed removal of non expressions
2019-11-04 23:44:26 +01:00
Tomáš Votruba
b4e6ca997e
Better anonymous class handling (#2239)
Better anonymous class handling
2019-11-04 23:38:54 +01:00
Jeroen Smit
de8334e8a3 Fixed edge cases of RemoveDeadStmtRector
Covered all nodes that could be considered dead statement
2019-11-04 21:57:49 +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
ba60952477 Fixed removal of non expressions
Fixed issue with property fetches
2019-11-04 07:15:18 +01:00
Tomas Votruba
056833adff add template nested 2019-11-03 22:30:02 +01:00
Jeroen Smit
da8878bbf6 Better anonymous class handling
Added test for nodeVisitors
2019-11-03 21:49:08 +01:00
Tomas Votruba
c8f4c31cab keep comment on type change 2019-11-03 16:09:35 +01:00
Tomas Votruba
6927f30f99 [TypeDeclaration] Fix CompleteVarDocTypePropertyRector for mixed[] override 2019-11-03 15:42:07 +01:00
Tomas Votruba
60c9fb1663 fix importing parent that is identical in short to class name 2019-11-02 19:39:19 +01:00
Tomas Votruba
e4be4c3ebe add test case for #2226 2019-11-02 19:39:19 +01:00
Tomas Votruba
564e9d418a add array dim fetch property unpacking 2019-11-02 19:28:20 +01:00
Tomas Votruba
bf16bfe341 decouple removeClassInnerAssigns() 2019-11-02 19:28:20 +01:00
Tomas Votruba
78eee33a6a decouple method 2019-11-02 19:28:20 +01:00
Jeroen Smit
b7a1f130b5 Added typehint 2019-11-02 17:06:28 +01:00
Jeroen Smit
ea5fac3b87 Ran fix-cs 2019-11-02 17:06:28 +01:00
Jeroen Smit
4b38e85de3 Fixed self referencing assignments 2019-11-02 17:06:28 +01:00
Jeroen Smit
a83ec4aeea Also remove assignment if the value of the assignment is different 2019-11-02 17:05:10 +01:00
Jeroen Smit
730aec6880 Rector on self 2019-11-01 16:11:59 +01:00
Jeroen Smit
0ec9ee0f3c Fix after merging master 2019-11-01 15:58:47 +01:00
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