CFPropertyList icon indicating copy to clipboard operation
CFPropertyList copied to clipboard

CFType may attempt to call createTextNode with a null value

Open andrew-pirkl opened this issue 1 year ago • 0 comments

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.

andrew-pirkl avatar May 13 '24 14:05 andrew-pirkl