Closed julban closed 8 years ago
A class_alias is defined so an instance of Hoa\Ruler\Model is an instance of Hoa\Ruler\Model\Model, this behavior is here to shorten the call.
plz see : https://github.com/hoaproject/Ruler/blob/master/Model/Model.php#L200
Ok I see, thx for the explanation! I guess the issue is resolved then :-)
@Jir4 :+1:
Hi, I have spotted a wrong use of instanceof having anyway the expected result. Have a look at Disassembly class :
should fail because expected class is Ruler\Model\Model , BUT it just works. I didn't know that instanceof works with upper level in namespace. In fact it does not, it's just because last level in checked namespace matches the classname.
To test it:
results in:
FYI, we're using PHP 5.5.9-1ubuntu4.14 . I guess that the condition I was talking about should be:
Thanks in advance!