Checks if class constant has a type

# ReflectionClassConstant::hasType

(PHP 8 >= 8.3.0)

ReflectionClassConstant::hasType — Checks if class constant has a type

### Beschreibung

public function ReflectionClassConstant::hasType(): bool

Checks if the class constant has a type associated with it.

### Parameter-Liste

Diese Funktion besitzt keine Parameter.

### Rückgabewerte

`true` if a type is specified, `false` otherwise.

### Siehe auch

- ReflectionClassConstant::getType() - Gets a class constant's type
- ReflectionType

`↑` and `↓` to navigate • `Enter` to select • `Esc` to close • `/` to open