Needs review
Project:
Monitoring
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Apr 2026 at 16:36 UTC
Updated:
23 Apr 2026 at 16:50 UTC
Jump to comment: Most recent
On PHP 8.5, loading sensor plugins triggers the following deprecation:
Deprecated function: Non-canonical cast (boolean) is deprecated, use the (bool) cast instead in include() (line 576 of /var/www/html/vendor/composer/ClassLoader.php)The cast is parsed at file include time. Two occurrences in the module:
src/SensorPlugin/SensorPluginBase.php:113 — return (boolean) $this->sensorConfig->isEnabled();src/Entity/SensorConfig.php:325 — return (boolean) $this->status;Replace (boolean) with the canonical (bool) cast at both locations.
Merge request.
None.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
mably commentedComment #4
mably commented