/opt/cpanel/ea-wappspector/vendor/rector/rector/vendor/illuminate/container
NameSizeModeActions
Attributes/-0755rm
BoundMethod.php74870644editdlrm
composer.json9380755editdlrm
Container.php440980755editdlrm
ContextualBindingBuilder.php24470644editdlrm
EntryNotFoundException.php2350644editdlrm
LICENSE.md10750644editdlrm
PATCHES.txt2660644editdlrm
RewindableGenerator.php11450644editdlrm
Util.php22250644editdlrm
Edit: /opt/cpanel/ea-wappspector/vendor/rector/rector/vendor/illuminate/container/Util.php (2225B)
getType(); if (!$type instanceof ReflectionNamedType || $type->isBuiltin()) { return null; } $name = $type->getName(); if (!\is_null($class = $parameter->getDeclaringClass())) { if ($name === 'self') { return $class->getName(); } if ($name === 'parent' && ($parent = $class->getParentClass())) { return $parent->getName(); } } return $name; } /** * Get a contextual attribute from a dependency. * * @param \ReflectionParameter $dependency * @return \ReflectionAttribute|null */ public static function getContextualAttributeFromDependency($dependency) { return (\method_exists($dependency, 'getAttributes') ? $dependency->getAttributes(ContextualAttribute::class, ReflectionAttribute::IS_INSTANCEOF) : [])[0] ?? null; } }