3952 Commits

Author SHA1 Message Date
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
Tomáš Votruba
a2c213f9e2
Merge pull request #804 from rectorphp/namespace-config
Make PseudoNamespaceToNamespaceRector config consistent with rest of Rectors
2018-12-01 13:21:54 +01:00
Tomas Votruba
296d3a32e4 Make PseudoNamespaceToNamespaceRector config consistent with rest of Rectors [closes #781]
Signed-off-by: Tomas Votruba <tomas.vot@gmail.com>
2018-12-01 13:15:17 +01:00
Tomáš Votruba
d37af20060
Merge pull request #803 from rectorphp/ecs-optional
make ECS optional dependency to reduce amount of installed packages
2018-11-30 18:15:58 +01:00
Tomas Votruba
24bc48f213 composer: require package-versions to prevent fail install
Signed-off-by: Tomas Votruba <tomas.vot@gmail.com>
2018-11-30 17:46:40 +01:00
Tomas Votruba
abbbca3e06 fix Symfony 4.2 process compat
Signed-off-by: Tomas Votruba <tomas.vot@gmail.com>
2018-11-30 17:46:40 +01:00
Tomas Votruba
26253a0872 make ECS optional dependency to reduce amount of installed packages and allow own cs tools
Signed-off-by: Tomas Votruba <tomas.vot@gmail.com>
2018-11-30 17:46:40 +01:00
Tomáš Votruba
8696ef2c62
Merge pull request #796 from funivan/patch-1
fix typo
2018-11-29 11:16:07 +01:00
Ivan
1878b8c2a8
fix typo 2018-11-29 11:51:17 +02:00
Tomáš Votruba
351e6d2ad5
Merge pull request #793 from rectorphp/php73
travis: test PHP 7.3
2018-11-28 17:18:14 +01:00
Tomas Votruba
63536b48c2 travis: test PHP 7.3
Signed-off-by: Tomas Votruba <tomas.vot@gmail.com>
2018-11-28 17:07:27 +01:00
Tomáš Votruba
8af8f12e49
Merge pull request #790 from buffcode/issue-789
ExceptionHandlerTypehintRector fails on nullable parameters
2018-11-22 17:42:28 +01:00
Laurens Stötzel
c9df6145d4 ExceptionHandlerTypehintRector fails on nullable parameters
Fixes #789
2018-11-22 16:38:20 +01:00
Tomáš Votruba
ae37c40e37
Merge pull request #788 from rectorphp/phpunit/iterator-count
[PHPUnit] Convert iterator_count into assertCount
2018-11-18 17:17:09 +01:00
Gabriel Caruso
3ba2759970
[PHPUnit] Convert iterator_count into assertCount 2018-11-18 13:19:15 -02:00
Tomáš Votruba
908044bff0
Merge pull request #787 from rectorphp/phpstorm-doc-fixer
[PHPStan] Add Phpstorm doc fixer
2018-11-17 11:16:48 +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
Tomáš Votruba
ad582c7066
Merge pull request #782 from rectorphp/docs
Update Docs
2018-11-11 14:18:20 +01:00
Tomas Votruba
15bafc3d36 docs: update How to create own Rector tutorial 2018-11-11 14:09:58 +01:00
Tomas Votruba
0abecd8087 use short config in code samples + update Rector overview 2018-11-11 14:09:49 +01:00
Tomáš Votruba
9eb3057bc0
Merge pull request #780 from rectorphp/shorten-null-compare
null compare over boolcast in SimplifyIfReturnBoolRector
v0.3.20
2018-11-10 00:33:31 +01:00
Tomas Votruba
5778103f21 null compare over boolcast in SimplifyIfReturnBoolRector 2018-11-10 00:16:25 +01:00
Tomas Votruba
169f160efd move SimplifyEmptyArrayCheckRector to BooleanAnd category 2018-11-10 00:16:25 +01:00
Tomáš Votruba
bad7cc3815
Merge pull request #779 from rectorphp/is-empty
fix SimplifyEmptyArrayCheckRector for not empty non-arrays
2018-11-09 23:47:40 +01:00
Tomas Votruba
09e949f76e make use of matchFirstAndSecondConditionNode Node type 2018-11-09 23:31:45 +01:00
Tomas Votruba
3ecf8172ed validate condition in BinaryOpMaintainer 2018-11-09 23:25:05 +01:00