diff --git a/composer.json b/composer.json index a2a8947..650e0af 100644 --- a/composer.json +++ b/composer.json @@ -4,7 +4,7 @@ "type": "library", "require-dev": { "phpunit/phpunit": ">=6.0", - "phpstan/phpstan": "^0.11.19", + "phpstan/phpstan": "^0.12.25", "doctrine/coding-standard": "^6.0" }, "license": "MIT", diff --git a/src/PHPStan/Reflection/EnumMethodReflection.php b/src/PHPStan/Reflection/EnumMethodReflection.php index 6fa3454..36a1401 100644 --- a/src/PHPStan/Reflection/EnumMethodReflection.php +++ b/src/PHPStan/Reflection/EnumMethodReflection.php @@ -10,6 +10,8 @@ use PHPStan\Reflection\MethodReflection; use PHPStan\Reflection\ParameterReflection; use PHPStan\Reflection\ParametersAcceptor; +use PHPStan\TrinaryLogic; +use PHPStan\Type\Generic\TemplateTypeMap; use PHPStan\Type\ObjectType; use PHPStan\Type\Type; @@ -39,6 +41,8 @@ public function __construct(ClassReflection $classReflection, string $methodName $this->methodName = $methodName; $this->variants = [ new FunctionVariant( + TemplateTypeMap::createEmpty(), + null, $this->getParameters(), $this->isVariadic(), $this->getReturnType() @@ -121,4 +125,39 @@ public function getVariants() : array { return $this->variants; } + + public function isDeprecated() : TrinaryLogic + { + return TrinaryLogic::createNo(); + } + + public function getDeprecatedDescription() : ?string + { + return null; + } + + public function isFinal() : TrinaryLogic + { + return TrinaryLogic::createNo(); + } + + public function isInternal() : TrinaryLogic + { + return TrinaryLogic::createNo(); + } + + public function getThrowType() : ?Type + { + null; + } + + public function hasSideEffects() : TrinaryLogic + { + return TrinaryLogic::createNo(); + } + + public function getDocComment() : ?string + { + return null; + } }