// NOTE: With php 8.1 enums, global constants can be assigned to enums,
// so this can be any valid type starting in php 8.1.
UnionType::fromFullyQualifiedRealString('mixed'),
$flags,
$fqsen
);
// $is_fully_qualified is true for define('name', $value)
// define() is typically used to conditionally set constants or to set them to variable values.
// TODO: Could add 'configuration_constant_set' to add additional constants to treat as dynamic such as PHP_OS, PHP_VERSION_ID, etc. (convert literals to non-literal types?)
// Skip checking child nodes for anonymous classes, closures
}
/**
* @param Node|string|float|int|bool|null $n
* @return bool - If true, then the inferred type for $n does not depend on the current scope, but isn't necessarily constant (e.g. static method invocation in loop, global)