New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Follow @see tags to get actual definition #193
Labels
type: documentation
Not an issue, but rather a document describing how something works
Comments
klesun
added
the
type: documentation
Not an issue, but rather a document describing how something works
label
Oct 29, 2021
That is just great! Your plugin is very helpful. |
Also it does not support nested references like <?php
class Declarations {
/**
* @var = [
* 'name' => string,
* 'email' => string,
* 'phone' => string
* ]
*/
public $user;
}
class Another {
/** @var Declarations */
public $D;
/**
* @param $arg = self::$D::$user
*/
function foo($arg) {
$arg['']; // Doesn't suggest here
}
}
/**
* @param $u = Another::$D::user
*/
function do_someting($u) {
$u['']; // Doesn't suggest here as well
} I apologize for putting comments in such chaotic way. I didn't expect to find all this out. But I want those observations to be kept somewhere. |
no problem, github will handle it =D |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
PhpDoc has @see tag, which allows to reference methods and properties of the class.
In it's current implementation it doesn't affect autocompletion.
But it would be great if we could do something like that:
This would make PHP much more convenient language, allowing to describe data structures in one particular place and reference to it anywhere we want — the feature native PHP lacks to this day.
P.S. Привет русскоязычным!
The text was updated successfully, but these errors were encountered: