573 Commits

Author SHA1 Message Date
rector-bot
5ba7e4567d fixup! add class-rename to MoveInterfacesToContractNamespaceDirectoryRector 2020-06-16 21:58:38 +00:00
TomasVotruba
bcb0a642d5 add class-rename to MoveInterfacesToContractNamespaceDirectoryRector 2020-06-16 23:54:15 +02:00
TomasVotruba
7622326dba add self-rename test 2020-06-16 23:40:31 +02:00
TomasVotruba
a593afb017 [PHP 7.4] Add safe_types option 2020-06-16 22:34:52 +02:00
TomasVotruba
bede7b4971 add highlight 2020-06-16 17:52:39 +02:00
TomasVotruba
b5f0129c84 complete missing code samples 2020-06-16 16:20:17 +02:00
TomasVotruba
9922ba600b make Rector description required for dumping documentation 2020-06-16 13:47:57 +02:00
TomasVotruba
0af401c91a decouple ArrayPartPhpDocTagPrinterTrait 2020-06-16 11:37:43 +02:00
TomasVotruba
654d97c602 [Order] Add OrderClassConstantsByIntegerValueRector 2020-06-15 17:07:52 +02:00
TomasVotruba
b7ef016f7d [PHP 7.4] Make spready work only for integer keys 2020-06-15 15:35:54 +02:00
TomasVotruba
5b8bf939a6 skip encapsed string from constant extraction 2020-06-15 15:23:23 +02:00
TomasVotruba
d1e5990531 fix nested comment in nested foreach to if 2020-06-15 11:58:12 +02:00
Tomas Votruba
363483fe1f
Merge pull request #3503 from derrickschoen/EarlyContinueBugWhenThereIsACommentInsideIfStatement
I found a bug with the ChangeNestedForeachIfsToEarlyContinueRector
2020-06-15 11:56:02 +02:00
TomasVotruba
43da75f2e1 skip multi assign ChangeReadOnlyVariableWithDefaultValueToConstantRector 2020-06-15 11:18:24 +02:00
Tim Ward
9ef5dc3e26 Update rules/dead-code/tests/Rector/Property/RemoveNullPropertyInitializationRector/TypedPropertiesRemoveNullPropertyInitializationRectorTest.php
Require at least php 7.4

Co-authored-by: Tomas Votruba <tomas.vot@gmail.com>
2020-06-15 11:00:25 +02:00
Tim Ward
96cfe58a5b Create TypedPropertiesRemoveNullPropertyInitializationRectorTest.php 2020-06-15 11:00:25 +02:00
Tim Ward
f54fd18b98 Delete typed_properties.php.inc 2020-06-15 11:00:25 +02:00
Tim Ward
58aa6bf001 Move TypedPropertyClass
To its own fixture folder
2020-06-15 11:00:25 +02:00
Tim Ward
bc037a0002 Add new fixture to test new feature
Verifies that null isn't removed as a default value for properties that are typed to nullable.
2020-06-15 11:00:25 +02:00
Tim Ward
3bea6c8341 Don't remove null if the property is type hinted to nullable 2020-06-15 11:00:25 +02:00
kodiakhq[bot]
7329e4c25d
Merge pull request #3519 from rectorphp/filesytem-name
[Rector] Add UpdateFileNameByClassNameFileSystemRector
2020-06-14 22:54:41 +00:00
Tomas Votruba
39919f66a9
Merge pull request #3512 from UFTimmy/patch-2 2020-06-15 00:49:38 +02:00
TomasVotruba
ccc44f5b2e [Rector] Add UpdateFileNameByClassNameFileSystemRector 2020-06-15 00:48:40 +02:00
kodiakhq[bot]
1810e117c9
Merge pull request #3518 from rectorphp/replace-cleanup
Simplify ExplicitPhpErrorApiRector and remove replaceNode() use
2020-06-13 10:56:36 +00:00
TomasVotruba
407fb91e99 Simplify ExplicitPhpErrorApiRector 2020-06-13 12:45:38 +02:00
Tomas Votruba
e5e8955d66
Merge pull request #3487 from garas/cakephp-fluent-options 2020-06-12 16:26:53 +02:00
Edgaras Janušauskas
bfcf17c0fc Add ArrayToFluentCallRector 2020-06-12 15:09:24 +03:00
TomasVotruba
b5c5ae0f34 prevent exception on class duplicate rename, just skip 2020-06-11 18:22:28 +02:00
Tim Ward
199dc90679
Fix code style 2020-06-11 12:15:58 -04:00
Tim Ward
9e802ad8c4
Added fixture to test trait param type fix 2020-06-11 12:08:03 -04:00
Tim Ward
559216cb0a
Don't type hint to traits 2020-06-11 11:45:06 -04:00
TomasVotruba
2a7b506db3 add segfault prevention 2020-06-10 22:19:18 +02:00
TomasVotruba
e16559faf7 Fix AddDoesNotPerformAssertionToNonAssertingTestRector for mockery 2020-06-10 21:47:21 +02:00
TomasVotruba
2ad9dd97e4 skip non-existing method 2020-06-10 20:50:00 +02:00
TomasVotruba
c17b38aa43 [CodeQuality] Add ArrayThisCallToThisMethodCallRector 2020-06-10 20:35:59 +02:00
TomasVotruba
aff10cf014 [Autodiscovery] Do not nest already correct name 2020-06-10 19:59:15 +02:00
Derrick Schoen
91cec91778 I found a bug with the ChangeNestedForeachIfsToEarlyContinueRector
When there is a comment inside the if statement before the brace, it misses a brace creating the early continue statement.

https://getrector.org/demo/9757fa4a-ed15-4130-8bdc-ae150305360e
2020-06-09 17:31:39 -04:00
TomasVotruba
77dfc368d1 make sure pre-slashed is handled in prefixed 2020-06-09 11:59:41 +02:00
TomasVotruba
f47408af33 add array|RedirectResponse test to Template Rector 2020-06-09 11:55:12 +02:00
TomasVotruba
5fe6684891 replace annotation type 2020-06-08 23:47:56 +02:00
TomasVotruba
f29deb626f add compact support 2020-06-08 22:42:38 +02:00
TomasVotruba
90e09c1ca9 skip non-public method 2020-06-08 22:05:54 +02:00
kodiakhq[bot]
7124f074eb
Merge pull request #3492 from rectorphp/rename-property-read
Add support for rename of @property
2020-06-08 09:01:55 +00:00
TomasVotruba
f115fd6da6 Add support for rename of @property 2020-06-08 10:57:30 +02:00
TomasVotruba
0774576a86 [Restoratoin] Add RemoveUselessJustForSakeInterfaceRector 2020-06-08 10:30:56 +02:00
TomasVotruba
b98d937ffb fix child blocked property type 2020-06-07 17:08:11 +02:00
TomasVotruba
ff655f3360 add inject property test case 2020-06-07 16:44:16 +02:00
TomasVotruba
9016ebcfd9 add test case for nullable array in typed properties 2020-06-07 16:15:12 +02:00
TomasVotruba
2781a713cf fix skip non-class for nullable types 2020-06-07 13:47:37 +02:00
TomasVotruba
12e7e39b67 [PHP 7.4] Allow run typed properties on class-like types only 2020-06-07 13:08:18 +02:00