Background of the issue:
I am trying to run my site on PHP 8.4 and encountered a deprecation notice related to WPML. The notice suggests that the $slash_helper parameter in the WPML_URL_Converter_CPT constructor needs to be explicitly marked as nullable for PHP 8.4 compatibility. Here is the error message: PHP Deprecated: WPML_URL_Converter_CPT::__construct(): Implicitly marking parameter $slash_helper as nullable is deprecated, the explicit nullable type must be used instead in /path/to/wp-content/plugins/sitepress-multilingual-cms/classes/url-handling/converter/class-wpml-url-converter-cpt.php on line 12. Link to a page where the issue can be seen: hidden link
Symptoms:
I encountered a deprecation notice when running my site on PHP 8.4, indicating that a parameter in the WPML_URL_Converter_CPT constructor needs to be explicitly marked as nullable.
Questions:
Could you please look into this deprecation notice for a future update?
The topic ‘[Closed] php 8.4 depreciation notice’ is closed to new replies.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.