Skip to content

Conversation

@blink38
Copy link

@blink38 blink38 commented Mar 20, 2025

Since PHP 8.2, dynamic properties are deprecated.

In exacomp/lib/classes.php, line 689, the __set() method is using dynamic properties :

$this->$name = $value;

So when settings my portfolio view, ajax request to /blocks/exaport/views_mod.php response with deprecated message :

Deprecated: Creation of dynamic property block_exacomp\topic::$sorting is deprecated in /var/www/html/moodle/blocks/exacomp/lib/classes.php on line 689
Deprecated: Creation of dynamic property block_exacomp\topic::$title is deprecated in /var/www/html/moodle/blocks/exacomp/lib/classes.php on line 689

Even if configuring error_reporting in php ini configuration, the deprecated message appear in ajax response. It's because error_reporting is changed in inc.php file.

The merge request is for removing E_DEPRECATED from error_reporting change made in inc.php file, so that deprecated message disappear from ajax request.

avoid deprecated message in ajax request response.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant