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

Supported variable docblock #229

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

tianyiw2013
Copy link
Contributor

Change Summary:
Supported variable docblock

# Example

/** @var int $var  */
$var = 1;

/** @var stdClass $object  */
$object = new stdClass;

/** @var \Closure $callback  */
$callback = function () {};
$callback = fn () => 1;

/** @var [type] $item  */
foreach ($data as $item) {}

/** @var [type] $item  */
while ($item = array_pop($data)) {}

Checks:

  • CHANGELOG.md updated with relavent changes

Related issues:
#228
#106

@neild3r
Copy link
Owner

neild3r commented Nov 11, 2022

I like the idea I'd like to spend some time with this to think about it the code layout but definitely want something like this in the package

@neild3r
Copy link
Owner

neild3r commented Dec 6, 2022

Thanks for updating test etc I will try to take a look this month

@neild3r
Copy link
Owner

neild3r commented Jul 11, 2023

Sorry I will get back to this soon

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

Successfully merging this pull request may close these issues.

None yet

2 participants