As far as I know, Yii just assigns the values received from the PDO, so probably it should be a PDO. Tbh, I really don't rely on real variable types in PHP, since it is a soft-type language, and it can be dangerous. Imo is better to call is_numeric than to check the actual type of a variable, for example.
Blizz source
share