8997 Commits

Author SHA1 Message Date
TomasVotruba
654d97c602 [Order] Add OrderClassConstantsByIntegerValueRector 2020-06-15 17:07:52 +02:00
kodiakhq[bot]
375f30db22
Merge pull request #3526 from rectorphp/callable-array
Fix for array of callable print in phpdoc
2020-06-15 14:24:15 +00:00
TomasVotruba
b4c88a04a7 remove spaces after quote, as convention 2020-06-15 16:19:55 +02:00
TomasVotruba
9135bff8eb add brackets in case of array of callables in php doc 2020-06-15 16:19:01 +02:00
TomasVotruba
508954fc74 add test case for array/callable 2020-06-15 16:11:34 +02:00
kodiakhq[bot]
5d4c004dae
Merge pull request #3525 from rectorphp/fix-spready-int-only
[PHP 7.4] Make array spread work only for integer keys
2020-06-15 13:40:16 +00:00
TomasVotruba
b7ef016f7d [PHP 7.4] Make spready work only for integer keys 2020-06-15 15:35:54 +02:00
kodiakhq[bot]
b001b36590
Merge pull request #3524 from rectorphp/repeated-expr
skip encapsed string from constant extraction
2020-06-15 13:27:31 +00:00
TomasVotruba
5b8bf939a6 skip encapsed string from constant extraction 2020-06-15 15:23:23 +02:00
kodiakhq[bot]
e9ebf725d4
Merge pull request #3523 from rectorphp/nullable
add NullableTypeMapper
2020-06-15 13:20:42 +00:00
TomasVotruba
9335397123 add NullableTypeMapper 2020-06-15 15:16:05 +02:00
kodiakhq[bot]
5938f63c00
Merge pull request #3522 from rectorphp/fix-template-tag
fix @template tag preposition
2020-06-15 10:29:33 +00:00
TomasVotruba
26b00c7b13 fix of/as 2020-06-15 12:25:37 +02:00
TomasVotruba
4132d9d885 add test case for as/of template tag 2020-06-15 12:25:37 +02:00
TomasVotruba
abb11dcdcf relocate slug under Gedmo namespace 2020-06-15 12:08:42 +02:00
kodiakhq[bot]
e1dd00ed9f
Merge pull request #3521 from rectorphp/fix-comment
fix nested comment in nested foreach to if
2020-06-15 10:03:23 +00: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
Tomas Votruba
1aa2356e28
Merge pull request #3520 from rectorphp/fix-multi-assign
skip multi assign ChangeReadOnlyVariableWithDefaultValueToConstantRector
2020-06-15 11:24:18 +02:00
TomasVotruba
43da75f2e1 skip multi assign ChangeReadOnlyVariableWithDefaultValueToConstantRector 2020-06-15 11:18:24 +02:00
TomasVotruba
710a23ccea update phpstan 2020-06-15 11:00:25 +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
0f0fc8e8b8 remove replaceNode() method 2020-06-13 12:52:53 +02: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
TomasVotruba
57fc2ab344 [PHPUnit 6.0] add createMockBuilder() to getMockBuilder() rename 2020-06-12 14:28:14 +02:00
Edgaras Janušauskas
fafd401770 Add CakePHP set to convert array options to fluent method calls 2020-06-12 15:09:24 +03:00
Edgaras Janušauskas
bfcf17c0fc Add ArrayToFluentCallRector 2020-06-12 15:09:24 +03:00
TomasVotruba
ee863810df [PHPUnit] Extends namespace migration with exact class rename 2020-06-12 09:56:34 +02: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
Tomas Votruba
1b2eeb177a
Merge pull request #3511 from markstory/cake-41
Add rector rules for deprecated features in CakePHP 4.1
2020-06-11 09:01:22 +02:00
Mark Story
282ad2bf28 Add rector rules for deprecated features in CakePHP 4.1 2020-06-10 22:04:38 -04:00
TomasVotruba
2a7b506db3 add segfault prevention 2020-06-10 22:19:18 +02:00
Tomas Votruba
04dc889333
Merge pull request #3509 from rectorphp/does-not-perform-assertion
Fix AddDoesNotPerformAssertionToNonAssertingTestRector for mockery
2020-06-10 21:51:53 +02:00
TomasVotruba
e16559faf7 Fix AddDoesNotPerformAssertionToNonAssertingTestRector for mockery 2020-06-10 21:47:21 +02:00
kodiakhq[bot]
8f995ca6b2
Merge pull request #3508 from UFTimmy/patch-2
Fix regex to account for windows.
2020-06-10 18:52:46 +00:00
TomasVotruba
2ad9dd97e4 skip non-existing method 2020-06-10 20:50:00 +02:00
Tim Ward
b38b14d9ef
Fix regex to account for windows.
The fixtures files are all \n, so when the tests were run from windows none matched with PHP_EOL.
The new regex will match line endings of either OS.
2020-06-10 14:47:40 -04:00