I have class A which extends class B. When calling method a() from A, which is not in B, PhPStorm only looks into B and reports error method not found. The code itself runs ok.
Such behaviour that you are seeing suggests that your setHotel() method has wrong signature (wrong/unexpected return type in PHPDoc or whatnot).
Right now it looks like setHotel() tells that it returns instance of \Previo_Alfred_Mail while it should be \Previo_Alfred_Mail_ServiceOrder (as far as I understood your situation). Proper @return in PHPDoc comment should do the job.
Need to see source code to give any proper suggestions.
Hi there,
It usually works properly in such cases.
Such behaviour that you are seeing suggests that your setHotel() method has wrong signature (wrong/unexpected return type in PHPDoc or whatnot).
Right now it looks like setHotel() tells that it returns instance of \Previo_Alfred_Mail while it should be \Previo_Alfred_Mail_ServiceOrder (as far as I understood your situation). Proper @return in PHPDoc comment should do the job.
Need to see source code to give any proper suggestions.
Hi Andriy,
thanks a lot, that was the case here, my bad :-)