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
I have a little blink before show menu, because many deprecated warning is write before like
Deprecated: array_fill(): Passing null to parameter #2 ($count) of type int is deprecated in /Users/alexandre/Tools/krg-env/vendor/php-school/cli-menu/src/MenuStyle.php on line 672
PHP Deprecated: str_repeat(): Passing null to parameter #2 ($times) of type int is deprecated in /Users/alexandre/Tools/krg-env/vendor/php-school/cli-menu/src/MenuStyle.php on line 493
How reproduce:
Environment: php8.1, Mac Os Big Sur, iterm2 with zsh
Require cli menu and launch basic use found in doc
Hello,
Sorry by advence for my poor english.
I have a little blink before show menu, because many deprecated warning is write before like
Deprecated: array_fill(): Passing null to parameter #2 ($count) of type int is deprecated in /Users/alexandre/Tools/krg-env/vendor/php-school/cli-menu/src/MenuStyle.php on line 672
PHP Deprecated: str_repeat(): Passing null to parameter #2 ($times) of type int is deprecated in /Users/alexandre/Tools/krg-env/vendor/php-school/cli-menu/src/MenuStyle.php on line 493
How reproduce:
Environment: php8.1, Mac Os Big Sur, iterm2 with zsh
Require cli menu and launch basic use found in doc
My proposition:
Add shortand
$var ?? 0
onstr_repeat()
andarray_fill()
parameters.Maybe add a
declare(strict_types=1);
for renforce code?I will propose a PR soon.
Temporary fix:
A bad but functional
error_reporting(E_ALL ^ E_DEPRECATED);
before use remove deprecated warning.The text was updated successfully, but these errors were encountered: