- Posts: 11
- Thank you received: 0
Plugin and deprecated dynamic properties with php 8.2
- pif
- Topic Author
- Offline
- New Member
Less
More
1 year 8 months ago #14907
by pif
Plugin and deprecated dynamic properties with php 8.2 was created by pif
Hello Dima,
with PHP 8.2 and error reporting set to maximum in Joomla 4.2.9,
the following warning messages are displayed :
Deprecated: Creation of dynamic property plgContentPlgZhOSMMap::$loadtype is deprecated in /www/plugins/content/plgzhosmmap/plgzhosmmap.php on line 68
Deprecated: Creation of dynamic property plgContentPlgZhOSMMap::$load_delay is deprecated in /www/plugins/content/plgzhosmmap/plgzhosmmap.php on line 87
Deprecated: Creation of dynamic property plgContentPlgZhOSMMap::$current_custom_js_path is deprecated in /www/plugins/content/plgzhosmmap/plgzhosmmap.php on line 94
Deprecated: Creation of dynamic property plgContentPlgZhOSMMap::$useObjectStructure is deprecated in /www/plugins/content/plgzhosmmap/plgzhosmmap.php on line 97
You have more information here :
www.php.net/manual/fr/migration82.deprecated.php
This is not really a problem if error reporting is set to none, minimum or by default.
But maybe in the futures versions of PHP, creation of dynamic property would not be longer accepted.
The plugin version tested is : 3.23.2.21
Let me know if you need further information,
Regards,
with PHP 8.2 and error reporting set to maximum in Joomla 4.2.9,
the following warning messages are displayed :
Deprecated: Creation of dynamic property plgContentPlgZhOSMMap::$loadtype is deprecated in /www/plugins/content/plgzhosmmap/plgzhosmmap.php on line 68
Deprecated: Creation of dynamic property plgContentPlgZhOSMMap::$load_delay is deprecated in /www/plugins/content/plgzhosmmap/plgzhosmmap.php on line 87
Deprecated: Creation of dynamic property plgContentPlgZhOSMMap::$current_custom_js_path is deprecated in /www/plugins/content/plgzhosmmap/plgzhosmmap.php on line 94
Deprecated: Creation of dynamic property plgContentPlgZhOSMMap::$useObjectStructure is deprecated in /www/plugins/content/plgzhosmmap/plgzhosmmap.php on line 97
You have more information here :
www.php.net/manual/fr/migration82.deprecated.php
This is not really a problem if error reporting is set to none, minimum or by default.
But maybe in the futures versions of PHP, creation of dynamic property would not be longer accepted.
The plugin version tested is : 3.23.2.21
Let me know if you need further information,
Regards,
Please Log in or Create an account to join the conversation.
- Dima
- Offline
- Platinum Member
1 year 8 months ago #14908
by Dima
Don't forget support my developments: post review in JED , donate , help with translation
Replied by Dima on topic Plugin and deprecated dynamic properties with php 8.2
Hi
I use 8.0 and can't test it now.
Is it all list of warnings. If yes, I need to analyze it, because there are many other assignments in nearby lines and it doesn't appear in your list.
If it is not all, post all warnings stack
I use 8.0 and can't test it now.
Is it all list of warnings. If yes, I need to analyze it, because there are many other assignments in nearby lines and it doesn't appear in your list.
If it is not all, post all warnings stack
Don't forget support my developments: post review in JED , donate , help with translation
Please Log in or Create an account to join the conversation.
- Dima
- Offline
- Platinum Member
1 year 8 months ago #14909
by Dima
Don't forget support my developments: post review in JED , donate , help with translation
Replied by Dima on topic Plugin and deprecated dynamic properties with php 8.2
Look at my code
lines 66-69
I can't see difference
lines 66-69
Code:
$this->compatiblemode = $comparams->get( 'map_compatiblemode');
$this->httpsprotocol = $comparams->get('httpsprotocol');
$this->loadtype = $comparams->get('loadtype');
$this->apiversion = $comparams->get('map_api_version');
I can't see difference
Don't forget support my developments: post review in JED , donate , help with translation
Please Log in or Create an account to join the conversation.
- Dima
- Offline
- Platinum Member
1 year 8 months ago #14910
by Dima
Don't forget support my developments: post review in JED , donate , help with translation
Replied by Dima on topic Plugin and deprecated dynamic properties with php 8.2
I think I found problem.
Check new release of plugin
Check new release of plugin
Don't forget support my developments: post review in JED , donate , help with translation
Please Log in or Create an account to join the conversation.
- pif
- Topic Author
- Offline
- New Member
Less
More
- Posts: 11
- Thank you received: 0
1 year 8 months ago #14911
by pif
Replied by pif on topic Plugin and deprecated dynamic properties with php 8.2
Hello,
the last version of the plugin fixes the issue.
The warnings are no longer displayed with error reporting set to maximum.
Many thanks,
the last version of the plugin fixes the issue.
The warnings are no longer displayed with error reporting set to maximum.
Many thanks,
Please Log in or Create an account to join the conversation.
Time to create page: 0.177 seconds