Closed carono closed 7 years ago
Both yii\db\ActiveRecord
and Yii\db\ActiveRecord
will be resolved to Yii\db\ActiveRecord
, or not? I.e. there is no difference.
https://3v4l.org/HkpSm -> Fatal error: Class 'Yii\db\ActiveRecord' not found
I expect the class to be yii\db\ActiveRecord
, because it has nothing to do with the previously specified Yii
and I specify this class directly in $class->addExtend('yii\db\ActiveRecord');
. In this case, yii\db\ActiveRecord
and Yii\db\ActiveRecord
this is not the same thing.
Look at this example https://3v4l.org/HkpSm, they are the same because PHP is case insensitive.
Yes, I looked at the demo more closely, indeed, this is normal behavior, for me it's unexpected, I'm sorry for the trouble.
Description
When you specify "uses", the class is not inherited correctly from the specified class, if they are partially matched and there is a difference in the registers.
Steps To Reproduce