6474 Commits

Author SHA1 Message Date
Tomáš Votruba
b4e6ca997e
Better anonymous class handling (#2239)
Better anonymous class handling
2019-11-04 23:38:54 +01:00
Tomáš Votruba
3b6b06daeb
[CodeQuality] Fix else in SimplifyForeachToArrayFilterRector (#2249)
[CodeQuality] Fix else in SimplifyForeachToArrayFilterRector
2019-11-04 18:27:38 +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
Tomáš Votruba
3ff795177b
[CodeQuality] Add property assigns to RemoveAlwaysTrueCondition… (#2246)
[CodeQuality] Add property assigns to RemoveAlwaysTrueConditionSetInConstructorRector
2019-11-04 18:06:48 +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
Tomáš Votruba
cd304acb02
Merge pull request #2248 from rectorphp/phpunit50
decouple phpunit 50 set
2019-11-04 14:01:21 +01:00
Tomas Votruba
201693e441 decouple phpunit 50 set 2019-11-04 13:42:21 +01:00
Tomáš Votruba
6fba51ea46
add template nested (#2240)
add template nested
2019-11-03 22:39:29 +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
Tomáš Votruba
42ad1e1517
infer php version from composer.json (#2238)
infer php version from composer.json
2019-11-03 16:35:46 +01:00
Tomas Votruba
e699984b6d infer php version from composer.json 2019-11-03 16:28:24 +01:00
Tomáš Votruba
d7f103c5c6
keep comment on type change (#2237)
keep comment on type change
2019-11-03 16:17:10 +01:00
Tomas Votruba
c8f4c31cab keep comment on type change 2019-11-03 16:09:35 +01:00
Tomáš Votruba
79a0069ee9
[TypeDeclaration] Fix CompleteVarDocTypePropertyRector for mixe… (#2236)
[TypeDeclaration] Fix CompleteVarDocTypePropertyRector for mixed[] override
2019-11-03 15:46:16 +01:00
Tomas Votruba
6927f30f99 [TypeDeclaration] Fix CompleteVarDocTypePropertyRector for mixed[] override 2019-11-03 15:42:07 +01:00
Tomáš Votruba
b1ac797da0
Merge pull request #2235 from rectorphp/fix-import-parent
Fix importing parent that is identical in short to class name
2019-11-02 19:53:15 +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
Tomáš Votruba
492c0bab4c
Decouple PropertyFetchManipulator methods for array dim fetch (#2234)
Decouple PropertyFetchManipulator methods for array dim fetch
2019-11-02 19:34:06 +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
Tomas Votruba
4ff26079dd move hasPropertyFetchAsProperty() to PropertyFetchManipulator to keep tree service hierarchy 2019-11-02 19:27:35 +01:00
Tomáš Votruba
ef7943d8a0
Merge pull request #2233 from jeroensmit/DoubleAssignmentDifferentValue
Also remove assignment if the value of the assignment is different
2019-11-02 19:21:01 +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
Tomáš Votruba
cd4f5085a3
Previous statement rewrite (#2207)
Previous statement rewrite
2019-11-01 22:24:34 +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
606f67d930
Merge pull request #2231 from rectorphp/screen-highlight
make screen generate file by default
2019-11-01 14:24:59 +01:00
Tomas Votruba
212511c5cd make screen generate file by default 2019-11-01 12:40:33 +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
afcdae4c45 fix cs v0.5.20 2019-10-31 07:52:51 +01:00
Tomáš Votruba
f78b52d924
Merge pull request #2224 from rectorphp/enable-dead-code
add dead-code set to CI
2019-10-31 01:09:32 +01:00
Tomas Votruba
46948a4fe7 fix xdebug option 2019-10-31 00:24:37 +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
Tomáš Votruba
24829f2036
Enable code quality set (#2222)
Enable code quality set
2019-10-30 22:42:02 +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