The type Dynamic\Salsify\TypeHand...erStripe\ORM\DataObject was not found. Did you mean SilverStripe\ORM\DataObject? If so, make sure to prefix the type with \.
Loading history...
26
* @param $data
27
* @param $dataField
28
* @param $config
29
* @param $dbField
30
* @return string|int
31
*
32
* @return string|boolean|int|double
33
*/
34
public function handleBooleanType($class, $data, $dataField, $config, $dbField)
The expression return $this->isTrue($data[$dataField]) also could return the type boolean which is incompatible with the documented return type integer|string.
Loading history...
37
}
38
39
/**
40
* @param $val
41
* @param bool $return_null
42
* @return bool|mixed|null
43
*
44
* FROM https://www.php.net/manual/en/function.boolval.php#116547
45
*/
46
public function isTrue($val, $return_null = false)