function GPBUtil::checkBool
40 calls to GPBUtil::checkBool()
- AnyValue::setBoolValue in vendor/
open-telemetry/ gen-otlp-protobuf/ Opentelemetry/ Proto/ Common/ V1/ AnyValue.php - Generated from protobuf field <code>bool bool_value = 2;</code>
- BoolValue::setValue in vendor/
google/ protobuf/ src/ Google/ Protobuf/ BoolValue.php - The bool value.
- EnumOptions::setAllowAlias in vendor/
google/ protobuf/ src/ Google/ Protobuf/ Internal/ EnumOptions.php - Set this option to true to allow mapping different tag names to the same value.
- EnumOptions::setDeprecated in vendor/
google/ protobuf/ src/ Google/ Protobuf/ Internal/ EnumOptions.php - Is this enum deprecated? Depending on the target platform, this can emit Deprecated annotations for the enum, or it will be completely ignored; in the very least, this is a formalization for deprecating enums.
- EnumOptions::setDeprecatedLegacyJsonFieldConflicts in vendor/
google/ protobuf/ src/ Google/ Protobuf/ Internal/ EnumOptions.php - Enable the legacy handling of JSON field name conflicts. This lowercases and strips underscored from the fields before comparison in proto3 only. The new behavior takes `json_name` into account and applies to proto2 as well. TODO Remove this legacy…
File
-
vendor/
google/ protobuf/ src/ Google/ Protobuf/ Internal/ GPBUtil.php, line 164
Class
Namespace
Google\Protobuf\InternalCode
public static function checkBool(&$var) {
if (is_array($var) || is_object($var)) {
throw new \Exception("Expect boolean.");
}
$var = boolval($var);
}