original_string: public static function boolval($value)
      {
          deprecationWarning('Type::boolval() is deprecated.');
          if (is_string($value) && !is_numeric($value)) {
              return strtolower($value) === 'true';
          }
  
          return !empty($value);
      }
code: public static function boolval($value)
      {
          deprecationWarning('Type::boolval() is deprecated.');
          if (is_string($value) && !is_numeric($value)) {
              return strtolower($value) === 'true';
          }
  
          return !empty($value);
      }
code_tokens: public static function boolval ( $ value ) { deprecationWarning ( 'Type::boolval() is deprecated.' ) ; if ( is_string ( $ value ) && ! is_numeric ( $ value ) ) { return strtolower ( $ value ) === 'true' ; } return ! empty ( $ value ) ; }
docstring: Type converter for boolean values.
  
  Will convert string true/false into booleans.
  
  @param mixed $value The value to convert to a boolean.
  @return bool
  @deprecated 3.1.8 This method is now unused.
docstring_tokens: Type converter for boolean values .