Open lahyenne opened 11 months ago
Hello @lahyenne thanks for the feedback. The Weather Station plugin hasn't been tested up to PHP 8.2 yet. In fact, I guess the whole codebase has been developed when PHP 7.x was the current version, I guess the whole codebase will have to be tested for PHP 8.x.
I committed and merged a fix. This needs to be tested as part of the future 3.8.14 version (FYI the review and validation of 3.8.13 is pending on WordPress.org).
@lahyenne I just released version 3.8.14, would you mind testing it and providing feedback if it resolves the error you reported? Many thanks
functions like this one in the file
/wp-content/plugins/live-weather-station/includes/traits/DataUnitConversion.php
:throw an error in PHP 8.2 (it works fine in PHP 7.4) when
$result='NULL'
when executing the round command. I run a test with the following modification, and it works for me (maybe not the best) :