Reflection
Reflection copied to clipboard
Reflection library to do Static Analysis for PHP Projects
Documentation for this syntax: https://psalm.dev/docs/annotating_code/typing_in_psalm/#specifying-stringint-options-aka-enums Example code: ```php class Some { public const STATUS_FOO = 'foo'; public const STATUS_BAR = 'bar'; /** * @return self::STATUS_* */ public function dummy(): string...
Bumps [dependabot/fetch-metadata](https://github.com/dependabot/fetch-metadata) from 1.3.2 to 1.3.3. Release notes Sourced from dependabot/fetch-metadata's releases. v1.3.3 What's Changed action.yaml: fix skip-commit-verification quoting by @jsok in dependabot/fetch-metadata#232 New Contributors @jsok made their first contribution...
Can't find `Analyzer` and `ServiceProvider` classes mentioned in comments.
Consider such PhpDoc comment as an example: ```php /** * @param DocBlock\Tags\Var_ $varTag * * @return \My\Super\Class */ ``` When parsing this, I will have two `Object_`'s, one for `DocBlock\Tags\Var_`,...
Extracted from #224. See https://github.com/phpDocumentor/Reflection/issues/224#issuecomment-1002061919 for details.
php supports default values for method arguments, for a long time just scalar values were supported or const. That's why we are just using `string` values to represent the default...
https://wiki.php.net/rfc/abstract_trait_method_validation
https://wiki.php.net/rfc/attributes_v2 At the moment it is unsure what attributes will add to this library. But we should be able to detect the docblocks correctly. Maybe add attributes as objects on...
Working with the newest `develop` branch, calling getValue on a PHP Constant always returns the value as a string regardless of the constants given type. This is a problem for...