1315 Commits

Author SHA1 Message Date
Tomas Votruba
45248dee04 Add AssertEqualsParameterToSpecificMethodsTypeRector 2018-12-11 13:02:28 +01:00
Tomas Votruba
ba3d0707e6 remove unused configs 2018-12-10 16:40:09 +01:00
Tomas Votruba
a59e35678c Add SpecificAssertInternalTypeRector 2018-12-10 16:01:14 +01:00
Tomas Votruba
e1a386054b [PHPUnit] Add SpecificAssertContainsRector 2018-12-10 16:01:14 +01:00
Tomas Votruba
eabfadc2bb update CreateRectorCommand with fixture approach 2018-12-09 22:20:09 +01:00
Tomas Votruba
26c190bdb4 add mixed and variadic cases to *ScalarTypehintRector 2018-12-09 15:26:26 +01:00
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
e6e8da3747 ErrorAndDiffCollector cleanup 2018-12-08 15:41:55 +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
284f732ac8 move diffs to ErrorCollector 2018-12-08 13:01:08 +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
880b74cf46 Resolve sprintf pre-assign case for StringToArrayArgumentProcessRector 2018-12-06 15:26:42 +01:00
Tomas Votruba
837606ab50 add assertNot* cases to AssertTrueFalseToSpecificMethodRector 2018-12-06 02:30:36 +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
68b7076fd0 remove YamlRector
Signed-off-by: Tomas Votruba <tomas.vot@gmail.com>
2018-12-06 01:13:36 +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
1450f0af45 Update Sensio tests
Signed-off-by: Tomas Votruba <tomas.vot@gmail.com>
2018-12-04 21:11:22 +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
bef084c11c drop manual rebuilds, fast enough
Signed-off-by: Tomas Votruba <tomas.vot@gmail.com>
2018-12-03 21:19:21 +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
Gabriel Caruso
3ba2759970
[PHPUnit] Convert iterator_count into assertCount 2018-11-18 13:19:15 -02:00
Tomas Votruba
e0a399eefc [PHPStan] Add PHPStormVarAnnotationRector 2018-11-17 01:20:21 +02:00
Tomáš Votruba
6a94b8c274
Merge pull request #778 from bendavies/JmsInjectAnnotationRector-improve
impove JmsInjectAnnotationRector
2018-11-15 14:26:12 +02:00
Ben Davies
7cbe2a3620 add support for class names as service ids 2018-11-13 10:20:31 +00:00
Ben Davies
f677c0036a make nodes public after removing property injection 2018-11-13 10:08:23 +00:00