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

CFType may attempt to call createTextNode with a null value #76

Open
apirkl opened this issue May 13, 2024 · 0 comments
Open

CFType may attempt to call createTextNode with a null value #76

apirkl opened this issue May 13, 2024 · 0 comments

Comments

@apirkl
Copy link

apirkl commented May 13, 2024

CFType may have a null value https://github.com/TECLIB/CFPropertyList/blob/develop/src/CFPropertyList/CFType.php#L63 and attempt to call createTextNode https://github.com/TECLIB/CFPropertyList/blob/develop/src/CFPropertyList/CFType.php#L110 with that null value. This is deprecated in php 8 and throws the error:

Passing null to parameter #1 ($data) of type string is deprecated

This is related to: https://wiki.php.net/rfc/deprecate_null_to_scalar_internal_arg and should be fixed before passing null to non-nullable arguments is removed in a future php version.

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