mirror of
https://github.com/barryvdh/ReflectionDocBlock.git
synced 2026-08-18 01:57:13 +00:00
Use ReflectionParameter::getType() instead of getClass()
`iReflectionParameter::getClass()` is deprecated as of PHP 8 and will trigger a warning.
This commit is contained in:
committed by
DerManoMann
parent
41f77e8697
commit
65a85616f4
@@ -254,10 +254,10 @@ final class StandardTagFactory implements TagFactory
|
||||
{
|
||||
$arguments = [];
|
||||
foreach ($parameters as $parameter) {
|
||||
$class = $parameter->getClass();
|
||||
$type = $parameter->getType();
|
||||
$typeHint = null;
|
||||
if ($class !== null) {
|
||||
$typeHint = $class->getName();
|
||||
if ($type instanceof \ReflectionNamedType) {
|
||||
$typeHint = $type->getName();
|
||||
}
|
||||
|
||||
if (isset($locator[$typeHint])) {
|
||||
|
||||
Reference in New Issue
Block a user