Skip to content

Commit 726ccf2

Browse files
Update drush/drush requirement to allow ^13.0 (#109)
* Update drush/drush requirement from ^12.2 to ^13.0 Updates the requirements on [drush/drush](https://github.com/drush-ops/drush) to permit the latest version. - [Release notes](https://github.com/drush-ops/drush/releases) - [Commits](drush-ops/drush@12.2.0...13.0.1) --- updated-dependencies: - dependency-name: drush/drush dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> * Drop PHP 8.1 coverage * Drop Drupal 10.1 support * Switch to drupal/core-dev * Update composer.json --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Richard B. Porter <[email protected]>
1 parent bbbdd92 commit 726ccf2

File tree

5 files changed

+18
-14
lines changed

5 files changed

+18
-14
lines changed

.gitattributes

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
/tests export-ignore
44
/phpunit.xml.dist export-ignore
55
/.phpunit.result.cache export-ignore
6-
/.devcontainer export-ignore
6+
/.devcontainer export-ignore
7+
/phpstan.neon export-ignore

.github/workflows/ci.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
strategy:
1717
matrix:
18-
php: [8.1, 8.2, 8.3]
18+
php: [8.2, 8.3]
1919
steps:
2020
- uses: actions/checkout@v4
2121
- name: Start MySQL
@@ -30,7 +30,7 @@ jobs:
3030
run: ./vendor/bin/drush site:install testing --root sut --db-url mysql://root:root@localhost/drupal --yes
3131
- name: Run code sniffer
3232
run: ./vendor/bin/phpcs --standard=Drupal,DrupalPractice --ignore='sut,vendor' .
33-
- name: Run drupal-check
34-
run: ./vendor/bin/drupal-check UsersCommands.php tests/
33+
- name: Run static analysis
34+
run: ./vendor/bin/phpstan analyze UsersCommands.php tests/
3535
- name: Run unit tests
3636
run: ./vendor/bin/phpunit

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Drush commands to interact with multiple Drupal users.
55

66
## Requirements
77
- Drush ^12.2
8-
- Drupal ^10.1
8+
- Drupal ^10.2
99

1010
## Installation
1111
Since this is a [site-wide Drush command](https://www.drush.org/latest/commands/#site-wide-commands), it will only be found when installed in certain directories. It is recommended to update your Composer installers path for drupal-drush packages to:

composer.json

+7-9
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,12 @@
1313
"require": {
1414
"php": ">=8.1",
1515
"composer/installers": "^2.1",
16-
"drush/drush": "^12.2"
16+
"drush/drush": "^12.2 || ^13.0"
1717
},
1818
"require-dev": {
19-
"phpunit/phpunit": "^9.5",
20-
"squizlabs/php_codesniffer": "^3",
21-
"drupal/core-recommended": "^10.1",
22-
"drupal/core-composer-scaffold": "^10.1",
23-
"mglaman/drupal-check": "^1.4",
24-
"symfony/phpunit-bridge": "^7.0",
25-
"drupal/coder": "^8.3"
19+
"drupal/core-recommended": "^10.2",
20+
"drupal/core-composer-scaffold": "^10.2",
21+
"drupal/core-dev": "^10.2"
2622
},
2723
"autoload-dev": {
2824
"psr-4": {
@@ -58,7 +54,9 @@
5854
"allow-plugins": {
5955
"composer/installers": true,
6056
"drupal/core-composer-scaffold": true,
61-
"dealerdirect/phpcodesniffer-composer-installer": true
57+
"dealerdirect/phpcodesniffer-composer-installer": true,
58+
"php-http/discovery": true,
59+
"phpstan/extension-installer": true
6260
}
6361
}
6462
}

phpstan.neon

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
parameters:
2+
level: 1
3+
ignoreErrors:
4+
- '#\Drupal calls should be avoided in classes, use dependency injection instead#'
5+

0 commit comments

Comments
 (0)