Tempest version
3.x-dev 56ba5ea
PHP version
8.5
Operating system
Linux
Description
When instantiating a TypeReflector for AnnulledInvoice::class, the isNullable() method erroneously returns true.
Steps to reproduce
<?php
use Tempest\Core\Tempest;
use Tempest\Reflection\TypeReflector;
require('vendor/autoload.php');
$container = Tempest::boot(__DIR__, []);
final readonly class AnnulledInvoice {
}
$r = new TypeReflector(AnnulledInvoice::class);
var_dump($r->isNullable()); // bool(true)