Skip to content

Commit

Permalink
Merge pull request #90 from localheinz/fix/useless
Browse files Browse the repository at this point in the history
Fix: Remove useless DocBlocks
  • Loading branch information
localheinz authored Dec 27, 2019
2 parents 24dc560 + d5ff4ec commit e4114fd
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,6 @@ public function isMethodSupported(MethodReflection $methodReflection): bool
return 'reveal' === $methodReflection->getName();
}

/**
* @param MethodReflection $methodReflection
* @param MethodCall $methodCall
* @param Scope $scope
*
* @throws \PHPStan\ShouldNotHappenException
*
* @return Type
*/
public function getTypeFromMethodCall(MethodReflection $methodReflection, MethodCall $methodCall, Scope $scope): Type
{
$calledOnType = $scope->getType($methodCall->var);
Expand Down
9 changes: 0 additions & 9 deletions src/Extension/ProphetProphesizeDynamicReturnTypeExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,6 @@ public function isMethodSupported(MethodReflection $methodReflection): bool
return 'prophesize' === $methodReflection->getName();
}

/**
* @param MethodReflection $methodReflection
* @param MethodCall $methodCall
* @param Scope $scope
*
* @throws \PHPStan\ShouldNotHappenException
*
* @return Type
*/
public function getTypeFromMethodCall(MethodReflection $methodReflection, MethodCall $methodCall, Scope $scope): Type
{
$parametersAcceptor = ParametersAcceptorSelector::selectSingle($methodReflection->getVariants());
Expand Down
8 changes: 0 additions & 8 deletions src/Type/ObjectProphecyType.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,13 @@ class ObjectProphecyType extends ObjectType
*/
protected $prophesizedClass;

/**
* @param string $prophesizedClass The class that is being mocked/prophesized
*/
public function __construct(string $prophesizedClass)
{
$this->prophesizedClass = $prophesizedClass;

parent::__construct('Prophecy\Prophecy\ObjectProphecy');
}

/**
* @param mixed[] $properties
*
* @return self
*/
public static function __set_state(array $properties): Type
{
return new self($properties['prophesizedClass']);
Expand Down

0 comments on commit e4114fd

Please sign in to comment.