Skip to content

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.

2 participants