Skip to content

Commit d436533

Browse files
committed
Use type casting instead of the type function
1 parent a388f4b commit d436533

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/MetaModels/Filter/Setting/Published/Checkbox.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ public function prepareRules(IFilter $objFilter, $arrFilterUrl)
4949
$objAttribute = $this->getMetaModel()->getAttributeById($this->get('attr_id'));
5050

5151
$publishedValue = 1;
52-
if (intval($objAttribute->get('check_publish')) === 1
53-
&& intval($objAttribute->get('check_inverse')) === 1
52+
if ((int) $objAttribute->get('check_publish') === 1
53+
&& (int) $objAttribute->get('check_inverse') === 1
5454
) {
5555
$publishedValue = '';
5656
}

0 commit comments

Comments
 (0)