PHP Deprecated: Creation of dynamic property
-
PHP8.4.12 / 8.4.13 have a bug
[24-Sep-2025 19:55:10 UTC] PHP Deprecated: Creation of dynamic property Nilambar\Welcome\Welcome::$product_name is deprecated in /home/admin/web/HIDEN/public_html/wp-content/plugins/nifty-coming-soon-and-under-construction-page/vendor/ernilambar/wp-welcome/src/Welcome.php on line 124
[24-Sep-2025 19:55:10 UTC] PHP Deprecated: Creation of dynamic property Nilambar\Welcome\Welcome::$product_version is deprecated in /home/admin/web/HIDEN/public_html/wp-content/plugins/nifty-coming-soon-and-under-construction-page/vendor/ernilambar/wp-welcome/src/Welcome.php on line 125
[24-Sep-2025 19:55:10 UTC] PHP Deprecated: Creation of dynamic property Nilambar\Welcome\Welcome::$product_slug is deprecated in /home/admin/web/HIDEN/public_html/wp-content/plugins/nifty-coming-soon-and-under-construction-page/vendor/ernilambar/wp-welcome/src/Welcome.php on line 126Solution, please add fix in nextUpdate
git add vendor/ernilambar/wp-welcome/src/Welcome.php
git commit -m “Declare product properties to avoid dynamic property deprecation on PHP 8.2+”/**
* Welcome class.
*
* @since 1.0.0
*/
class Welcome {
/**
* Product name.
*
* Declared explicitly to avoid creation of dynamic properties (PHP 8.2+ deprecated).
*
* @since 1.0.0
* @var string|null
*/
protected $product_name = null;
/**
* Product version.
*
* Declared explicitly to avoid creation of dynamic properties (PHP 8.2+ deprecated).
*
* @since 1.0.0
* @var string|null
*/
protected $product_version = null;
/**
* Product slug.
*
* Declared explicitly to avoid creation of dynamic properties (PHP 8.2+ deprecated).
*
* @since 1.0.0
* @var string|null
*/
protected $product_slug = null;
/** OTHER METHODS */
}
The topic ‘PHP Deprecated: Creation of dynamic property’ is closed to new replies.