Open paulbalandan opened 1 year ago
By default, PHPStan does not know what is the relation of $casts to the properties of Entities. We need to teach it that the content of $casts influence the type of the properties.
$casts
Originally posted by @paulbalandan in https://github.com/CodeIgniter/phpstan-codeigniter/issues/7#issuecomment-1803636422
Originally posted by @paulbalandan in https://github.com/CodeIgniter/phpstan-codeigniter/issues/7#issuecomment-1803636422