Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<ReflectionClassConstant::getValueReflectionClassConstant::isDeprecated>
^ReflectionClassConstantLast updated: Mon, 26 Oct 2026

ReflectionClassConstant::hasType

(PHP 8 >= 8.3.0)

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

Description

public function ReflectionClassConstant::hasType(): bool

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

Parameters

This function has no parameters.

Return Values

true if a type is specified, false otherwise.

See Also


<ReflectionClassConstant::getValueReflectionClassConstant::isDeprecated>
^ReflectionClassConstantLast updated: Mon, 26 Oct 2026