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
PHP Deprecated : trim() : Passing null to parameter #1 ($string) of type string is deprecated.
This happens when the default value for the question is null.
How to reproduce
// Method definition : https://github.com/symfony/console/blob/v6.0.2/Style/SymfonyStyle.php#L277$io->choice('Select the queue to analyze', ['queue1', 'queue2', 'queue3']); // The 3rd argument must be `null`.
Possible Solution
We can simply cast the variable to string to fix the issue. Just like this at this line: