538 Commits

Author SHA1 Message Date
TomasVotruba
14a72f15d8 remove MoveAndRenameNamespaceRector, not tested and not working, prefer class rename 2020-06-18 22:34:25 +02:00
TomasVotruba
a518f9c264 decouple arrow_function fixture 2020-06-18 21:30:14 +02:00
TomasVotruba
fca3eaed8b cleanup 2020-06-18 21:10:41 +02:00
TomasVotruba
48bbc835b1 add TokensByFilePathStorage 2020-06-18 21:10:41 +02:00
Felix Sokoliuk
08ea68d443 handle arrow function
* do not try to set variables in arrow functions
* consider that arrow functions inherit the parent scope
2020-06-18 20:13:34 +02:00
TomasVotruba
daaf2143d8 skip already correct group 2020-06-18 17:42:43 +02:00
TomasVotruba
7a85d8596e covers @return doc too 2020-06-18 17:29:42 +02:00
TomasVotruba
dc36f0f469 skip Form factories too 2020-06-18 16:56:16 +02:00
TomasVotruba
4f1cd06c7e add class-rename to MoveServicesBySuffixToDirectoryRector 2020-06-18 16:09:24 +02:00
TomasVotruba
5adc8cc782 [Autodiscovery] Skip control factory in interface split 2020-06-18 12:50:16 +02:00
TomasVotruba
de0dbc6876 add BreakingREmovalGuard, CommentableNodeResolver, and @fixme to un-removable nodes in ini_get/ini_set 2020-06-18 12:07:26 +02:00
TomasVotruba
03cf74ce31 add static call check 2020-06-18 01:12:19 +02:00
TomasVotruba
54cf6f02d7 [README] Add Zenika sponsor 2020-06-17 14:55:09 +02:00
TomasVotruba
3744649dd9 [PHP 7.2] Add ReplaceEachAssignmentWithKeyCurrentRector 2020-06-17 14:23:12 +02:00
rector-bot
238ecb319e fixup! fixup! add class-rename to MoveInterfacesToContractNamespaceDirectoryRector 2020-06-16 21:59:31 +00:00
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