CMS MADE SIMPLE FORGE

CMS Made Simple Core

 

[#12802] PHP >8.1 Deprecated: Creation of dynamic property CmsAdminThemeNotification::$html is deprecated in

avatar
Created By: Krisztian Kishazi (kishman155)
Date Submitted: Sat Sep 13 01:25:00 -0400 2025

Assigned To:
Version: 2.2.22
CMSMS Version: 2.2.22
Severity: Trivial
Resolution: None
State: Open
Summary:
PHP >8.1 Deprecated: Creation of dynamic property CmsAdminThemeNotification::$html is deprecated in
Detailed Description:
The Code

/**
	 * @ignore
	 */
	public function __get($key)
	{
		switch( $key ) {
		case 'module':
		case 'priority':
		case 'html':
			return $this->$key;
		}

throw new CmsInvalidDataException('Attempt to retrieve invalid property from
CmsAdminThemeNotification');
	}


	/**
	 * @ignore
	 */
	public function __set($key,$value)
	{
		switch( $key ) {
		case 'module':
		case 'priority':
		case 'html':
			$this->$key = $value;
			return;
		}

throw new CmsInvalidDataException('Attempt to set invalid property from
CmsAdminThemeNotification');
	}

should be something like that

/**
	 * @ignore
	 */
	public function __get($key)
	{
		switch( $key ) {
		case 'module':
		case 'priority':
		case 'html':
			$thevar='_'.$key;
			return $this->$thevar;
		}

throw new CmsInvalidDataException('Attempt to retrieve invalid property from
CmsAdminThemeNotification');
	}


	/**
	 * @ignore
	 */
	public function __set($key,$value)
	{
		switch( $key ) {
		case 'module':
		case 'priority':
		case 'html':
			$thevar='_'.$key;
			$this->$thevar = $value;
			return;
		}

throw new CmsInvalidDataException('Attempt to set invalid property from
CmsAdminThemeNotification');
	}



History