Skip to content

Commit

Permalink
Merge pull request #1 from czjvic/updatePhpStanDependency
Browse files Browse the repository at this point in the history
Update phpstan dependency
  • Loading branch information
esler authored Jun 4, 2020
2 parents e058817 + 00055a5 commit 85cea73
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
39 changes: 39 additions & 0 deletions src/PHPStan/Reflection/EnumMethodReflection.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -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;
}
}

0 comments on commit 85cea73

Please sign in to comment.