accept bool 1 value, fix for php 8.1
This commit is contained in:
@@ -473,7 +473,7 @@ class BaseEntity implements Entity
|
||||
return $value;
|
||||
|
||||
case self::BOOL:
|
||||
return ($value === true || $value === 'true' || $value === '1');
|
||||
return ($value === 1 || $value === '1' || $value === true || $value === 'true');
|
||||
|
||||
case self::INT:
|
||||
return intval($value);
|
||||
|
||||
Reference in New Issue
Block a user