We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
I tried to collect data structures of php-files or -strings: https://github.com/voku/Simple-PHP-Code-Parser ... but I have a problem with the "ReflectionDocBlock" package, I do something like:
$parsedParamTags = $phpDoc->getTagsByName('param');
$parsedReturnTag = $phpDoc->getTagsByName('return');
But then I get InvalidTag when I use modern PHPDocs from PHPStan (https://phpstan.org/writing-php-code/phpdoc-types) or psalm (https://psalm.dev/docs/annotating_code/type_syntax/array_types/#object-like-arrays). PS: The syntax is also supported by PhpStorm (https://blog.jetbrains.com/phpstorm/2020/10/phpstorm-2020-3-eap-2/#psalm_and_phpdoc_annotations).
InvalidTag
Do you plan to support the new syntax for e.g. arrays-shapes?
e.g.:
/** * @return array{stdClass: \stdClass, numbers: int|float} $lall */
⇉ "InvalidArgumentException | "\array{stdClass: \stdClass" is not a valid Fqsen.
"InvalidArgumentException | "\array{stdClass: \stdClass" is not a valid Fqsen.
The text was updated successfully, but these errors were encountered:
[+]: fix for modern phpdocs
6a0529e
-> see phpDocumentor/ReflectionDocBlock#263
This is definitely needed, since it's getting much more common
Sorry, something went wrong.
will be part of #343
Fixed in #343
jaapio
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
I tried to collect data structures of php-files or -strings: https://github.com/voku/Simple-PHP-Code-Parser ... but I have a problem with the "ReflectionDocBlock" package, I do something like:
But then I get
InvalidTag
when I use modern PHPDocs from PHPStan (https://phpstan.org/writing-php-code/phpdoc-types) or psalm (https://psalm.dev/docs/annotating_code/type_syntax/array_types/#object-like-arrays). PS: The syntax is also supported by PhpStorm (https://blog.jetbrains.com/phpstorm/2020/10/phpstorm-2020-3-eap-2/#psalm_and_phpdoc_annotations).Do you plan to support the new syntax for e.g. arrays-shapes?
e.g.:
⇉
"InvalidArgumentException | "\array{stdClass: \stdClass" is not a valid Fqsen.
The text was updated successfully, but these errors were encountered: