20 if (!$this->type->isBuiltin())
25 if ($this->type->getName() === \gettype($this->desiredValue))
31 if (\is_float($this->desiredValue) && $this->type->getName() ===
'float')
36 if ($this->desiredValue ===
null && $this->type->allowsNull())
41 return match ($this->type->getName())
43 'bool' => \is_scalar($this->desiredValue),
44 'float',
'int' => \is_numeric($this->desiredValue),
45 'string' => \is_string($this->desiredValue),