0

I'm writing an autoloader but can't seem to get code hinting working on PHPStorm.

Here is the autoloader

function __autoloader()
{
    $arr = array(
        'class1',
        'class2',
        'class3',
    );

    foreach ($arr as $class)
    {
        require_once($class . '.php');
    }
}

$obj = new class1();
$obj->????

Assuming that each class is completely different, what is the best way to get code hinting with the above code?

Thanks.

1 Answer 1

0

With autoloaded classes, I do not think PHPstorm has the capability to do codehinting at the moment.

Check out more at this discussion

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.