• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Warnings when using RSFirewall and php 8.2

Warnings when using RSFirewall and php 8.2 1 year 7 months ago #42246

Hello,
I am currently testing a Joomla 4 website which I plan to migrate soon.
Upgrading php to 8.2 for testing purposes, I found out the 2 following warnings:

Deprecated: Return type of GeoIp2\Model\AbstractModel::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in xxxxxx/administrator/components/com_rsfirewall/helpers/geolite2/src/Model/AbstractModel.php on line 63

Deprecated: Return type of GeoIp2\Record\AbstractRecord::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in xxxxxx/administrator/components/com_rsfirewall/helpers/geolite2/src/Record/AbstractRecord.php on line 57

Could you pls point me to a way to fix this?

Thx much!
The topic has been locked.

Warnings when using RSFirewall and php 8.2 1 year 7 months ago #42247

PS: for now, I have implemented the #[\ReturnTypeWillChange] directive but it would probably be better to use a typed return value but I don't know which one...
Thx
The topic has been locked.

Warnings when using RSFirewall and php 8.2 1 year 5 months ago #42345

Hello,

Same issue again....
Last Edit: 1 year 5 months ago by marc.levi.
The topic has been locked.

Warnings when using RSFirewall and php 8.2 1 year 5 months ago #42346

Should somebody face the same issue:

Fixed them by changing the return type to : mixed both in administrator/components/com_rsfirewall/helpers/geolite2/src/Model/AbstractModel.php and in administrator/components/com_rsfirewall/helpers/geolite2/src/Record/AbstractRecord.php.
The topic has been locked.

Warnings when using RSFirewall and php 8.2 8 months 3 hours ago #42911

  • octavian
  • octavian's Avatar
  • NOW ONLINE
  • RSJoomla! Official Staff
  • Posts: 783
  • Thank you received: 110
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
The topic has been locked.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!