Skip to content

Commit

Permalink
Eliminate dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Jun 4, 2021
1 parent a617443 commit 398db60
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/Framework/MockObject/MockMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,6 @@ final class MockMethod
*/
private $deprecation;

/**
* @var bool
*/
private $allowsReturnNull;

/**
* @throws RuntimeException
*/
Expand Down Expand Up @@ -140,8 +135,7 @@ public static function fromReflection(ReflectionMethod $method, bool $callOrigin
$reference,
$callOriginalMethod,
$method->isStatic(),
$deprecation,
$method->hasReturnType() && $method->getReturnType()->allowsNull()
$deprecation
);
}

Expand All @@ -159,11 +153,10 @@ public static function fromName(string $fullClassName, string $methodName, bool
false,
false,
null,
false
);
}

public function __construct(string $className, string $methodName, bool $cloneArguments, string $modifier, string $argumentsForDeclaration, string $argumentsForCall, Type $returnType, string $reference, bool $callOriginalMethod, bool $static, ?string $deprecation, bool $allowsReturnNull)
public function __construct(string $className, string $methodName, bool $cloneArguments, string $modifier, string $argumentsForDeclaration, string $argumentsForCall, Type $returnType, string $reference, bool $callOriginalMethod, bool $static, ?string $deprecation)
{
$this->className = $className;
$this->methodName = $methodName;
Expand All @@ -176,7 +169,6 @@ public function __construct(string $className, string $methodName, bool $cloneAr
$this->callOriginalMethod = $callOriginalMethod;
$this->static = $static;
$this->deprecation = $deprecation;
$this->allowsReturnNull = $allowsReturnNull;
}

public function getName(): string
Expand Down

0 comments on commit 398db60

Please sign in to comment.