Problem/Motivation
PHP warning occurs when calling AssetUpdater::queueAssets() without the finalized-version option key in the $options array:
Warning: Undefined array key "finalized-version" in Drupal\acquia_dam\AssetUpdater::queueAssets() (line 62)
Steps to reproduce
- Call AssetUpdater::queueAssets() with options missing the finalized-version key:
$updater->queueAssets(['batch-size' => 50]); // Missing 'finalized-version'
Or invoke via Drush/CLI/UI where options array lacks this specific key. - Observe the warning at line 62:
$finalized_version = (bool) ($options['finalized-version'] ?? FALSE);
Proposed resolution
- Replace direct array access with safe key checking like array_key_exists() or isset().
Issue fork acquia_dam-3565608
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
rajeshreeputraRequesting review.
Comment #5
rajeshreeputraMerged!