Skip to content
Open
9 changes: 6 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,30 @@
"discoverygarden/islandora_drush_utils": "^1 || ^2",
"discoverygarden/update-helper": "^1",
"drupal/controlled_access_terms": "^2",
"drupal/imagemagick": "^3.2",
"drupal/imagemagick": "^3.2 || ^4",
"drupal/islandora": "^2",
"drupal/migrate_directory": "^1 || ^2",
"drupal/migrate_plus": "^5.1 || ^6",
"drupal/migrate_tools": "^6.1.0",
"drupal/paragraphs": "^1",
"drupal/pathauto": "^1.8",
"iqb/substream": "dev-master",
"symfony/mime": "^5 || ^6"
"symfony/mime": "^5 || ^6 || ^7"
},
"require-dev": {
"drupal/devel": "^4"
},
"conflict": {
"drupal/core": "<10.1"
},
"suggest": {
"discoverygarden/entity_reference_integrity_extra": "Deal with addtional 'entity_reference' fields.",
"drupal/entity_reference_integrity": "Used to check things when a migration elects to 'manage_orphans'."
},
"extra": {
"drush": {
"services": {
"drush.11-12.services.yml": "^11.6 || ^12",
"drush.11-12.services.yml": ">=11.6",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🌐 Web query:

Drush 13 release Drupal 11 compatibility

💡 Result:

  • Drush 13.0.0 release date: August 2, 2024. [1]
  • Drupal 11 compatibility: Yes — Drush 13 is marked as supported/recommended for Drupal 11 (and compatible with Drupal 10.2+). [2]
  • Key requirement: Drush 13 requires PHP 8.3+. [2]

Sources:
[1] endoflife.date (Drush release timeline)
[2] Drush docs (Drupal compatibility table)


Revisit the open-ended Drush services constraint now that Drush 13 is released.

Drush 13 was released in August 2024 and is compatible with Drupal 11. The constraint >=11.6 does match Drush 13 as intended, but given the commit message indicated this was a "temporary/compatibility change," the constraint approach should be formally reassessed. Determine whether this open-ended constraint will remain appropriate for Drush 14+ or if it requires tightening to a specific upper bound (e.g., >=11.6,<14.0).

🤖 Prompt for AI Agents
In `@composer.json` at line 34, The current Composer platform config entry for
"drush.11-12.services.yml" uses an open-ended constraint ">=11.6"; update this
to a bounded version to avoid accidentally allowing incompatible Drush major
releases (e.g., change the constraint to ">=11.6,<14.0" or another agreed upper
bound) and document the chosen bound in a brief comment or commit message;
locate the key "drush.11-12.services.yml" in composer.json and replace the
version string accordingly, ensuring composer validate passes and running a
quick compatibility test (e.g., install or update) to confirm no regressions.

"drush.10-11.services.yml": "^10 || >=11.0.0 <11.6"
}
}
Expand Down
2 changes: 1 addition & 1 deletion dgi_migrate.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: 'DGI Migrate'
description: "DGI Migration Support."
type: module
package: DGI
core_version_requirement: ^9 || ^10
core_version_requirement: ^10 || ^11
dependencies:
- drupal:media
- drupal:migrate
Expand Down
2 changes: 1 addition & 1 deletion modules/devel/dgi_migrate_devel.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: DGI Migrate Devel Plugin(s)
description: "Devel plugins."
type: module
package: DGI
core_version_requirement: ^9 || ^10
core_version_requirement: ^10 || ^11
dependencies:
- drupal:migrate
- dgi_migrate:dgi_migrate
Expand Down
2 changes: 1 addition & 1 deletion modules/dgi_migrate_alter/dgi_migrate_alter.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ name: 'DGI Migrate Alter'
description: "Allows easy alterations of migrations through plugins."
type: module
package: DGI
core_version_requirement: ^9 || ^10
core_version_requirement: ^10 || ^11
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ name: 'DGI Migrate, big set overrides'
description: "Toggle off some things that take cause issues with resource constraints, while running a migration/batch."
type: module
package: DGI
core_version_requirement: ^9 || ^10
core_version_requirement: ^10 || ^11
2 changes: 1 addition & 1 deletion modules/dgi_migrate_dspace/dgi_migrate_dspace.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: DGI Migrate DSpace
description: DSpace Migrations to import AIP ZIP exports.
package: DGI Helpers
type: module
core_version_requirement: ^9 || ^10
core_version_requirement: ^10 || ^11
dependencies:
- drupal:migrate
- dgi_migrate:dgi_migrate
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: 'DGI Migrate EDTF Validator'
description: "DGI Migration EDTF Support."
type: module
package: DGI
core_version_requirement: ^9 || ^10
core_version_requirement: ^10 || ^11
dependencies:
- drupal:migrate
- controlled_access_terms:controlled_access_terms
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: DGI Migrate FOXML (Standard MODS)
description: "FOXML migration for MODS into the DGI standard content type"
type: module
package: DGI
core_version_requirement: ^9 || ^10
core_version_requirement: ^10 || ^11
dependencies:
- drupal:migrate
- dgi_migrate:dgi_migrate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: DGI Migrate FOXML (Standard MODS) XSLT
description: "XSLT preprocessing for FOXML migration for MODS into the DGI standard content type"
type: module
package: DGI
core_version_requirement: ^9 || ^10
core_version_requirement: ^10 || ^11
dependencies:
- dgi_migrate:dgi_migrate
- dgi_migrate:dgi_migrate_foxml_standard_mods
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class RoleMapperMigrationTest extends KernelTestBase {
/**
* {@inheritdoc}
*/
public static $modules = [
protected static $modules = [
'migrate',
'dgi_migrate',
'dgi_migrate_foxml_standard_mods',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public function testRoleMapper($path, $expected_roles) {
$roles = $this->plugin->mapRoles($element, $this->xpath);

$this->assertSame($expected_roles, array_intersect($expected_roles, $roles), 'Received found the expected role(s).');
$this->assertSame(count($expected_roles), count($roles), 'Had same number of roles.');
$this->assertCount(count($expected_roles), $roles, 'Had same number of roles.');
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: 'DGI Migrate Imagemagick Cleanup'
description: "Imagemagick helper."
type: module
package: DGI
core_version_requirement: ^9 || ^10
core_version_requirement: ^10 || ^11
dependencies:
- drupal:migrate
- imagemagick:imagemagick
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: 'DGI Migrate Paragraphs'
description: "DGI Paragraph Migration Support."
type: module
package: DGI
core_version_requirement: ^9 || ^10
core_version_requirement: ^10 || ^11
dependencies:
- drupal:migrate
- paragraphs:paragraphs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: 'DGI Migrate, regenerate Pathauto aliases'
description: "Provides a way to regenerate Pathauto aliases that were initially disabled."
type: module
package: DGI
core_version_requirement: ^9 || ^10
core_version_requirement: ^10 || ^11
dependencies:
- pathauto:pathauto
- islandora_drush_utils:islandora_drush_utils
2 changes: 1 addition & 1 deletion src/MigrateBatchExecutable.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ protected function getQueue() : QueueInterface {
/**
* {@inheritdoc}
*/
public function __sleep() {
public function __sleep() : array {
$vars = $this->traitSleep();
$to_suppress = [
// XXX: Avoid serializing some things can't be natively serialized.
Expand Down
2 changes: 1 addition & 1 deletion src/Plugin/migrate/id_map/SmartSql.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function __construct(array $configuration, $plugin_id, $plugin_definition

// Default generated table names, limited to 63 characters.
$machine_name = mb_strtolower(str_replace(PluginBase::DERIVATIVE_SEPARATOR, '__', $this->migration->id()));
$prefix_length = strlen($this->database->tablePrefix());
$prefix_length = strlen($this->database->getPrefix());
$max_length = self::TABLE_NAME_CHARACTER_LIMIT - $prefix_length;

$map_table_name = self::MAP_TABLE_PREFIX . $machine_name;
Expand Down
2 changes: 1 addition & 1 deletion src/Plugin/migrate/source/Migration.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public function __toString() {
/**
* {@inheritdoc}
*/
public function __sleep() {
public function __sleep() : array {
$vars = parent::__sleep();

$to_suppress = [
Expand Down
2 changes: 1 addition & 1 deletion src/StompQueue.php
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ public function deleteQueue() {
/**
* {@inheritDoc}
*/
public function __sleep() {
public function __sleep() : array {
$vars = $this->dstSleep();

$to_suppress = [
Expand Down
Loading