🔐 Sid Gifari File Manager Pro
v8.0.5 | 2026-06-15 03:51:32 | PHP 8.1.34
📂
/ (Root)
/
opt
/
cpanel
/
ea-wappspector
/
vendor
/
rector
/
rector
/
src
/
StaticTypeMapper
/
ValueObject
/
Type
📍 /opt/cpanel/ea-wappspector/vendor/rector/rector/src/StaticTypeMapper/ValueObject/Type
🔄 Refresh
✏️
Editing: ShortenedGenericObjectType.php
Read Only
<?php declare (strict_types=1); namespace Rector\StaticTypeMapper\ValueObject\Type; use PHPStan\TrinaryLogic; use PHPStan\Type\Generic\GenericObjectType; use PHPStan\Type\Type; /** * @api */ final class ShortenedGenericObjectType extends GenericObjectType { /** * @var class-string * @readonly */ private $fullyQualifiedName; /** * @param class-string $fullyQualifiedName */ public function __construct(string $shortName, array $types, string $fullyQualifiedName) { $this->fullyQualifiedName = $fullyQualifiedName; parent::__construct($shortName, $types); } public function isSuperTypeOf(Type $type) : TrinaryLogic { $genericObjectType = new GenericObjectType($this->fullyQualifiedName, $this->getTypes()); return $genericObjectType->isSuperTypeOf($type); } public function getShortName() : string { return $this->getClassName(); } }
💾 Save Changes
❌ Cancel