Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[e2e][parallel] Allow set custom config on Parallel (#1620)
Co-authored-by: GitHub Action <action@github.com>
- Loading branch information
1 parent
0a0e0fd
commit 6390862
Showing
9 changed files
with
94 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/vendor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"require": { | ||
"php": "^8.1" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; | ||
use Rector\Core\Configuration\Option; | ||
use Rector\DowngradePhp81\Rector\Property\DowngradeReadonlyPropertyRector; | ||
|
||
return static function (ContainerConfigurator $containerConfigurator): void { | ||
$parameters = $containerConfigurator->parameters(); | ||
|
||
$parameters->set(Option::PARALLEL, true); | ||
$parameters->set(Option::PATHS, [ | ||
__DIR__.'/../../src/', | ||
]); | ||
|
||
$services = $containerConfigurator->services(); | ||
$services->set(DowngradeReadonlyPropertyRector::class); | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
1 file with changes | ||
=================== | ||
|
||
1) src/SomeClass.php:6 | ||
|
||
---------- begin diff ---------- | ||
@@ @@ | ||
class SomeClass | ||
{ | ||
public function __construct( | ||
- private readonly \stdClass $stdClass | ||
+ private \stdClass $stdClass | ||
) | ||
{ | ||
} | ||
----------- end diff ----------- | ||
|
||
Applied rules: | ||
* DowngradeReadonlyPropertyRector (https://wiki.php.net/rfc/readonly_properties_v2) | ||
|
||
|
||
[OK] 1 file would have changed (dry-run) by Rector |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace E2e\Parallel\Custom\Config; | ||
|
||
class SomeClass | ||
{ | ||
public function __construct( | ||
private readonly \stdClass $stdClass | ||
) | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters