Welcome Guest, Not a member yet? Register   Sign In
PHPStorm yellow "Method not found in" notices

(This post was last modified: 04-14-2020, 05:26 AM by Leo. Edit Reason: clarity )

The codeigniter plugin didn't help. I figured it out after digging the internet for a while - heres to any other newb, like me, looking.
PHP Code:
<?php namespace App\Controllers;


Media extends BaseController
    /* @var $model MediaModel */
    protected $model;

    public function doSomething()
        $this->model = new MediaModel();
$stuff $this->doSomethingElse();
private function doSomethingElse()
        return $this->model->findAll(); //NO MORE TEARS! PHPSTORM FINDS THE METHOD

So basically do this:
/* @var $model MediaModel */
protected $model;
You can see things I made with codeigniter here: itart.pro its not overly impressive as I have very little time to learn.

Messages In This Thread
RE: PHPStorm yellow "Method not found in" notices - by Leo - 04-14-2020, 04:43 AM

Theme © iAndrew 2016 - Forum software by © MyBB