Skip to content
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

What are the available variables? #237

Open
smileBeda opened this issue Jul 2, 2023 · 0 comments
Open

What are the available variables? #237

smileBeda opened this issue Jul 2, 2023 · 0 comments

Comments

@smileBeda
Copy link

smileBeda commented Jul 2, 2023

The doc says that the php-docblocker.extra may be an array of extra tags to add to each DocBlock (These can include tabstops and snippet variables)

So I created

"php-docblocker.extra": [
		"myvar ${1:name}"
	],

returns myvar Undefined variable

Is there a list somewhere of available variables?

The end goal in this case is to create a proper var tag that has this appearance @var [type] [name] [desc], or a (missing) access tag


Update

I realise these are not variables but placeholders. So the question I guess would be "how can we create our own dynamic placeholders or variables.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant