From f671d2e75365841b049e7d7178f18b825b51334d Mon Sep 17 00:00:00 2001 From: argiepiano Date: Tue, 6 Jan 2026 08:54:40 -0700 Subject: [PATCH] Issue #467. Replace non-cannonical typehinting. Fixes #467 --- modules/callbacks.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/callbacks.inc b/modules/callbacks.inc index 3d8a521..b865a48 100644 --- a/modules/callbacks.inc +++ b/modules/callbacks.inc @@ -464,7 +464,7 @@ function entity_plus_metadata_field_property_get($entity, array $options, $name, $values[$delta] = $data[$columns[0]]; if ($info['type'] == 'boolean' || $info['type'] == 'list') { // Ensure that we have a clean boolean data type. - $values[$delta] = (boolean) $values[$delta]; + $values[$delta] = (bool) $values[$delta]; } } } @@ -487,7 +487,7 @@ function entity_plus_metadata_field_property_set($entity, $name, $value, $langco $items[$delta][$columns[0]] = $value; if ($info['type'] == 'boolean' || $info['type'] == 'list') { // Convert boolean values back to an integer for writing. - $items[$delta][$columns[0]] = (integer) $items[$delta][$columns[0]] = $value; + $items[$delta][$columns[0]] = (int) $items[$delta][$columns[0]] = $value; } } }