102 Commits

Author SHA1 Message Date
Tomas Votruba
baabc5937e add trait in child class support to ScalarTypehintRector 2018-12-08 21:59:56 +01:00
Tomas Votruba
5df19a36e3 correct support for applied rectors 2018-12-08 16:04:27 +01:00
Tomas Votruba
d8d76d72b4 move FilesToReprtingCollector to new cycle in RectorApplication 2018-12-08 15:33:38 +01:00
Tomas Votruba
a6d2d52eac temporary changes of AppliedRectorsCollector and re-runners 2018-12-08 13:30:32 +01:00
Tomas Votruba
fd9d66110f extend tests 2018-12-08 00:37:48 +01:00
Tomas Votruba
2a00f0d51b rename Wrong ns to Fixture in tests 2018-12-07 21:51:59 +01:00
Tomas Votruba
47ad07d4b0 improve child type resolving with nullable and different namespace 2018-12-07 21:22:11 +01:00
Tomas Votruba
43874f6aa7 merge IntegrationRectorTestCaseTrait to Abstract test case 2018-12-07 20:47:55 +01:00
Tomas Votruba
a00ae17ab9 cleanup 2018-12-07 19:09:09 +01:00
Tomas Votruba
86ed54d316 add findClassesAndInterfacesByType() 2018-12-07 19:06:27 +01:00
Tomas Votruba
d60e21c0a0 add support for override of already checked file 2018-12-07 19:01:51 +01:00
Tomas Votruba
cc2d9b7c73 prevent override of parent missing param 2018-12-07 19:01:51 +01:00
Tomas Votruba
19f4478f74 update Integration to Fixture namespace in tests 2018-12-07 13:48:40 +01:00
Tomas Votruba
036d7b9940 add support for false/true 2018-12-07 13:48:40 +01:00
Tomas Votruba
cf5129c10b add return support 2018-12-06 17:35:29 +01:00
Tomas Votruba
f52cc58dae add check for interface vendor-lock-in in AbstractScalarTypehintRector 2018-12-06 17:00:53 +01:00
Tomas Votruba
ef288d4045 [tests] rename test files to fixtures 2018-12-06 02:09:02 +01:00
Tomas Votruba
9475576257 fix preg_match made array type [closes #786]
Signed-off-by: Tomas Votruba <tomas.vot@gmail.com>
2018-12-06 01:48:53 +01:00
Tomas Votruba
689555219f apply ConfiguredProvideConfigRector
Signed-off-by: Tomas Votruba <tomas.vot@gmail.com>
2018-12-04 21:17:06 +01:00
Tomas Votruba
54d13ece1d refactor with JoinWrongAndCorrectRector 2018-12-04 16:48:11 +01:00
Tomas Votruba
8dba0bd34f refactor /packages by JoinTestAndProvideFilesRector
Signed-off-by: Tomas Votruba <tomas.vot@gmail.com>
2018-12-04 15:34:40 +01:00
Tomas Votruba
3e74cf4c85 tests cleanup
Signed-off-by: Tomas Votruba <tomas.vot@gmail.com>
2018-12-04 15:34:40 +01:00
Tomas Votruba
3420edeae3 add JoinWrongAndCorrectTestsRector
Signed-off-by: Tomas Votruba <tomas.vot@gmail.com>
2018-12-04 03:10:15 +01:00
Tomas Votruba
7c6a8be85e simlify tests by SimplifyTestsRector
Signed-off-by: Tomas Votruba <tomas.vot@gmail.com>
2018-12-03 22:53:11 +01:00
Tomas Votruba
14580c07e7 add old way to IntegrationRectorTestCaseTrait
Signed-off-by: Tomas Votruba <tomas.vot@gmail.com>
2018-12-03 22:50:16 +01:00
Tomas Votruba
beccd42e42 use integration tests
Signed-off-by: Tomas Votruba <tomas.vot@gmail.com>
2018-12-03 21:13:43 +01:00
Tomas Votruba
14d9b9a3aa remove unused traits
Signed-off-by: Tomas Votruba <tomas.vot@gmail.com>
2018-12-03 21:00:41 +01:00
Tomas Votruba
ac909ace06 CountOnNullRectorTest - change to integration
Signed-off-by: Tomas Votruba <tomas.vot@gmail.com>
2018-12-03 20:57:37 +01:00
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