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

Deprecated: strlen(): Passing null to parameter in Progress.php #199

Open
soulseekah opened this issue Jul 30, 2023 · 0 comments
Open

Deprecated: strlen(): Passing null to parameter in Progress.php #199

soulseekah opened this issue Jul 30, 2023 · 0 comments

Comments

@soulseekah
Copy link

Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /vendor/league/climate/src/TerminalObject/Dynamic/Progress.php on line 216

Call Stack:
    0.0003     435200   1. {main}() /view.php:0
    7.6875   16849320   2. League\CLImate\TerminalObject\Dynamic\Progress->advance($increment = ???, $label = ???) /view.php:89
    7.6875   16849320   3. League\CLImate\TerminalObject\Dynamic\Progress->current($current = 15507, $label = NULL) /vendor/league/climate/src/TerminalObject/Dynamic/Progress.php:125
    7.6875   16849320   4. League\CLImate\TerminalObject\Dynamic\Progress->drawProgressBar($current = 15507, $label = NULL) /vendor/league/climate/src/TerminalObject/Dynamic/Progress.php:111
    7.6875   16849352   5. League\CLImate\TerminalObject\Dynamic\Progress->getProgressBar($current = 15507, $label = NULL) /vendor/league/climate/src/TerminalObject/Dynamic/Progress.php:183
    7.6875   16849512   6. strlen($string = NULL) /vendor/league/climate/src/TerminalObject/Dynamic/Progress.php:216

Running on PHP 8.2. Passing in the label to progress calls as an empty string '' fixes the notice.

Related to #190

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

1 participant