9135 Commits

Author SHA1 Message Date
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
kodiakhq[bot]
5edcae8d69
Merge pull request #3507 from rectorphp/code-quality-call-array
[CodeQuality] Add ArrayThisCallToThisMethodCallRector
2020-06-10 18:39:30 +00:00
TomasVotruba
c17b38aa43 [CodeQuality] Add ArrayThisCallToThisMethodCallRector 2020-06-10 20:35:59 +02:00
kodiakhq[bot]
999296fd48
Merge pull request #3506 from rectorphp/skip-move-of-already
[Autodiscovery] Do not nest already correct name
2020-06-10 18:02:26 +00:00
TomasVotruba
aff10cf014 [Autodiscovery] Do not nest already correct name 2020-06-10 19:59:15 +02:00
TomasVotruba
630d17494b make property protected if used by child v0.7.33 2020-06-10 01:23:00 +02:00
TomasVotruba
f11fed5756 make injected variable protect, if used by children 2020-06-10 01:02:49 +02:00
Tomas Votruba
bd520cafd4
Merge pull request #3505 from rectorphp/inject-parent-construct
add parent::__construct() in case of existing empty ctor
v0.7.32
2020-06-10 00:22:53 +02:00
TomasVotruba
9230abdfe3 add parent::__construct() in case of existing empty ctor 2020-06-10 00:18:46 +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
kodiakhq[bot]
2ff01578e5
Merge pull request #3502 from rectorphp/inject-typed-property
[Architecture] Add typed property support for @inject to ctor rule
v0.7.31
2020-06-09 21:08:58 +00:00
TomasVotruba
c1ce340308 skip abstract class 2020-06-09 23:05:11 +02:00
TomasVotruba
5a2641f876 decouple skip_autowired test case 2020-06-09 22:56:42 +02:00
TomasVotruba
6e33fe0565 add typed property support 2020-06-09 22:43:28 +02:00
TomasVotruba
0f0f01f495 update namespace to fit standard 2020-06-09 22:39:09 +02:00
TomasVotruba
6fab6b166e make param name constistent v0.7.30 2020-06-09 14:15:19 +02:00
TomasVotruba
77dfc368d1 make sure pre-slashed is handled in prefixed 2020-06-09 11:59:41 +02:00