2643 Commits

Author SHA1 Message Date
TomasVotruba
59858869ef fix double import of functio names 2019-11-08 14:40:47 +01:00
TomasVotruba
81954f8f66 [CodingStyle] Fix extra new-line for EncapsedString 2019-11-08 01:09:55 +01:00
TomasVotruba
3fa0848731 [CodeQuality] Fix return type copy 2019-11-07 21:47:04 +01:00
Tomas Votruba
07de966af4 fix no-regular naming 2019-11-06 22:43:49 +01:00
Dorian Villet
1c8106c3a2 Add a working and a failing test case. 2019-11-06 22:12:26 +01:00
Tomas Votruba
41b37a07ff fix false static type of Symfony\SplFileInfo getRealPath() 2019-11-06 20:51:58 +01:00
Stefan Blanke
8baa292c10 Resolve conflicts 2019-11-06 10:30:23 +01:00
Stefan Blanke
f64575ab95 Remove unecessary conditions 2019-11-06 10:27:54 +01:00
Tomas Votruba
f6c92c97b4 Fix StaticTypeMapper for nullables 2019-11-05 23:53:39 +01:00
Tomas Votruba
69c35ae9f2 add test case to PregReplaceEModifierRector 2019-11-05 23:07:39 +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
Stefan Blanke
5a5f5829aa Merge remote-tracking branch 'upstream/master' into update-return-types 2019-11-05 13:52:42 +01:00
Stefan Blanke
2e5f23ca11 Update return types when set to array 2019-11-05 13:52:05 +01:00
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