Skip to content

Commit 77f53be

Browse files
authored
Drop d9 (#807)
* D10+ composer dependencies * [Compser] D10+ composer dependencies * {CI} Drop D9 from testing matrices * {Rules} Drop AccessDeprecatedConstantTest, and \mglaman\PHPStanDrupal\Rules\Deprecations\AccessDeprecatedConstant * Revert "{Rules} Drop AccessDeprecatedConstantTest, and \mglaman\PHPStanDrupal\Rules\Deprecations\AccessDeprecatedConstant" This reverts commit 46ad904. * Reapply "{Rules} Drop AccessDeprecatedConstantTest, and \mglaman\PHPStanDrupal\Rules\Deprecations\AccessDeprecatedConstant" This reverts commit 181a5df. * {Rules} Drop AccessDeprecatedConstantTest, and \mglaman\PHPStanDrupal\Rules\Deprecations\AccessDeprecatedConstant * {Rules} Drop \mglaman\PHPStanDrupal\Tests\Rules\ClassExtendsInternalClassRuleTest::testRule ContentEntityDeleteForm test case and dependencies * [HACK]] Temporarily remove core_baseline test * {Rules} Drop AccessDeprecatedConstantTest, \mglaman\PHPStanDrupal\Rules\Deprecations\AccessDeprecatedConstant and dependencies * {Rules} Drop ConditionManagerCreateInstanceContextConfigurationRuleTest and its rule and related stuff 'n things * {Rules} Drop \mglaman\PHPStanDrupal\Tests\Rules\DeprecatedHookImplementationTest::testRule test for deprecated_field_widget_hooks_field_widget_form_alter and related stuff 'n things * {Rules} Drop \mglaman\PHPStanDrupal\Tests\Rules\GetDeprecatedServiceRuleTest::testRuleDrupal8 and \mglaman\PHPStanDrupal\Tests\Rules\GetDeprecatedServiceRuleTest::testRuleDrupal9 and related stuff 'n things * [Rule Tests] Adjust linenumber * {Rules} \mglaman\PHPStanDrupal\Tests\Rules\RequestStackGetMainRequestRuleTest::testRule and the rule and related stuff 'n things * {Rules} \mglaman\PHPStanDrupal\Tests\Rules\RequestStackGetMainRequestRuleTest::testRule and the rule and related stuff 'n things * {Rules} Dropped \mglaman\PHPStanDrupal\Tests\Rules\SymfonyCmfRouteObjectInterfaceConstantsRuleTest::testRule and the rule, \mglaman\PHPStanDrupal\Tests\Rules\SymfonyCmfRoutingInClassMethodSignatureRuleTest::testRule and the rule, and related stuff 'n things * [Tests] Cleanup * Revert "[HACK]] Temporarily remove core_baseline test" This reverts commit c3da108. * [Composer] Bump dependencies to match core 10.0.0 minimum * Drop CircleCI
1 parent d505a16 commit 77f53be

30 files changed

+10
-1236
lines changed

.circleci/config.yml

Lines changed: 0 additions & 148 deletions
This file was deleted.

.circleci/generate-local-config.sh

Lines changed: 0 additions & 3 deletions
This file was deleted.

.circleci/run-local-config.sh

Lines changed: 0 additions & 4 deletions
This file was deleted.

.github/workflows/php.yml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,6 @@ jobs:
4747
drupal:
4848
- "^10"
4949
include:
50-
- php-version: "8.1"
51-
drupal: "^9.0"
52-
experimental: false
5350
- php-version: "8.3"
5451
drupal: "11.x-dev"
5552
experimental: true
@@ -65,9 +62,6 @@ jobs:
6562
extensions: dom, curl, libxml, mbstring, zip, pdo, mysql, pdo_mysql, gd
6663
- name: "Set drupal/core to ${{ matrix.drupal }}"
6764
run: "composer require drupal/core-recommended:${{ matrix.drupal }} --with-all-dependencies --dev --no-update"
68-
- name: "Add phpspec/prophecy-phpunit"
69-
run: "composer require phpspec/prophecy-phpunit:^2 --dev --no-update"
70-
if: ${{ matrix.drupal == '^9.0' }}
7165
- name: "Install dependencies"
7266
uses: "ramsey/composer-install@v3"
7367
- name: "PHPUnit"
@@ -89,9 +83,6 @@ jobs:
8983
drupal:
9084
- "^10"
9185
include:
92-
- php-version: "8.1"
93-
drupal: "^9.0"
94-
experimental: false
9586
- php-version: "8.3"
9687
drupal: "11.x-dev"
9788
experimental: true
@@ -165,9 +156,6 @@ jobs:
165156
drupal:
166157
- "^10"
167158
include:
168-
- php-version: "8.1"
169-
drupal: "^9.0"
170-
experimental: false
171159
- php-version: "8.3"
172160
drupal: "11.x-dev"
173161
experimental: true
@@ -245,7 +233,6 @@ jobs:
245233
cd drupal
246234
composer config repositories.0 composer https://packages.drupal.org/8
247235
composer config repositories.1 path $GITHUB_WORKSPACE
248-
249236
- name: "Install Drupal core dependencies"
250237
uses: "ramsey/composer-install@v3"
251238
with:

composer.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,21 @@
1313
"php": "^8.1",
1414
"phpstan/phpstan": "^2.0",
1515
"phpstan/phpstan-deprecation-rules": "^2.0",
16-
"symfony/finder": "^4.2 || ^5.0 || ^6.0 || ^7.0",
17-
"symfony/yaml": "^4.2|| ^5.0 || ^6.0 || ^7.0",
16+
"symfony/finder": "^6.2 || ^7.0",
17+
"symfony/yaml": "^6.2 || ^7.0",
1818
"webflo/drupal-finder": "^1.3.1"
1919
},
2020
"require-dev": {
21-
"behat/mink": "^1.8",
21+
"behat/mink": "^1.10",
2222
"composer/installers": "^1.9",
2323
"drupal/core-recommended": "^10",
24-
"drush/drush": "^10.0 || ^11 || ^12 || ^13@beta",
25-
"phpstan/extension-installer": "1.4.3",
24+
"drush/drush": "^11 || ^12 || ^13",
25+
"phpstan/extension-installer": "^1.4.3",
2626
"phpstan/phpstan-strict-rules": "^2.0",
27-
"phpunit/phpunit": "^8.5 || ^9 || ^10 || ^11",
28-
"slevomat/coding-standard": "^7.1",
29-
"squizlabs/php_codesniffer": "^3.3",
30-
"symfony/phpunit-bridge": "^4.4 || ^5.4 || ^6.0 || ^7.0"
27+
"phpunit/phpunit": "^9 || ^10 || ^11",
28+
"slevomat/coding-standard": "^8.6",
29+
"squizlabs/php_codesniffer": "^3.7",
30+
"symfony/phpunit-bridge": "^6.2 || ^7.0"
3131
},
3232
"minimum-stability": "dev",
3333
"prefer-stable": true,

phpstan-baseline.neon

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,6 @@ parameters:
3434
count: 1
3535
path: src/Drupal/DrupalAutoloader.php
3636

37-
-
38-
message: "#^Doing instanceof PHPStan\\\\Type\\\\Constant\\\\ConstantArrayType is error\\-prone and deprecated\\. Use Type\\:\\:getConstantArrays\\(\\) instead\\.$#"
39-
count: 1
40-
path: src/Rules/Deprecations/ConditionManagerCreateInstanceContextConfigurationRule.php
41-
42-
-
43-
message: "#^Doing instanceof PHPStan\\\\Type\\\\Constant\\\\ConstantStringType is error\\-prone and deprecated\\. Use Type\\:\\:getConstantStrings\\(\\) instead\\.$#"
44-
count: 1
45-
path: src/Rules/Deprecations/ConditionManagerCreateInstanceContextConfigurationRule.php
46-
4737
-
4838
message: "#^Doing instanceof PHPStan\\\\Type\\\\Constant\\\\ConstantStringType is error\\-prone and deprecated\\. Use Type\\:\\:getConstantStrings\\(\\) instead\\.$#"
4939
count: 2

rules.neon

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ rules:
22
- mglaman\PHPStanDrupal\Rules\Drupal\Coder\DiscouragedFunctionsRule
33
- mglaman\PHPStanDrupal\Rules\Drupal\GlobalDrupalDependencyInjectionRule
44
- mglaman\PHPStanDrupal\Rules\Drupal\PluginManager\PluginManagerSetsCacheBackendRule
5-
- mglaman\PHPStanDrupal\Rules\Deprecations\AccessDeprecatedConstant
6-
- mglaman\PHPStanDrupal\Rules\Deprecations\ConditionManagerCreateInstanceContextConfigurationRule
75
- mglaman\PHPStanDrupal\Rules\Drupal\RenderCallbackRule
86
- mglaman\PHPStanDrupal\Rules\Deprecations\StaticServiceDeprecatedServiceRule
97
- mglaman\PHPStanDrupal\Rules\Deprecations\GetDeprecatedServiceRule
@@ -13,9 +11,6 @@ rules:
1311
- mglaman\PHPStanDrupal\Rules\Drupal\ModuleLoadInclude
1412
- mglaman\PHPStanDrupal\Rules\Drupal\LoadIncludes
1513
- mglaman\PHPStanDrupal\Rules\Drupal\EntityQuery\EntityQueryHasAccessCheckRule
16-
- mglaman\PHPStanDrupal\Rules\Deprecations\SymfonyCmfRouteObjectInterfaceConstantsRule
17-
- mglaman\PHPStanDrupal\Rules\Deprecations\SymfonyCmfRoutingInClassMethodSignatureRule
18-
- mglaman\PHPStanDrupal\Rules\Drupal\RequestStackGetMainRequestRule
1914
- mglaman\PHPStanDrupal\Rules\Drupal\TestClassesProtectedPropertyModulesRule
2015

2116
conditionalTags:

0 commit comments

Comments
 (0)