Skip to content
This repository has been archived by the owner on Feb 17, 2025. It is now read-only.

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

Open
andrew-pirkl opened this issue May 13, 2024 · 0 comments
Open

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

andrew-pirkl opened this issue May 13, 2024 · 0 comments

Comments

@andrew-pirkl
Copy link

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant