You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To Reproduce
PHP 8.1
drush/drush 11.0.5
Custom test which uses the \Drush\TestTraits\DrushTestTrait::drush()
The optional $suffix = null argument causes the problem. $cmd[] = $suffix; $exec = array_filter($cmd, 'strlen');
Expected behavior
No warnings and errors.
Actual behavior
Deprecated: strlen(): Passing null to parameter 1 ($string) of type string is deprecated in /project/vendor/drush/drush/src/TestTraits/DrushTestTrait.php on line 79
Workaround
Probably a lazy error_reporting value in php.ini, but I haven't tried it.
System Configuration
Q
A
Drush version?
11.0.5
Drupal version?
9.3.5
PHP version
8.1.2
OS?
Linux
The text was updated successfully, but these errors were encountered:
Sweetchuck
added a commit
to Sweetchuck/drush
that referenced
this issue
Feb 9, 2022
To Reproduce
PHP 8.1
drush/drush 11.0.5
Custom test which uses the
\Drush\TestTraits\DrushTestTrait::drush()
The optional
$suffix = null
argument causes the problem.$cmd[] = $suffix;
$exec = array_filter($cmd, 'strlen');
Expected behavior
No warnings and errors.
Actual behavior
Deprecated: strlen(): Passing null to parameter 1 ($string) of type string is deprecated in /project/vendor/drush/drush/src/TestTraits/DrushTestTrait.php on line 79
Workaround
Probably a lazy
error_reporting
value in php.ini, but I haven't tried it.System Configuration
The text was updated successfully, but these errors were encountered: