Skip to content

Commit 4edbfeb

Browse files
authored
Merge branch 'rectorphp:main' into main
2 parents 842a654 + 4997962 commit 4edbfeb

File tree

44 files changed

+417
-75
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+417
-75
lines changed

.github/workflows/e2e.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ jobs:
2929
- 'e2e/applied-rule-change-docblock'
3030
- 'e2e/applied-rule-removed-node'
3131
- 'e2e/applied-rule-return-array-nodes'
32+
- 'e2e/config-dist-fallback'
33+
- 'e2e/config-file-priority'
3234
- 'e2e/different-path-over-skip-config'
3335
- 'e2e/invalid-paths'
3436
- 'e2e/no-parallel-reflection-resolver'

build/target-repository/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
],
1010
"require": {
1111
"php": "^7.4|^8.0",
12-
"phpstan/phpstan": "^2.1.37"
12+
"phpstan/phpstan": "^2.1.38"
1313
},
1414
"autoload": {
1515
"files": [

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"nikic/php-parser": "^5.7",
2424
"ondram/ci-detector": "^4.2",
2525
"phpstan/phpdoc-parser": "^2.3",
26-
"phpstan/phpstan": "^2.1.37",
26+
"phpstan/phpstan": "^2.1.38",
2727
"react/event-loop": "^1.6",
2828
"react/promise": "^3.3",
2929
"react/socket": "^1.17",
@@ -36,7 +36,7 @@
3636
"symfony/console": "^6.4.24",
3737
"symfony/filesystem": "^7.0",
3838
"symfony/finder": "^6.4",
39-
"symfony/process": "^6.4|7.0.*",
39+
"symfony/process": "^6.4|^7.4",
4040
"symplify/easy-parallel": "^11.2.2",
4141
"symplify/rule-doc-generator-contracts": "^11.2",
4242
"webmozart/assert": "^2.1"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/vendor
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"require": {
3+
"php": "^8.1"
4+
},
5+
"minimum-stability": "dev",
6+
"prefer-stable": true
7+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
1 file with changes
2+
===================
3+
4+
1) src/SomeClass.php:4
5+
6+
---------- begin diff ----------
7+
@@ @@
8+
9+
final class SomeClass
10+
{
11+
- /**
12+
- * @var string
13+
- */
14+
public string $name = 'name';
15+
}
16+
----------- end diff -----------
17+
18+
Applied rules:
19+
* RemoveUselessVarTagRector
20+
21+
22+
[OK] 1 file would have been changed (dry-run) by Rector
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
use Rector\Config\RectorConfig;
6+
use Rector\DeadCode\Rector\Property\RemoveUselessVarTagRector;
7+
8+
return static function (RectorConfig $rectorConfig): void {
9+
$rectorConfig->paths([
10+
__DIR__ . '/src',
11+
]);
12+
13+
// This rule should be applied when rector.dist.php is used as fallback
14+
$rectorConfig->rule(RemoveUselessVarTagRector::class);
15+
};
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
final class SomeClass
6+
{
7+
/**
8+
* @var string
9+
*/
10+
public string $name = 'name';
11+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/vendor
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"require": {
3+
"php": "^8.1"
4+
},
5+
"minimum-stability": "dev",
6+
"prefer-stable": true
7+
}

0 commit comments

Comments
 (0)