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

[error] Deprecated function: explode(): Passing null to parameter #2 on drush status #5332

Closed
guix77 opened this issue Dec 13, 2022 · 1 comment

Comments

@guix77
Copy link
Contributor

guix77 commented Dec 13, 2022

Describe the bug

 [error]  Message: /Deprecated function/: explode(): Passing null to parameter #2 ($string) of 
type string is deprecated in 
/Drush\Commands\core\StatusCommands::pathAliases()/ (line /231/ of 
//var/www/html/vendor/drush/drush/src/Commands/core/StatusCommands.php/). 
Drush\Commands\core\StatusCommands::pathAliases(Array, Object, Object) (Line: 
152)
Drush\Commands\core\StatusCommands->getPropertyList(Array) (Line: 82)
Drush\Commands\core\StatusCommands->status('', Array)
call_user_func_array(Array, Array) (Line: 257)
Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback(Array, 
Object) (Line: 212)
Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter(Array, 
Array, Object) (Line: 176)
Consolidation\AnnotatedCommand\CommandProcessor->process(Object, Array, 
Array, Object) (Line: 390)
Consolidation\AnnotatedCommand\AnnotatedCommand->execute(Object, Object) 
(Line: 255)
Symfony\Component\Console\Command\Command->run(Object, Object) (Line: 1039)
Symfony\Component\Console\Application->doRunCommand(Object, Object, Object) 
(Line: 275)
Symfony\Component\Console\Application->doRun(Object, Object) (Line: 149)
Symfony\Component\Console\Application->run(Object, Object) (Line: 124)
Drush\Runtime\Runtime->doRun(Array, Object) (Line: 51)
Drush\Runtime\Runtime->run(Array) (Line: 77)
require('/var/www/html/vendor/drush/drush/drush.php') (Line: 18)
drush_main() (Line: 143)
require('phar:///usr/local/bin/drush/bin/drush.php') (Line: 14)

To Reproduce

drush status

Expected behavior

No error

Actual behavior

Error

System Configuration

Q A
Drush version? 11.3.2
Drupal version? 9.4.9
PHP version 8.1.13
OS? Docker4Drupal => drupal-php container version 8.1-dev-4.38.5
weitzman added a commit that referenced this issue Dec 13, 2022
* #5332 fix drush status

* Use csvtoarray

Co-authored-by: Moshe Weitzman <weitzman@tejasa.com>
@weitzman
Copy link
Member

Fixed in #5333

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants