FILTER_SANITIZE_STRING is deprecated in the latest PHP versions.
According to PHP docs, It is solved by replacing FILTER_SANITIZE_STRING to FILTER_SANITIZE_FULL_SPECIAL_CHARS.
Dynamic property creation is not allowed
This error occurs if we use a class data member without declaring it in class.
class Some_Class {
public function __constructure () {
// In the below line, we get an error in the latest version of PHP because we didn't declare the data member `$some_var` in class.
$this->some_var = 123;
}
/**
* It can be fixed by declaring data members in the class.
*/
class Some_Class {
public $some_var;
public function __constructure ()
$this->some_var = 123;
}
}
It is produced by the RTMediaUserInteraction class, where strings are passed as args and are used to create class properties dynamically.
It is solved by adding those properties to the RTMediaUserInteraction class.
Note
These changes are support for 7.0 and later versions of PHP.
Fix PHP deprecated notices
These
PHP
deprecated notices are resolvedFILTER_SANITIZE_STRING
filter deprecatedFILTER_SANITIZE_STRING
is deprecated in the latest PHP versions.FILTER_SANITIZE_STRING
toFILTER_SANITIZE_FULL_SPECIAL_CHARS
.Dynamic property creation is not allowed
This error occurs if we use a class data member without declaring it in class.
RTMediaUserInteraction
class, where strings are passed as args and are used to create class properties dynamically.RTMediaUserInteraction
class.Note
Related Issue
1987