php-di/phpdoc-reader
PhpDocReader parses @var and @param docblock types to resolve class names, supporting fully qualified, imported, relative, and aliased names with the same rules as PHP. Primitive types are ignored; only valid class names are returned. Used by PHP-DI.
Fix type issue
#20 PHP 8 support
#17 Add iterable to the list of ignored types
Support for PHP 5.3 was dropped.
#12: Support for the mixed type
The package was renamed from mnapoli/phpdocreader to php-di/phpdoc-reader and moved to the PHP-DI organization.
Additionally the package is now standalone and doesn't require doctrine/annotations anymore.
Added an option to ignore phpdoc errors (invalid classes)
Bugfix related to #3 (support class names containing "_")
Fixes #3: Handle unrecognizable types: multiple types, generics, arrays, …
Changes:
getPropertyType in favor of getPropertyClassgetParameterType in favor of getParameterClassFixes:
[@var](https://github.com/var) bool) would raise exceptionsFirst stable release.
How can I help you explore Laravel packages today?