We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0337d92 + 281746e commit 91aabc0Copy full SHA for 91aabc0
src/Generator/ClassGenerator.php
@@ -85,6 +85,7 @@ public static function fromReflection(ClassReflection $classReflection)
85
}
86
87
$cg->setAbstract($classReflection->isAbstract());
88
+ $cg->setFinal($classReflection->isFinal());
89
90
// set the namespace
91
if ($classReflection->inNamespace()) {
test/Generator/ClassGeneratorTest.php
@@ -1395,7 +1395,7 @@ public function testClassWithPromotedParameterFromReflection(): void
1395
$expectedOutput = <<<EOS
1396
namespace LaminasTest\Code\Generator\TestAsset;
1397
1398
-class ClassWithPromotedParameter
+final class ClassWithPromotedParameter
1399
{
1400
public function __construct(private string \$promotedParameter)
1401
0 commit comments