diff --git a/composer.json b/composer.json index 37061c0d..0e6de4f2 100644 --- a/composer.json +++ b/composer.json @@ -313,6 +313,9 @@ } }, "require-dev": { + "drupal/core-dev": "*", + "palantirnet/drupal-rector": "^0.20.3", + "symfony/phpunit-bridge": "^7.1", "weitzman/drupal-test-traits": "dev-master" } } diff --git a/composer.lock b/composer.lock index a02184f8..1a5f9a61 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "c0a3e0fa975951bfed0c9cc25becef2b", + "content-hash": "1f788d98ace1b56db27f9081894c80d8", "packages": [ { "name": "algolia/places", @@ -16250,16 +16250,16 @@ }, { "name": "phpstan/phpstan", - "version": "1.11.10", + "version": "1.11.11", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan.git", - "reference": "640410b32995914bde3eed26fa89552f9c2c082f" + "reference": "707c2aed5d8d0075666e673a5e71440c1d01a5a3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/640410b32995914bde3eed26fa89552f9c2c082f", - "reference": "640410b32995914bde3eed26fa89552f9c2c082f", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/707c2aed5d8d0075666e673a5e71440c1d01a5a3", + "reference": "707c2aed5d8d0075666e673a5e71440c1d01a5a3", "shasum": "" }, "require": { @@ -16304,7 +16304,7 @@ "type": "github" } ], - "time": "2024-08-08T09:02:50+00:00" + "time": "2024-08-19T14:37:29+00:00" }, { "name": "phpstan/phpstan-deprecation-rules", @@ -21022,16 +21022,16 @@ }, { "name": "wikimedia/composer-merge-plugin", - "version": "v2.0.1", + "version": "v2.1.0", "source": { "type": "git", "url": "https://github.com/wikimedia/composer-merge-plugin.git", - "reference": "8ca2ed8ab97c8ebce6b39d9943e9909bb4f18912" + "reference": "a03d426c8e9fb2c9c569d9deeb31a083292788bc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/wikimedia/composer-merge-plugin/zipball/8ca2ed8ab97c8ebce6b39d9943e9909bb4f18912", - "reference": "8ca2ed8ab97c8ebce6b39d9943e9909bb4f18912", + "url": "https://api.github.com/repos/wikimedia/composer-merge-plugin/zipball/a03d426c8e9fb2c9c569d9deeb31a083292788bc", + "reference": "a03d426c8e9fb2c9c569d9deeb31a083292788bc", "shasum": "" }, "require": { @@ -21040,9 +21040,12 @@ }, "require-dev": { "composer/composer": "^1.1||^2.0", - "php-parallel-lint/php-parallel-lint": "~1.1.0", + "ext-json": "*", + "mediawiki/mediawiki-phan-config": "0.11.1", + "php-parallel-lint/php-parallel-lint": "~1.3.1", + "phpspec/prophecy": "~1.15.0", "phpunit/phpunit": "^8.5||^9.0", - "squizlabs/php_codesniffer": "~3.5.4" + "squizlabs/php_codesniffer": "~3.7.1" }, "type": "composer-plugin", "extra": { @@ -21069,9 +21072,9 @@ "description": "Composer plugin to merge multiple composer.json files", "support": { "issues": "https://github.com/wikimedia/composer-merge-plugin/issues", - "source": "https://github.com/wikimedia/composer-merge-plugin/tree/v2.0.1" + "source": "https://github.com/wikimedia/composer-merge-plugin/tree/v2.1.0" }, - "time": "2021-02-24T05:28:06+00:00" + "time": "2023-04-15T19:07:00+00:00" }, { "name": "zaporylie/composer-drupal-optimizations", @@ -21310,6 +21313,34 @@ "abandoned": "behat/mink-browserkit-driver", "time": "2021-10-12T11:35:46+00:00" }, + { + "name": "drupal/core-dev", + "version": "8.0.0-beta15", + "source": { + "type": "git", + "url": "https://github.com/drupal/core-dev.git", + "reference": "ef24527e33763588415be5ca0719341ddb23e117" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/drupal/core-dev/zipball/ef24527e33763588415be5ca0719341ddb23e117", + "reference": "ef24527e33763588415be5ca0719341ddb23e117", + "shasum": "" + }, + "conflict": { + "webflo/drupal-core-require-dev": "*" + }, + "type": "metapackage", + "notification-url": "https://packagist.org/downloads/", + "license": [ + "GPL-2.0-or-later" + ], + "description": "require-dev dependencies from drupal/drupal; use in addition to drupal/core-recommended to run tests from drupal/core.", + "support": { + "source": "https://github.com/drupal/core-dev/tree/8.0.0-beta15" + }, + "time": "2019-10-31T10:23:10+00:00" + }, { "name": "fabpot/goutte", "version": "v3.2.3", @@ -21370,6 +21401,91 @@ "abandoned": "symfony/browser-kit", "time": "2018-06-29T15:13:57+00:00" }, + { + "name": "palantirnet/drupal-rector", + "version": "0.20.3", + "source": { + "type": "git", + "url": "https://github.com/palantirnet/drupal-rector.git", + "reference": "50c742a34f89e4202056e433bbb476ca1fdf3797" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/palantirnet/drupal-rector/zipball/50c742a34f89e4202056e433bbb476ca1fdf3797", + "reference": "50c742a34f89e4202056e433bbb476ca1fdf3797", + "shasum": "" + }, + "require": { + "rector/rector": "^1.0", + "webflo/drupal-finder": "^1.2" + }, + "replace": { + "drupal8-rector/drupal8-rector": "*", + "palantirnet/drupal8-rector": "*" + }, + "require-dev": { + "cweagans/composer-patches": "^1.7.2", + "friendsofphp/php-cs-fixer": "^3.58", + "php": "^8.2", + "phpstan/extension-installer": "^1.1", + "phpstan/phpstan": "^1.0", + "phpstan/phpstan-deprecation-rules": "^1.0", + "phpunit/phpunit": "^10.0", + "symfony/yaml": "^5 || ^6 || ^7", + "symplify/vendor-patches": "^11.0" + }, + "type": "library", + "extra": { + "enable-patching": true + }, + "autoload": { + "psr-4": { + "DrupalRector\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Dezső Biczó", + "email": "mxr576@gmail.com" + }, + { + "name": "Ofer Shaal", + "email": "shaal@palantir.net" + }, + { + "name": "Daniel Montgomery", + "email": "montgomery@palantir.net" + }, + { + "name": "Matt Glaman", + "email": "nmd.matt@gmail.com" + }, + { + "name": "Björn Brala", + "email": "drupal@bjorn.dev" + }, + { + "name": "Ken Rickard", + "email": "agentrickard@gmail.com" + } + ], + "description": "Instant fixes for your Drupal code by using Rector.", + "keywords": [ + "Code style", + "Drupal 8", + "ast", + "drupal 9", + "rector" + ], + "support": { + "source": "https://github.com/palantirnet/drupal-rector/tree/0.20.3" + }, + "time": "2024-06-10T19:18:13+00:00" + }, { "name": "phar-io/manifest", "version": "2.0.4", @@ -21910,6 +22026,65 @@ ], "time": "2024-08-13T06:09:37+00:00" }, + { + "name": "rector/rector", + "version": "1.2.3", + "source": { + "type": "git", + "url": "https://github.com/rectorphp/rector.git", + "reference": "2433e95410aef1b34b15d7f1b6a134365a4ddb39" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/rectorphp/rector/zipball/2433e95410aef1b34b15d7f1b6a134365a4ddb39", + "reference": "2433e95410aef1b34b15d7f1b6a134365a4ddb39", + "shasum": "" + }, + "require": { + "php": "^7.2|^8.0", + "phpstan/phpstan": "^1.11.9" + }, + "conflict": { + "rector/rector-doctrine": "*", + "rector/rector-downgrade-php": "*", + "rector/rector-phpunit": "*", + "rector/rector-symfony": "*" + }, + "suggest": { + "ext-dom": "To manipulate phpunit.xml via the custom-rule command" + }, + "bin": [ + "bin/rector" + ], + "type": "library", + "autoload": { + "files": [ + "bootstrap.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Instant Upgrade and Automated Refactoring of any PHP code", + "keywords": [ + "automation", + "dev", + "migration", + "refactoring" + ], + "support": { + "issues": "https://github.com/rectorphp/rector/issues", + "source": "https://github.com/rectorphp/rector/tree/1.2.3" + }, + "funding": [ + { + "url": "https://github.com/tomasvotruba", + "type": "github" + } + ], + "time": "2024-08-12T16:36:46+00:00" + }, { "name": "sebastian/cli-parser", "version": "2.0.1", @@ -22898,6 +23073,88 @@ ], "time": "2022-07-25T12:56:14+00:00" }, + { + "name": "symfony/phpunit-bridge", + "version": "v7.1.3", + "source": { + "type": "git", + "url": "https://github.com/symfony/phpunit-bridge.git", + "reference": "e823122d31935eb711e2767c31f3d71cb0b87fb1" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/phpunit-bridge/zipball/e823122d31935eb711e2767c31f3d71cb0b87fb1", + "reference": "e823122d31935eb711e2767c31f3d71cb0b87fb1", + "shasum": "" + }, + "require": { + "php": ">=7.2.5" + }, + "conflict": { + "phpunit/phpunit": "<7.5|9.1.2" + }, + "require-dev": { + "symfony/deprecation-contracts": "^2.5|^3.0", + "symfony/error-handler": "^5.4|^6.4|^7.0", + "symfony/polyfill-php81": "^1.27" + }, + "bin": [ + "bin/simple-phpunit" + ], + "type": "symfony-bridge", + "extra": { + "thanks": { + "name": "phpunit/phpunit", + "url": "https://github.com/sebastianbergmann/phpunit" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Bridge\\PhpUnit\\": "" + }, + "exclude-from-classmap": [ + "/Tests/", + "/bin/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides utilities for PHPUnit, especially user deprecation notices management", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/phpunit-bridge/tree/v7.1.3" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-07-26T12:41:01+00:00" + }, { "name": "theseer/tokenizer", "version": "1.2.3", diff --git a/rector.php b/rector.php new file mode 100644 index 00000000..a424a5a0 --- /dev/null +++ b/rector.php @@ -0,0 +1,16 @@ +withPaths([ + __DIR__ . '/drush', + __DIR__ . '/node_modules', + __DIR__ . '/scripts', + __DIR__ . '/web', + ]) + // uncomment to reach your current PHP version + // ->withPhpSets() + ->withTypeCoverageLevel(0); diff --git a/web/modules/custom/editors_menus/editors_menus.info.yml b/web/modules/custom/editors_menus/editors_menus.info.yml index 782abf84..05669596 100644 --- a/web/modules/custom/editors_menus/editors_menus.info.yml +++ b/web/modules/custom/editors_menus/editors_menus.info.yml @@ -1,5 +1,5 @@ name: 'Editors Menus' type: module description: 'create editors admin menus through module as they will be exportable as config' -core_version_requirement: ^8.8 || ^9.2 +core_version_requirement: ^8.8 || ^9.2 || ^10.2 package: 'Custom' diff --git a/web/modules/custom/images_styles_gen/images_styles_gen.info.yml b/web/modules/custom/images_styles_gen/images_styles_gen.info.yml index 8265b544..8d6b0a45 100644 --- a/web/modules/custom/images_styles_gen/images_styles_gen.info.yml +++ b/web/modules/custom/images_styles_gen/images_styles_gen.info.yml @@ -1,7 +1,7 @@ name: 'images_styles_cron_gen' type: module description: 'helpers for progressive decoupling' -core_version_requirement: ^8.8 || ^9.2 +core_version_requirement: ^8.8 || ^9.2 || ^10.2 package: 'custom' # https://www.flocondetoile.fr/blog/generate-programmatically-image-styles-drupal-8 # https://www.flocondetoile.fr/blog/using-drupal-8-cron-api-generate-image-styles diff --git a/web/modules/custom/materio_commerce/materio_commerce.info.yml b/web/modules/custom/materio_commerce/materio_commerce.info.yml index 4748771b..e680efbf 100644 --- a/web/modules/custom/materio_commerce/materio_commerce.info.yml +++ b/web/modules/custom/materio_commerce/materio_commerce.info.yml @@ -3,7 +3,7 @@ description: Materio commerce custom module package: Materio type: module -core_version_requirement: ^8.8 || ^9.2 +core_version_requirement: ^8.8 || ^9.2 || ^10.2 dependencies: - drupal:commerce \ No newline at end of file diff --git a/web/modules/custom/materio_decoupled/materio_decoupled.info.yml b/web/modules/custom/materio_decoupled/materio_decoupled.info.yml index de54ba24..3f2093f1 100644 --- a/web/modules/custom/materio_decoupled/materio_decoupled.info.yml +++ b/web/modules/custom/materio_decoupled/materio_decoupled.info.yml @@ -1,5 +1,5 @@ name: 'materio_decoupled' type: module description: 'helpers for progressive decoupling' -core_version_requirement: ^8.8 || ^9.2 +core_version_requirement: ^8.8 || ^9.2 || ^10.2 package: 'Materio' diff --git a/web/modules/custom/materio_expo/materio_expo.info.yml b/web/modules/custom/materio_expo/materio_expo.info.yml index 723b99b1..9d73a26d 100644 --- a/web/modules/custom/materio_expo/materio_expo.info.yml +++ b/web/modules/custom/materio_expo/materio_expo.info.yml @@ -1,5 +1,5 @@ name: 'materio_expo' type: module description: 'My Awesome Module' -core_version_requirement: ^8.8 || ^9.2 +core_version_requirement: ^8.8 || ^9.2 || ^10.2 package: 'Materio' diff --git a/web/modules/custom/materio_flag/materio_flag.info.yml b/web/modules/custom/materio_flag/materio_flag.info.yml index 680056e0..2300b116 100644 --- a/web/modules/custom/materio_flag/materio_flag.info.yml +++ b/web/modules/custom/materio_flag/materio_flag.info.yml @@ -1,7 +1,7 @@ name: Materio FLAG type: module description: Defines api behaviours for flaglist. -core_version_requirement: ^8.8 || ^9.2 +core_version_requirement: ^8.8 || ^9.2 || ^10.2 package: Materio dependencies: - drupal:flag_lists diff --git a/web/modules/custom/materio_graphql/materio_graphql.info.yml b/web/modules/custom/materio_graphql/materio_graphql.info.yml index 160ae65f..e7f94914 100644 --- a/web/modules/custom/materio_graphql/materio_graphql.info.yml +++ b/web/modules/custom/materio_graphql/materio_graphql.info.yml @@ -2,7 +2,7 @@ name: Materio GraphQL type: module description: 'Materio GraphQL schema.' package: Materio -core_version_requirement: ^8.8 || ^9.2 +core_version_requirement: ^8.8 || ^9.2 || ^10.2 dependencies: - graphql:graphql - node:node diff --git a/web/modules/custom/materio_home/materio_home.info.yml b/web/modules/custom/materio_home/materio_home.info.yml index 4772c572..b6e6e559 100644 --- a/web/modules/custom/materio_home/materio_home.info.yml +++ b/web/modules/custom/materio_home/materio_home.info.yml @@ -1,6 +1,6 @@ name: Materio Home type: module description: Defines home contents for materiO. -core_version_requirement: ^8.8 || ^9.2 +core_version_requirement: ^8.8 || ^9.2 || ^10.2 package: Materio dependencies: diff --git a/web/modules/custom/materio_id/materio_id.info.yml b/web/modules/custom/materio_id/materio_id.info.yml index 0731813e..69d473da 100644 --- a/web/modules/custom/materio_id/materio_id.info.yml +++ b/web/modules/custom/materio_id/materio_id.info.yml @@ -1,7 +1,7 @@ name: Materio Id type: module description: "Compute automaticly materials references : -, eg. W-0459." -core_version_requirement: ^8.8 || ^9.2 +core_version_requirement: ^8.8 || ^9.2 || ^10.2 package: Materio dependencies: - computed_field diff --git a/web/modules/custom/materio_jsonapi/materio_jsonapi.info.yml b/web/modules/custom/materio_jsonapi/materio_jsonapi.info.yml index 7ca43d74..5e74b39a 100644 --- a/web/modules/custom/materio_jsonapi/materio_jsonapi.info.yml +++ b/web/modules/custom/materio_jsonapi/materio_jsonapi.info.yml @@ -1,7 +1,7 @@ name: Materio JsonAPI type: module description: Defines custom behaviours to jsonapi. -core_version_requirement: ^8.8 || ^9.2 +core_version_requirement: ^8.8 || ^9.2 || ^10.2 package: Materio dependencies: - drupal:jsonapi diff --git a/web/modules/custom/materio_mailjet/materio_mailjet.info.yml b/web/modules/custom/materio_mailjet/materio_mailjet.info.yml index a6fe5fb2..f7acec21 100644 --- a/web/modules/custom/materio_mailjet/materio_mailjet.info.yml +++ b/web/modules/custom/materio_mailjet/materio_mailjet.info.yml @@ -2,7 +2,7 @@ name: Materio Mailjet description: Add support for MailJet Webhooks. package: Materio type: module -core_version_requirement: ^8.8 || ^9 +core_version_requirement: ^8.8 || ^9 || ^10.2 dependencies: - mailjet:mailjet diff --git a/web/modules/custom/materio_samples/materio_samples.info.yml b/web/modules/custom/materio_samples/materio_samples.info.yml index 04d4677c..f351fabf 100644 --- a/web/modules/custom/materio_samples/materio_samples.info.yml +++ b/web/modules/custom/materio_samples/materio_samples.info.yml @@ -1,7 +1,7 @@ name: Materio Samples type: module description: "Provide a sample field, each showroom (taxonomy term) can fill it's own sample reference, and only it's own" -core_version_requirement: ^8.8 || ^9.2 +core_version_requirement: ^8.8 || ^9.2 || ^10.2 package: Materio dependencies: - taxonomy diff --git a/web/modules/custom/materio_sapi/materio_sapi.info.yml b/web/modules/custom/materio_sapi/materio_sapi.info.yml index fc2d86cb..eb7557ab 100644 --- a/web/modules/custom/materio_sapi/materio_sapi.info.yml +++ b/web/modules/custom/materio_sapi/materio_sapi.info.yml @@ -1,7 +1,7 @@ name: Materio Serach API type: module description: 'Search Api Materio module' -core_version_requirement: ^8.8 || ^9.2 +core_version_requirement: ^8.8 || ^9.2 || ^10.2 package: 'Materio' dependencies: - search_api diff --git a/web/modules/custom/materio_simplenews/materio_simplenews.info.yml b/web/modules/custom/materio_simplenews/materio_simplenews.info.yml index 887e894f..bc3be434 100644 --- a/web/modules/custom/materio_simplenews/materio_simplenews.info.yml +++ b/web/modules/custom/materio_simplenews/materio_simplenews.info.yml @@ -1,7 +1,7 @@ name: Materio Simple News type: module description: 'Simple News extensions Materio module' -core_version_requirement: ^8.8 || ^9.2 +core_version_requirement: ^8.8 || ^9.2 || ^10.2 package: 'Materio' dependencies: - simplenews diff --git a/web/modules/custom/materio_user/materio_user.info.yml b/web/modules/custom/materio_user/materio_user.info.yml index baaf3aec..c64289ea 100644 --- a/web/modules/custom/materio_user/materio_user.info.yml +++ b/web/modules/custom/materio_user/materio_user.info.yml @@ -1,5 +1,5 @@ name: 'materio_user' type: module description: '' -core_version_requirement: ^8.8 || ^9.2 +core_version_requirement: ^8.8 || ^9.2 || ^10.2 package: 'Materio' diff --git a/web/modules/custom/vue_link_formatter/vue_link_formatter.info.yml b/web/modules/custom/vue_link_formatter/vue_link_formatter.info.yml index 53937ea8..2d97cca2 100644 --- a/web/modules/custom/vue_link_formatter/vue_link_formatter.info.yml +++ b/web/modules/custom/vue_link_formatter/vue_link_formatter.info.yml @@ -1,7 +1,7 @@ name: Vue Link Formatter type: module description: 'Provides a simple vue link field formatter with vue attributes as @click.' -core_version_requirement: ^8 || ^9 +core_version_requirement: ^8 || ^9 || ^10.2 package: Fields # version: VERSION dependencies: