4030 Commits

Author SHA1 Message Date
Tomas Votruba
036d7b9940 add support for false/true 2018-12-07 13:48:40 +01:00
Tomáš Votruba
7cd161b817
Merge pull request #819 from Soullivaneuh/doctrine-rename
Fix doctrine rule file name
2018-12-07 12:02:18 +01:00
Sullivan SENECHAL
35714c5df4
Fix doctrine rule file name 2018-12-07 11:46:01 +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
60716d8b5c load project source vendor/autoload.php in AdditionalAutoloader 2018-12-06 16:37:15 +01:00
Tomas Votruba
fe37d9290f exclude vendor in FilesFinder 2018-12-06 16:36:59 +01:00
Tomáš Votruba
c7ecb423da
Merge pull request #818 from rectorphp/symfony-42-process
Symfony 4.2 process change
2018-12-06 15:34:45 +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
Tomáš Votruba
0da7927469
Merge pull request #817 from rectorphp/fixtures
Rename old "wrong"/"correct" files to "fixtures"
2018-12-06 02:20:03 +01:00
Tomas Votruba
ef288d4045 [tests] rename test files to fixtures 2018-12-06 02:09:02 +01:00
Tomas Votruba
5d421585fd fix preg_match made array type [closes #786]
Signed-off-by: Tomas Votruba <tomas.vot@gmail.com>
2018-12-06 02:02:31 +01:00
Tomáš Votruba
231ac15879
Merge pull request #816 from rectorphp/php-in-array
fix preg_match-made array type
2018-12-06 01:58:16 +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
Tomáš Votruba
4640bdaeda
Merge pull request #815 from rectorphp/yaml-drop
remove YamlRector
2018-12-06 01:22:11 +01:00
Tomas Votruba
9eaa3185c1 update docs
Signed-off-by: Tomas Votruba <tomas.vot@gmail.com>
2018-12-06 01:13:36 +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
de83b97c8d fix PHPStormVarAnnotationRector namespace [closes #814]
Signed-off-by: Tomas Votruba <tomas.vot@gmail.com>
2018-12-05 18:35:34 +01:00
Tomas Votruba
7abdb842da drop too long examples
Signed-off-by: Tomas Votruba <tomas.vot@gmail.com>
2018-12-04 21:26:44 +01:00
Tomáš Votruba
f8e165bb9b
Merge pull request #810 from rectorphp/tests-3
Tests consolidation - part 3
2018-12-04 21:25:40 +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
e60a009cc2 make use of FileFinder in packages builder, remove duplicated source loading in AdditionalAutoloader
Signed-off-by: Tomas Votruba <tomas.vot@gmail.com>
2018-12-04 21:11:22 +01:00
Tomáš Votruba
d910c56f6f
Merge pull request #809 from rectorphp/tests-2
Tests consolidation - part 2
2018-12-04 16:51:45 +01:00
Tomas Votruba
54d13ece1d refactor with JoinWrongAndCorrectRector 2018-12-04 16:48:11 +01:00
Tomas Votruba
7ac6f10039 refactor /tests by JoinTestAndProvideFilesRector
Signed-off-by: Tomas Votruba <tomas.vot@gmail.com>
2018-12-04 15:34:40 +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
c7e537160a add JoinTestAndProvideFilesRector [examples]
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
3eeaaa7625 run test
Signed-off-by: Tomas Votruba <tomas.vot@gmail.com>
2018-12-04 14:15:39 +01:00
Tomáš Votruba
512055c431
Merge pull request #807 from rectorphp/tests
Tests - turn to less files with integration and less methods
2018-12-04 03:18:24 +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
14c6178f57 add SimplifyTestsRector
Signed-off-by: Tomas Votruba <tomas.vot@gmail.com>
2018-12-03 22:50:16 +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
Tomáš Votruba
e05ccbef70
Merge pull request #806 from rectorphp/compat-fix
Compat fix
2018-12-03 19:59:25 +01:00
Tomas Votruba
50eb735abd fix cs
Signed-off-by: Tomas Votruba <tomas.vot@gmail.com>
2018-12-03 19:35:45 +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
78a1e5a4e4 fix cs
Signed-off-by: Tomas Votruba <tomas.vot@gmail.com>
2018-12-03 19:14:34 +01:00
Tomáš Votruba
75281128dd
Merge pull request #805 from Soullivaneuh/dry-run-return-code
Return error code on diff with dry-run option
2018-12-03 16:31:16 +01:00
Sullivan SENECHAL
4762edde29
Return error code on diff with dry-run option 2018-12-03 15:39:51 +01:00
Sullivan SENECHAL
a970b0d7bb
Apply Rector process 2018-12-03 15:39:51 +01:00
Tomáš Votruba
7039ce87c6
Merge pull request #795 from rectorphp/php-70-typehints
[PHP] Add ParamAndReturnScalarTypehintsRector
v0.3.21
2018-12-01 16:05:31 +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