Skip to content

Commit

Permalink
Remove $isFinal dead-code in PhpFunctionReflection
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm committed Oct 3, 2024
1 parent d944b5b commit 0f0cc65
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
3 changes: 0 additions & 3 deletions src/Reflection/BetterReflection/BetterReflectionProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,6 @@ private function getCustomFunction(string $functionName): PhpFunctionReflection
$deprecatedTag = null;
$isDeprecated = false;
$isInternal = false;
$isFinal = false;
$isPure = null;
$asserts = Assertions::createEmpty();
$acceptsNamedArguments = true;
Expand All @@ -327,7 +326,6 @@ private function getCustomFunction(string $functionName): PhpFunctionReflection
$deprecatedTag = $resolvedPhpDoc->getDeprecatedTag();
$isDeprecated = $resolvedPhpDoc->isDeprecated();
$isInternal = $resolvedPhpDoc->isInternal();
$isFinal = $resolvedPhpDoc->isFinal();
$isPure = $resolvedPhpDoc->isPure();
$asserts = Assertions::createFromResolvedPhpDocBlock($resolvedPhpDoc);
if ($resolvedPhpDoc->hasPhpDocString()) {
Expand All @@ -348,7 +346,6 @@ private function getCustomFunction(string $functionName): PhpFunctionReflection
$deprecatedTag !== null ? $deprecatedTag->getMessage() : null,
$isDeprecated,
$isInternal,
$isFinal,
$reflectionFunction->getFileName() !== false ? $reflectionFunction->getFileName() : null,
$isPure,
$asserts,
Expand Down
1 change: 0 additions & 1 deletion src/Reflection/FunctionReflectionFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ public function create(
?string $deprecatedDescription,
bool $isDeprecated,
bool $isInternal,
bool $isFinal,
?string $filename,
?bool $isPure,
Assertions $asserts,
Expand Down
1 change: 0 additions & 1 deletion src/Reflection/Php/PhpFunctionReflection.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ public function __construct(
private ?string $deprecatedDescription,
private bool $isDeprecated,
private bool $isInternal,
private bool $isFinal,
private ?string $filename,
private ?bool $isPure,
private Assertions $asserts,
Expand Down

0 comments on commit 0f0cc65

Please sign in to comment.