2579 Commits

Author SHA1 Message Date
Tomas Votruba
c227752552 fix negation of scalar in IdenticalFalseToBooleanNotRector 2019-11-05 13:35:05 +01:00
Tomas Votruba
46f479e818 fix nullable for scalar to null 2019-11-05 13:35:05 +01:00
Tomas Votruba
04e0de2429 fix implode of string/string 2019-11-05 13:35:04 +01:00
Tomas Votruba
e4bf0e923c add coding-style set + apply 2019-11-05 13:05:14 +01:00
Tomas Votruba
eef3489d43 cover PregFunctionToNetteUtilsStringsRector to identical 2019-11-05 12:36:42 +01:00
Tomas Votruba
2fe6f20ea5 use Nette\Utils 2019-11-05 12:27:18 +01:00
Tomas Votruba
56d9059357 use Fixture name constantly 2019-11-05 11:29:20 +01:00
Tomas Votruba
0c455e4ae1 remove strlen() from Nette\Utils\String strict method 2019-11-05 11:25:43 +01:00
Tomas Votruba
b3a6c0154a skip extra spaces in tests output 2019-11-05 11:16:30 +01:00
Tomas Votruba
62dae06ab4 remove function name attribute, not used 2019-11-05 11:16:30 +01:00
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