Hi,
This is cosmetic but perhaps there is some know solution?
I use amazing PhpStorm IDE from JetBrains. It supports type hints now.
So, presuming the target function is like that:
public function setProfile(Profile $profile)
{
$this->_profile = $profile;
}
where "Profile" is an instance of specific class (declared with "use" statement)
if I write as follows:
$profile = new Profile();
$user->setProfile($profile);
everything is fine, but if i code like this:
$profile = Yii::createObject(Profile::className());
$user->setProfile($profile);
I get this inspection warning:
Invocation parameter types are not compatible with declared
This is minor issue of course, but perhaps you know how to let the IDE understand the meaning of createObject
Rgs,