Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove $isFinal dead-code in PhpFunctionReflection #3545

Merged
merged 1 commit into from
Oct 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -54,7 +54,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
Loading