-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add PHP 8.2 set list to Rector config #65
Conversation
Thanks for the PR 😍 How to test these changes in your application
Diff between recipe versionsIn order to help with the review stage, I'm in charge of computing the diff between the various versions of patched recipes. frosh/code-quality-meta0.1 vs 0.2diff --git a/frosh/code-quality-meta/0.1/root/rector.php b/frosh/code-quality-meta/0.2/root/rector.php
index 30bc217..c753b16 100644
--- a/frosh/code-quality-meta/0.1/root/rector.php
+++ b/frosh/code-quality-meta/0.2/root/rector.php
@@ -4,13 +4,12 @@ declare(strict_types=1);
use Frosh\Rector\Set\ShopwareSetList;
use Rector\CodeQuality\Rector\Class_\InlineConstructorDefaultToPropertyRector;
-use Rector\CodeQuality\Rector\Foreach_\SimplifyForeachToArrayFilterRector;
use Rector\Config\RectorConfig;
use Rector\Php74\Rector\LNumber\AddLiteralSeparatorToNumberRector;
use Rector\PostRector\Rector\NameImportingPostRector;
use Rector\Set\ValueObject\LevelSetList;
use Rector\Set\ValueObject\SetList;
-use Rector\Symfony\Rector\Return_\SimpleFunctionAndFilterRector;
+use Rector\Symfony\Twig134\Rector\Return_\SimpleFunctionAndFilterRector;
use Rector\Symfony\Set\SymfonySetList;
return static function (RectorConfig $rectorConfig): void {
@@ -27,7 +26,6 @@ return static function (RectorConfig $rectorConfig): void {
$rectorConfig->rule(InlineConstructorDefaultToPropertyRector::class);
$rectorConfig->rule(NameImportingPostRector::class);
- $rectorConfig->rule(SimplifyForeachToArrayFilterRector::class);
$rectorConfig->rule(SimpleFunctionAndFilterRector::class);
$rectorConfig->sets([
@@ -40,6 +38,7 @@ return static function (RectorConfig $rectorConfig): void {
SymfonySetList::SYMFONY_CODE_QUALITY,
SymfonySetList::ANNOTATIONS_TO_ATTRIBUTES,
LevelSetList::UP_TO_PHP_81,
+ LevelSetList::UP_TO_PHP_82,
ShopwareSetList::SHOPWARE_6_5_0,
]);
diff --git a/frosh/code-quality-meta/0.1/vendor-bin/rector/composer.json b/frosh/code-quality-meta/0.2/vendor-bin/rector/composer.json
index 801401b..7f86567 100644
--- a/frosh/code-quality-meta/0.1/vendor-bin/rector/composer.json
+++ b/frosh/code-quality-meta/0.2/vendor-bin/rector/composer.json
@@ -1,6 +1,6 @@
{
"require-dev": {
- "rector/rector": "^0.15.24",
- "frosh/shopware-rector": "^0.1.0"
+ "rector/rector": "^0.17.3",
+ "frosh/shopware-rector": "^0.2.2"
}
} frosh/devenv-meta0.1 vs 0.2diff --git a/frosh/devenv-meta/0.1/root/devenv.nix b/frosh/devenv-meta/0.2/root/devenv.nix
index b3e5d88..b0751e7 100644
--- a/frosh/devenv-meta/0.1/root/devenv.nix
+++ b/frosh/devenv-meta/0.2/root/devenv.nix
@@ -8,12 +8,12 @@
languages.javascript = {
enable = lib.mkDefault true;
- package = lib.mkDefault pkgs.nodejs-16_x;
+ package = lib.mkDefault pkgs.nodejs-18_x;
};
languages.php = {
enable = lib.mkDefault true;
- version = lib.mkDefault "8.1";
+ version = lib.mkDefault "8.2";
ini = ''
memory_limit = 2G
@@ -98,9 +98,6 @@
env.MAILER_DSN = lib.mkDefault "smtp://127.0.0.1:1025";
env.DATABASE_URL = lib.mkDefault "mysql://shopware:[email protected]:3306/shopware";
- # Webpack compatibility
- env.NODE_OPTIONS = lib.mkDefault "--openssl-legacy-provider";
-
# Shopware 6 related scripts
scripts.build-js.exec = lib.mkDefault "bin/build-js.sh";
scripts.build-storefront.exec = lib.mkDefault "bin/build-storefront.sh"; symfony/messenger5.4 vs 6.0diff --git a/symfony/messenger/5.4/config/packages/messenger.yaml b/symfony/messenger/6.0/config/packages/messenger.yaml
index ce25a11..672b6c4 100644
--- a/symfony/messenger/5.4/config/packages/messenger.yaml
+++ b/symfony/messenger/6.0/config/packages/messenger.yaml
@@ -1,8 +1,5 @@
framework:
messenger:
- # reset services after consuming messages
- reset_on_message: true
-
# Uncomment this (and the failed transport below) to send failed messages to this transport for later handling.
# failure_transport: failed
@@ -15,3 +12,11 @@ framework:
routing:
# Route your messages to the transports
# 'App\Message\YourMessage': async
+
+# when@test:
+# framework:
+# messenger:
+# transports:
+# # replace with your transport name here (e.g., my_transport: 'in-memory://')
+# # For more Messenger testing tools, see https://github.com/zenstruck/messenger-test
+# async: 'in-memory://' |
No description provided.