best way to call function from an extended class
问题 I am using phpstorm as IDE. And in my class.php , I started the class as class MyClass extends Database{ function sample(){ $this->query(); } } the query() is in the class Database . But phpstorm shows a warning that Method 'query' not found in class MyClass. Referenced method is not found in subject class. But the function is working without any problem. Is there any problem with this code style? Or Do I need to try a different approach? I searched many websites. But didn't get a proper