74 Commits

Author SHA1 Message Date
Tomas Votruba
73466ac247 rename test files method to provideFiles()
Signed-off-by: Tomas Votruba <tomas.vot@gmail.com>
2018-12-03 20:13:46 +01:00
Tomas Votruba
c16e48974c resolve anonymous assert name phpstan vs php-parser incompatbility
Signed-off-by: Tomas Votruba <tomas.vot@gmail.com>
2018-12-03 19:35:45 +01:00
Tomas Votruba
9faa7fbd4b [PHP] Add *ScalarTypehintRector + *TypeInfo
Signed-off-by: Tomas Votruba <tomas.vot@gmail.com>
2018-12-01 15:55:46 +01:00
Laurens Stötzel
c9df6145d4 ExceptionHandlerTypehintRector fails on nullable parameters
Fixes #789
2018-11-22 16:38:20 +01:00
Tomas Votruba
0abecd8087 use short config in code samples + update Rector overview 2018-11-11 14:09:49 +01:00
Tomas Votruba
09e949f76e make use of matchFirstAndSecondConditionNode Node type 2018-11-09 23:31:45 +01:00
Tomas Votruba
9eacf38b3b resolve only types with scope 2018-11-09 19:32:50 +01:00
Tomas Votruba
36dc29b56d merge Utils package to PhpParser 2018-11-08 13:04:38 +01:00
Tomas Votruba
efc39b394d Add NodeAddingCommander 2018-11-07 21:58:41 +01:00
Tomas Votruba
b62c31bcad Add NodeRemovingCommander 2018-11-07 21:30:55 +01:00
Tomas Votruba
9283ac30bf make use of AssignAndBinaryMap 2018-11-07 19:59:22 +01:00
Tomas Votruba
71824ab33c make use of BinaryOpMaintainer 2018-11-07 19:49:13 +01:00
Tomas Votruba
aaf409eed2 move php-parser related code under PhpParser namespace, add Maintainer type for services reading/writing to nodes 2018-11-04 02:17:02 +01:00
Tomas Votruba
d71d6a1f12 make use of NodeFactoryTrait 2018-11-03 21:53:08 +01:00
Tomas Votruba
c3558f65c4 [CodingStyle] Add NullableCompareToNullRector + add NodeFactoryTrait + cleanup 2018-11-03 18:01:19 +01:00
Tomas Votruba
c0222a9398 Improve CountOnNullRector 2018-11-03 00:06:56 +01:00
Tomas Votruba
86140cf9ed Fix CountOnNullRector for array typehint 2018-11-02 17:32:33 +01:00
Tomas Votruba
6b8a9acdf2 [PHP] Fix AssignArrayToStringRector [closes #743] 2018-11-02 17:04:49 +01:00
Tomas Votruba
d6d365e0cf add createConstFetch 2018-10-31 23:12:46 +01:00
Tomas Votruba
6375c12b14 make use of helper method of AbstractRector 2018-10-31 23:10:39 +01:00
Tomas Votruba
b9dd90266a make use of helper method of AbstractRector 2018-10-31 22:15:41 +01:00
Tomas Votruba
218366f762 [cs] apply private method order 2018-10-31 16:35:15 +01:00
Tomas Votruba
05e5df7406 [cs] apply property sort 2018-10-31 16:35:15 +01:00
Tomas Votruba
d825640717 add test case for #743 2018-10-30 19:13:39 +01:00
Tomas Votruba
fa46fb5dfe apply SimplifyIfReturnBoolRector on Rector code 2018-10-27 14:57:53 +02:00
Tomas Votruba
2125e24e1f normalize printer to keep 1 single line in the end + apply to code 2018-10-27 14:57:53 +02:00
Tomas Votruba
c37330db6a add isNameInsensitive 2018-10-22 19:40:27 +02:00
Tomas Votruba
7f582d37d4 Add RemovingTrait, RemovingNodeVisitor and RemovedNodesCollector 2018-10-22 18:28:36 +02:00
Tomas Votruba
09027d06eb resolve phpstan reports 2018-10-22 18:02:36 +02:00
Tomas Votruba
f330c5e9c2 make return null consistent on no change 2018-10-21 13:06:28 +02:00
Tomas Votruba
e0a368524e make tests produce not messy output 2018-10-19 14:52:25 +02:00
Tomas Votruba
87a5a1b824 big question 2018-10-17 19:47:09 +02:00
Tomas Votruba
e0aa23a47a fix namespaces of BarewordStringREctor and SensistiveHereNowDocRector 2018-10-17 19:47:09 +02:00
Tomas Votruba
0de721e350 AbstractRector: change returnNode property to method to make remove process more intuitive 2018-10-17 19:47:09 +02:00
Tomas Votruba
1e28eb853b merge NodeTypeAnalyzer to TypeAnalyzerTrait 2018-10-17 12:24:00 +02:00
Tomas Votruba
6daa618ab3 [PHP] Add TrailingCommaArgumentsRector 2018-10-17 10:29:27 +02:00
Tomas Votruba
4faa1425c8 [PHP] Add BarewordStringRector 2018-10-17 10:16:32 +02:00
Tomas Votruba
bdc72fe7be [PHP] Add JsonThrowOnErrorRector 2018-10-17 10:13:04 +02:00
Tomas Votruba
379ea93553 [PHP] Add StringifyStrNeedlesRector 2018-10-17 10:12:06 +02:00
Tomas Votruba
3bddc84827 add source [skip ci] 2018-10-17 09:54:48 +02:00
Tomas Votruba
a9cb8ece58 add mbereg → mb_ereg function renames 2018-10-17 09:53:42 +02:00
Tomas Votruba
5de35b9706 [PHP] Add SensitiveHereNowDocRector 2018-10-17 09:53:42 +02:00
Tomas Votruba
e2d68961f6 [PHP] Add UnsetCastRector 2018-10-17 09:47:47 +02:00
Tomas Votruba
e731e46541 restor 3rd party comparison strict, might be relevant 2018-10-15 21:52:08 +08:00
Tomas Votruba
ba0c3eea95 apply this Rector to code 2018-10-15 21:49:45 +08:00
Tomas Votruba
da570b7205 make use of BetterStandardPrinterTrait in Rectors 2018-10-15 18:09:27 +08:00
Tomas Votruba
6c752f5128 Add NameResolver, to cover functionality of naming 2018-10-15 16:46:15 +08:00
Tomas Votruba
5933cca87d remove callAnalyzer form Rectors 2018-10-15 14:45:34 +08:00
Tomas Votruba
5deb94f9ff unite refactor(node) naming to node, to make clear the main argument name 2018-10-15 14:45:34 +08:00
Tomas Votruba
f0fdc8e410 remove unused methods 2018-10-15 14:36:25 +08:00