Skip to content

Address implicit nullable parameter deprecation #163

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

samford
Copy link

@samford samford commented Feb 28, 2025

Implicit nullable parameter declarations are deprecated in PHP 8.4, so the following output appears when using SimpleXLSX with PHP 8.4:

Deprecated: Shuchkin\SimpleXLSXEx::getColorValue(): Implicitly marking parameter $a as nullable is deprecated, the explicit nullable type must be used instead in src/SimpleXLSXEx.php on line 614

This updates the type of the getColorValue function's $a parameter to be
explicitly nullable.

It's worth noting that nullable type declarations were introduced in PHP 7.1, so this is only a solution if your PHP target is at or above 7.1. [For what it's worth, PHP 7.1 has been unsupported (EOL) since 2019-12-01.]

Implicit nullable parameter declarations are deprecated in PHP 8.4,
so the following output appears when using SimpleXLSX with PHP 8.4:

`Deprecated: Shuchkin\SimpleXLSXEx::getColorValue(): Implicitly
marking parameter $a as nullable is deprecated, the explicit nullable
type must be used instead in src/SimpleXLSXEx.php on line 614`

This updates the type of the `getColorValue` function's `$a`
parameter to be explicitly nullable.
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

Successfully merging this pull request may close these issues.

1 participant