Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #5196: Drush 8 warnings on PHP 8.1. #5286

Merged
merged 1 commit into from
Oct 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions commands/core/drupal/batch.inc
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ use Drush\Log\LogLevel;
* Saves a record of the batch into the database, and progressively call $command to
* process the operations.
*
* @param command
* @param string $command
* The command to call to process the batch.
*
* @param array $args
* @param array $options
*/
function _drush_backend_batch_process($command = 'batch-process', $args, $options) {
function _drush_backend_batch_process($command, $args, $options) {
$batch =& batch_get();

if (isset($batch)) {
Expand Down
7 changes: 4 additions & 3 deletions commands/core/drupal/batch_6.inc
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@ use Drush\Log\LogLevel;
* Saves a record of the batch into the database, and progressively call $command to
* process the operations.
*
* @param command
* @param string $command
* The command to call to process the batch.
*
* @param array $args
* @param array $options
*/
function _drush_backend_batch_process($command = 'batch-process', $args, $options) {
function _drush_backend_batch_process($command, $args, $options) {
$batch =& batch_get();

if (isset($batch)) {
Expand Down
7 changes: 4 additions & 3 deletions commands/core/drupal/batch_7.inc
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@ use Drush\Log\LogLevel;
* Saves a record of the batch into the database, and progressively call $command to
* process the operations.
*
* @param command
* @param string $command
* The command to call to process the batch.
*
* @param array $args
* @param array $options
*/
function _drush_backend_batch_process($command = 'batch-process', $args, $options) {
function _drush_backend_batch_process($command, $args, $options) {
$batch =& batch_get();

if (isset($batch)) {
Expand Down