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 some quite strict error checking in place, and I am getting a deprecation warning in PHP 8.2 that I don't get in earlier versions of PHP
It happens when some properties are not set, like Company or Title.
The properties in the main class are not initialized. So when it comes to writing them out, it passes NULL to htmlspecialchars in buildAppXML, passing an uninitialised variable to a system function. That is now deprecated, but probably unintentional.
Is etc required in the format? If not, I'd suggest omitting it if it is not set. If it is, I'd suggest initialising the various properties (as tags are for example).
Obviously, I worked around this by calling the setter functions for these, which without parameters do initialise the problem properties.
The text was updated successfully, but these errors were encountered:
I am having the same issue. I would expect these values to either be initialised, or - should they explicitly not be by contributor choice - for an E_NOTICE to be emitted, so that I'm aware that I must set them.
Many thanks for this code.
I have some quite strict error checking in place, and I am getting a deprecation warning in PHP 8.2 that I don't get in earlier versions of PHP
It happens when some properties are not set, like Company or Title.
The properties in the main class are not initialized. So when it comes to writing them out, it passes NULL to htmlspecialchars in buildAppXML, passing an uninitialised variable to a system function. That is now deprecated, but probably unintentional.
Is etc required in the format? If not, I'd suggest omitting it if it is not set. If it is, I'd suggest initialising the various properties (as tags are for example).
Obviously, I worked around this by calling the setter functions for these, which without parameters do initialise the problem properties.
The text was updated successfully, but these errors were encountered: